Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipenv --three fails

See original GitHub issue

Issue 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/”, line 764, in call return self.main(*args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/”, line 717, in main rv = self.invoke(ctx) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/”, line 1114, in invoke return Command.invoke(self, ctx) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/”, line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/”, line 555, in invoke return callback(*args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/”, line 64, in new_func return ctx.invoke(f, obj, *args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/”, line 555, in invoke return callback(*args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/vendor/click/”, line 17, in new_func return f(get_current_context(), args, **kwargs) File “/usr/lib/python3.7/site-packages/pipenv/cli/”, line 142, in cli get_pipenv_diagnostics() File “/usr/lib/python3.7/site-packages/pipenv/”, line 33, in get_pipenv_diagnostics python_paths = finder.find_all_python_versions() File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/”, 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/”, line 54, in system_path ignore_unsupported=self.ignore_unsupported, File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/”, 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/”, line 116, in attrs_post_init self._setup_pyenv() File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/”, 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/”, 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/”, line 98, in get_versions for p in self.get_version_order(): File “/usr/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/”, 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

jxltomcommented, Nov 19, 2018

For using pyenv global system, you have to use pipenv master branch, sorry for the trouble.

Yeah, pyenv global 3.7.1 or an empty version file will work for latest released pipenv. 😄

rgantcommented, Nov 19, 2018

Using a version number works. pyenv global 3.7.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

three failed; pipenv --support failed · Issue #3764 - GitHub
The file "Pipfile" is generated automatically,but it is empty. I have tried to reinstall the pipenv as follows, but it was still the...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
Here, you'll learn how to troubleshoot Pipenv installation and locking issues. ... What to do when Pipenv Fails to Lock ... pipenv --python...
Read more >
Python 3 - Pipenv Can't Install Getting Error - Stack Overflow
I am new to python and trying to install dependencies. I understand that pipenv install installs Pipfile.
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
Here are some common questions people have using Pipenv. Please take a look below and see if they resolve your problem. Note. Make...
Read more >
Advanced Usage of Pipenv - Python Packaging Authority
This will fail a build if the Pipfile.lock is out–of–date, instead of generating a ... To use Pipenv with a third-party Python distribution...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found