pipenv picks up bad paths and crashes
Rhett Prince
rhettprince at gmail.com
Sat Sep 26 11:47:42 EDT 2020
pipenv is a bad program
it conflicts with anaconda.
I removed anaconda and it still crashes.
also, I repaired my python 3.8 installation
uninstalled and reinstalled pipenv
and it still picks up paths from anaconda
anaconda sucks too.
see below
Administrator at rcplt MINGW64 /c/dev_env
$ ls
a.txt dd.py notes.txt pipenv_help.txt
Administrator at rcplt MINGW64 /c/dev_env
$ pip uninstall pipenv
Found existing installation: pipenv 2020.8.13
Uninstalling pipenv-2020.8.13:
Would remove:
c:\program files
(x86)\python38-32\lib\site-packages\pipenv-2020.8.13.dist-i
nfo\*
c:\program files (x86)\python38-32\lib\site-packages\pipenv\*
c:\program files (x86)\python38-32\scripts\pipenv-resolver.exe
c:\program files (x86)\python38-32\scripts\pipenv.exe
Proceed (y/n)? y
Successfully uninstalled pipenv-2020.8.13
Administrator at rcplt MINGW64 /c/dev_env
$ pip install pipenv
Collecting pipenv
Using cached pipenv-2020.8.13-py2.py3-none-any.whl (3.9 MB)
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\program files
(x86)
\python38-32\lib\site-packages (from pipenv) (0.5.4)
Requirement already satisfied: setuptools>=36.2.1 in c:\program files
(x86)\pyth
on38-32\lib\site-packages (from pipenv) (41.2.0)
Requirement already satisfied: virtualenv in c:\program files
(x86)\python38-32\
lib\site-packages (from pipenv) (20.0.31)
Requirement already satisfied: pip>=18.0 in c:\program files
(x86)\python38-32\l
ib\site-packages (from pipenv) (20.2.3)
Requirement already satisfied: certifi in c:\program files
(x86)\python38-32\lib
\site-packages (from pipenv) (2020.6.20)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\program files
(x86)\pytho
n38-32\lib\site-packages (from virtualenv->pipenv) (0.3.1)
Requirement already satisfied: six<2,>=1.9.0 in c:\program files
(x86)\python38-
32\lib\site-packages (from virtualenv->pipenv) (1.15.0)
Requirement already satisfied: appdirs<2,>=1.4.3 in c:\program files
(x86)\pytho
n38-32\lib\site-packages (from virtualenv->pipenv) (1.4.4)
Requirement already satisfied: filelock<4,>=3.0.0 in c:\program files
(x86)\pyth
on38-32\lib\site-packages (from virtualenv->pipenv) (3.0.12)
Installing collected packages: pipenv
Successfully installed pipenv-2020.8.13
Administrator at rcplt MINGW64 /c/dev_env
$ ls
a.txt dd.py notes.txt pipenv_help.txt
Administrator at rcplt MINGW64 /c/dev_env
$ pipenv install pytz
Traceback (most recent call last):
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\python.py", line 618, in parse_executable
result_version = get_python_version(path)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\utils.py", line 105, in get_python_version
c = subprocess.Popen(version_cmd, **subprocess_kwargs)
File "c:\program files (x86)\python38-32\lib\subprocess.py", line 854, in
__in
it__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\program files (x86)\python38-32\lib\subprocess.py", line 1307, in
_ex
ecute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\program files (x86)\python38-32\lib\runpy.py", line 194, in
_run_modu
le_as_main
return _run_code(code, main_globals, None,
File "c:\program files (x86)\python38-32\lib\runpy.py", line 87, in
_run_code
exec(code, run_globals)
File "C:\Program Files (x86)\Python38-32\Scripts\pipenv.exe\__main__.py",
line
7, in <module>
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\click
\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\cli\command.
py", line 232, in install
retcode = do_install(
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\core.py", li
ne 1920, in do_install
ensure_project(
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\core.py", li
ne 576, in ensure_project
ensure_virtualenv(
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\core.py", li
ne 498, in ensure_virtualenv
python = ensure_python(three=three, python=python)
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\core.py", li
ne 388, in ensure_python
path_to_python = find_a_system_python(python)
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\core.py", li
ne 350, in find_a_system_python
return next(iter(finder.find_all_python_versions()), None)
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\vendor\pytho
nfinder\pythonfinder.py", line 312, in find_all_python_versions
python_version_dict = getattr(self.system_path, "python_version_dict",
{})
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\vendor\pytho
nfinder\pythonfinder.py", line 120, in system_path
self._system_path = self.create_system_path()
File "c:\program files
(x86)\python38-32\lib\site-packages\pipenv\vendor\pytho
nfinder\pythonfinder.py", line 82, in create_system_path
return pyfinder_path.SystemPath.create(
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\path.py", line 682, in create
instance = instance._run_setup()
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\path.py", line 233, in _run_setup
new_instance = new_instance._setup_windows()
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\path.py", line 411, in _setup_windows
windows_finder = WindowsFinder.create()
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\windows.py", line 146, in create
return cls()
File "<attrs generated init pythonfinder.models.windows.WindowsFinder>",
line
13, in __init__
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\windows.py", line 113, in get_versions
versions[py_version.version_tuple[:5]] = base_dir
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\python.py", line 365, in __getattribute__
result = super(PythonVersion, self).__getattribute__(key)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\python.py", line 430, in version_tuple
self.patch,
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\python.py", line 375, in __getattribute__
instance_dict = self.parse_executable(executable)
File "C:\Program Files
(x86)\Python38-32\Lib\site-packages\pipenv\vendor\pytho
nfinder\models\python.py", line 620, in parse_executable
raise ValueError("Not a valid python path: %r" % path)
ValueError: Not a valid python path: 'C:/ProgramData/Anaconda3/python.exe'
Administrator at rcplt MINGW64 /c/dev_env
$ 5~
Administrator at rcplt MINGW64 /c/dev_env
$
More information about the Python-list
mailing list