pipenv --three fails
See original GitHub issueIssue description
Running pipenv --three
throws 'TypeError: 'NoneType' object is not iterable'
Expected result
Pipenv to be initialized with python three
Actual result
pipenv --three
fails and throws an error. A log file will be included as the error is quite long.
log.txt
Steps to replicate
Run pipenv --three
$ pipenv --support
Pipenv version: '2018.11.14'
Pipenv location: '/usr/lib/python3.7/site-packages/pipenv'
Python location: '/usr/bin/python'
Python installations found:
Traceback (most recent call last): File “/usr/bin/pipenv”, line 11, in <module> load_entry_point(‘pipenv==2018.11.14’, ‘console_scripts’, ‘pipenv’)() File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py”, line 764, in call return self.main(*args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py”, line 717, in main rv = self.invoke(ctx) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py”, line 1114, in invoke return Command.invoke(self, ctx) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py”, line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py”, line 555, in invoke return callback(*args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py”, line 64, in new_func return ctx.invoke(f, obj, *args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py”, line 555, in invoke return callback(*args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py”, line 17, in new_func return f(get_current_context(), args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/cli/command.py”, line 142, in cli get_pipenv_diagnostics() File “/usr/lib/python3.7/site-packages/pipenv/help.py”, line 33, in get_pipenv_diagnostics python_paths = finder.find_all_python_versions() File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py”, line 122, in find_all_python_versions python_version_dict = getattr(self.system_path, “python_version_dict”) File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py”, line 54, in system_path ignore_unsupported=self.ignore_unsupported, File “/usr/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 “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py”, line 116, in attrs_post_init self._setup_pyenv() File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py”, line 196, in _setup_pyenv version_glob_path="versions/", ignore_unsupported=self.ignore_unsupported File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/python.py”, line 154, in create sort_function=sort_function, version_glob_path=version_glob_path) File “<attrs generated init 4cb48a43d6709d3a578ba9505d6f7e6efcc13cef>”, line 17, in init File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/python.py”, line 98, in get_versions for p in self.get_version_order(): File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/python.py”, line 70, in get_version_order version_order = [versions[v] for v in parse_pyenv_version_order()] TypeError: ‘NoneType’ object is not iterable
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:18 (7 by maintainers)
Top GitHub Comments
For using
pyenv global system
, you have to use pipenv master branch, sorry for the trouble.Yeah,
pyenv global 3.7.1
or an emptyversion
file will work for latest released pipenv. 😄Using a version number works.
pyenv global 3.7.1