You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reating a virtualenv for this project…
Pipfile: /home/kuku/Pipfile
Using /home/kuku/.asdf/installs/python/3.7.4/bin/python3.7 (3.7.4) to create virtualenv…
⠹ Creating virtual environment...Already using interpreter /home/kuku/.asdf/installs/python/3.7.4/bin/python3.7
Using base prefix '/home/kuku/.asdf/installs/python/3.7.4'
New python executable in /home/kuku/.local/share/virtualenvs/kuku-iV38fd49/bin/python3.7
Not overwriting existing python script /home/kuku/.local/share/virtualenvs/kuku-iV38fd49/bin/python (you must use /ho
me/kuku/.local/share/virtualenvs/kuku-iV38fd49/bin/python3.7)
Installing setuptools, pip, wheel...
done.
✔ Successfully created virtual environment!
Virtualenv location: /home/kuku/.local/share/virtualenvs/kuku-iV38fd49
Creating a Pipfile for this project…
Traceback (most recent call last):
File "/home/kuku/.local/bin/pipenv", line 10, in <module>
sys.exit(cli())
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/cli/command.py", line 254, in install
editable_packages=state.installstate.editables,
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/core.py", line 1741, in do_install
pypi_mirror=pypi_mirror,
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/core.py", line 609, in ensure_project
validate=validate, skip_requirements=skip_requirements, system=system
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/core.py", line 320, in ensure_pipfile
project.create_pipfile(python=python)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/project.py", line 726, in create_pipfile
required_python = self.which("python", self.virtualenv_location)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/project.py", line 1083, in which
result = next(iter(filter(None, (find(finder) for finder in self.finders))), None)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/project.py", line 1083, in <genexpr>
result = next(iter(filter(None, (find(finder) for finder in self.finders))), None)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 67, in which
return self.system_path.which(exe)
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 54, in system
_path
ignore_unsupported=self.ignore_unsupported,
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 451, in create
ignore_unsupported=ignore_unsupported,
File "<attrs generated init 75e45f144e3d5510d54dd5fca6730b98fa0220a9>", line 38, in __init__
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 118, in __attr
s_post_init__
self._setup_asdf()
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 179, in _setup
_asdf
sort_function=parse_asdf_version_order, version_glob_path="installs/python/*")
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/python.py", line 156, in crea
te
sort_function=sort_function, version_glob_path=version_glob_path)
File "<attrs generated init b6a095a16bbd5fc278cde7b0da8f1b0546c659a0>", line 21, in __init__
File "/home/kuku/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/python.py", line 147, in get_
pythons
pythons.update(p.pythons)
AttributeError: 'NoneType' object has no attribute 'pythons'
also tried reinstalling pipenv
# pip uninstall pipenv
Uninstalling pipenv-2018.11.26:
Would remove:
/home/kuku/.local/bin/pipenv
/home/kuku/.local/bin/pipenv-resolver
/home/kuku/.local/lib/python3.7/site-packages/pipenv-2018.11.26.dist-info/*
/home/kuku/.local/lib/python3.7/site-packages/pipenv/*
Proceed (y/n)? y
Successfully uninstalled pipenv-2018.11.26
# pip install pipenv
Collecting pipenv
Downloading https://files.pythonhosted.org/packages/13/b4/3ffa55f77161cff9a5220f162670f7c5eb00df52e00939e203f601b0f
579/pipenv-2018.11.26-py3-none-any.whl (5.2MB)
|████████████████████████████████| 5.2MB 4.0MB/s
Requirement already satisfied: virtualenv in ./.local/lib/python3.7/site-packages (from pipenv) (16.7.5)
Requirement already satisfied: setuptools>=36.2.1 in ./.asdf/installs/python/3.7.4/lib/python3.7/site-packages (from
pipenv) (40.8.0)
Requirement already satisfied: certifi in ./.local/lib/python3.7/site-packages (from pipenv) (2019.6.16)
Requirement already satisfied: pip>=9.0.1 in ./.local/lib/python3.7/site-packages (from pipenv) (19.2.1)
Requirement already satisfied: virtualenv-clone>=0.2.5 in ./.local/lib/python3.7/site-packages (from pipenv) (0.5.3)
Installing collected packages: pipenv
Successfully installed pipenv-2018.11.26
WARNING: You are using pip version 19.2.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
after that it's the same error
The text was updated successfully, but these errors were encountered:
Looks like this is happening because the exception handler is assuming version_path is not None. And version_path will be None if bin_dir.exists() is falsey. I've not looked into this more as I'm actually just trying to get pipenv working for me, which includes pathfinder in the package.
I got things working for me by adding this code at the top of the exception handler, immediately before line 165:
I tried with 3.6.9 and 3.7.4
also tried reinstalling pipenv
after that it's the same error
The text was updated successfully, but these errors were encountered: