-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2018.11.14 regression: cannot create virtualenv #3232
Comments
Hey @dimbleby, We did a quick check and this issue looks very darn similar to
This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄 If not, the maintainers will get to this issue shortly. Cheers, |
bad bot |
The bot is quite aggressive... wonder if that can be tuned a bit.... It looks like it encountered an anaconda command and died attempting to run it... I’ll be cutting a bugfix release shortly, so we just need to determine which command it tried running. Presumably |
On my system - Centos 7 - anaconda is nothing to do with python
And
|
As a workaround you can pass the full path to the python interpreter:
|
Issue description
Can't create new virtual environment.
Expected result
Run
pipenv --three
, say. Get a new virtual environment.Actual result
Steps to replicate
pipenv --three
I mean I suppose there's something about my environment that triggers this - because surely you wouldn't make a release that simply didn't work - but I don't know what it is. 2018.10.13 works fine.
$ pipenv --support [9/285]
$ pipenv --support
Pipenv version:
'2018.11.14'
Pipenv location:
'/data/developer/.local/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/bin/python36'
Python installations found:
Traceback (most recent call last):
File "/data/developer/.local/bin/pipenv", line 11, in
sys.exit(cli())
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/cli/command.py", line 142, in cli
get_pipenv_diagnostics()
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/help.py", line 33, in get_pipenv_diagnostics
python_paths = finder.find_all_python_versions()
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 136, in find_all_python_versions
major=major, minor=minor, patch=patch, pre=pre, dev=dev, arch=arch, name=name
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 328, in find_all_python_versions
values = list(self.get_pythons(sub_finder))
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 279, in get_pythons
reverse=True
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 277, in
(p for p in self._filter_paths(finder) if p.is_python),
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 264, in
pth for pth in unnest(finder(p) for p in self.path_entries if p is not None)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/utils.py", line 138, in unnest
for el in target:
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 264, in
pth for pth in unnest(finder(p) for p in self.path_entries if p is not None)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/mixins.py", line 76, in find_all_python_versions
path_filter = filter(None, (sub_finder(p) for p in self.children.values()))
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/cached_property.py", line 35, in get
value = obj.dict[self.func.name] = self.func(obj)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 494, in children
for child_key, child_val in self._gen_children():
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 487, in _gen_children
yield (child.as_posix(), PathEntry.create(path=child, **pass_args))
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 567, in create
_new = cls(**creation_args)
File "<attrs generated init 6be5738e08783da8302cc0d6dfcda474b56054b8>", line 16, in init
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 510, in get_py_version
py_version = PythonVersion.from_path(path=self, name=self.name)
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/python.py", line 418, in from_path
instance_dict = cls.parse(py_version.strip())
File "/data/developer/.local/lib/python3.6/site-packages/pipenv/vendor/pythonfinder/models/python.py", line 366, in parse
raise ValueError("Not a valid python version: %r" % version)
ValueError: Not a valid python version: <LegacyVersion('Starting installer, one moment...\ndm.c: 1693: not running as root returning empty list\nanaconda argparse: terminal size detection failed, usin
g default width\n[Errno 25] Inappropriate ioctl for device')>
The text was updated successfully, but these errors were encountered: