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
find_python_version raises TypeError if the PYENV_ROOT environment variable is set.
$ export PYENV_ROOT=~/.pyenv
$ python3
>>> from pythonfinder import Finder
>>> Finder().find_python_version(3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/pythonfinder.py", line 113, in find_python_version
return self.system_path.find_python_version(
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/pythonfinder.py", line 54, in system_path
ignore_unsupported=self.ignore_unsupported,
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/models/path.py", line 451, in create
ignore_unsupported=ignore_unsupported,
File "<attrs generated init 75e45f144e3d5510d54dd5fca6730b98fa0220a9>", line 38, in __init__
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/models/path.py", line 116, in __attrs_post_init__
self._setup_pyenv()
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/models/path.py", line 196, in _setup_pyenv
version_glob_path="versions/*", ignore_unsupported=self.ignore_unsupported
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/models/python.py", line 154, in create
sort_function=sort_function, version_glob_path=version_glob_path)
File "<attrs generated init 031499b6371f4a9df9919a42577a7ef217b32ad9>", line 17, in __init__
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/pythonfinder/models/python.py", line 98, in get_versions
for p in self.get_version_order():
File "/home/mdavidoff/.pyenv/versions/3.7.1/lib/python3.7/site-packages/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
>>> import pythonfinder
>>> pythonfinder.__version__
'1.1.9.post1'
find_python_version
raises TypeError if the PYENV_ROOT environment variable is set.It works if PYENV_ROOT is not set:
The text was updated successfully, but these errors were encountered: