Skip to content
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

Update vendor packages #3853

Merged
merged 2 commits into from Jul 17, 2019
Merged

Update vendor packages #3853

merged 2 commits into from Jul 17, 2019

Conversation

frostming
Copy link
Contributor

@frostming frostming added Type: Maintenance 🚧 This issue pertains to maintenance of pipenv itself. Type: Vendored Dependencies This issue affects vendored dependencies within pipenv. Category: Development Issue affects development workflow. labels Jul 17, 2019
Copy link
Member

@techalchemy techalchemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, seems good to me :) eventually i will get this script working so that we can actually run it without changing anything afterwards

@techalchemy techalchemy merged commit f7a357b into master Jul 17, 2019
@techalchemy techalchemy deleted the vendor-update branch July 17, 2019 05:22
@xzycn
Copy link

xzycn commented Dec 13, 2019

When do you plan to release this version?

@rbed23
Copy link

rbed23 commented May 5, 2020

I am still receiving this error response from just a simple 'pipenv --support' command, which I suspect will get fixed with this next release?

My installed versions:

rbednar@BenderInspiron:/mnt/h/technology/projects$ pyenv versions
* system (set by /home/rbednar/.pyenv/version)
3.6.8
3.7.2
3.7.4
3.8.2

system versions are [python -> 2.7.16] [python3 -> 3.7.4]

rbednar@BenderInspiron:/mnt/h/technology/projects$ pipenv --support

giving this error:

OSError: [Errno 8] Exec format error: '/mnt/c/Users/Ryan/AppData/Local/Microsoft/WindowsApps/python.exe'

$ pipenv --support

Pipenv version: '2018.11.26'

Pipenv location: '/home/rbednar/.local/lib/python3.7/site-packages/pipenv'

Python location: '/usr/local/bin/python3'

Python installations found:

['Traceback (most recent call last):\n', ' File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 160, in _create_subprocess\n combine_stderr=combine_stderr)\n', ' File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 134, in _spawn_subprocess\n return subprocess.Popen(cmd, **options)\n', ' File "/usr/lib/python3.7/subprocess.py", line 775, in init\n restore_signals, start_new_session)\n', ' File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child\n raise child_exception_type(errno_num, err_msg, err_filename)\n', "OSError: [Errno 8] Exec format error: '/mnt/c/Users/Ryan/AppData/Local/Microsoft/WindowsApps/python.exe'\n", '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/contextmanagers.py", line 150, in spinner\n yield _spinner\n', ' File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 314, in run\n write_to_stdout=True\n', ' File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 162, in _create_subprocess\n sys.stderr.write("Error %s while executing command %s", exc, " ".join(cmd._parts))\n', 'TypeError: write() takes exactly one argument (3 given)\n']
Traceback (most recent call last):
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 160, in _create_subprocess
combine_stderr=combine_stderr)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 134, in _spawn_subprocess
return subprocess.Popen(cmd, **options)
File "/usr/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/mnt/c/Users/Ryan/AppData/Local/Microsoft/WindowsApps/python.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/rbednar/.local/bin/pipenv", line 8, in
sys.exit(cli())
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/rbednar/.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/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/rbednar/.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/rbednar/.local/lib/python3.7/site-packages/pipenv/cli/command.py", line 146, in cli
get_pipenv_diagnostics()
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/help.py", line 33, in get_pipenv_diagnostics
python_paths = finder.find_all_python_versions()
File "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 328, in find_all_python_versions
values = list(self.get_pythons(sub_finder))
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 279, in get_pythons
reverse=True
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 277, in
(p for p in self._filter_paths(finder) if p.is_python),
File "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/utils.py", line 251, in unnest
for el in target:
File "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/cached_property.py", line 35, in get
value = obj.dict[self.func.name] = self.func(obj)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 501, in children
OSError: [Errno 8] Exec format error: '/mnt/c/Users/Ryan/AppData/Local/Microsoft/WindowsApps/python.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/rbednar/.local/bin/pipenv", line 8, in
sys.exit(cli())
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/rbednar/.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/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/rbednar/.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/rbednar/.local/lib/python3.7/site-packages/pipenv/cli/command.py", line 146, in cli
get_pipenv_diagnostics()
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/help.py", line 33, in get_pipenv_diagnostics
python_paths = finder.find_all_python_versions()
File "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 328, in find_all_python_versions
values = list(self.get_pythons(sub_finder))
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 279, in get_pythons
reverse=True
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 277, in
(p for p in self._filter_paths(finder) if p.is_python),
File "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/utils.py", line 251, in unnest
for el in target:
File "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/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 "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/cached_property.py", line 35, in get
value = obj.dict[self.func.name] = self.func(obj)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 501, in children
for child_key, child_val in self._gen_children():
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 493, in _gen_children
entry = PathEntry.create(path=child, **pass_args)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 575, in create
_new = cls(**creation_args)
File "", line 16, in init
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/path.py", line 518, in get_py_version
py_version = PythonVersion.from_path(path=self, name=self.name)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/models/python.py", line 395, in from_path
py_version = get_python_version(path.path.absolute().as_posix())
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/pythonfinder/utils.py", line 68, in get_python_version
combine_stderr=False, write_to_stdout=False)
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 314, in run
write_to_stdout=True
File "/home/rbednar/.local/lib/python3.7/site-packages/pipenv/vendor/vistir/misc.py", line 162, in _create_subprocess
sys.stderr.write("Error %s while executing command %s", exc, " ".join(cmd._parts))
TypeError: write() takes exactly one argument (3 given)`

@techalchemy
Copy link
Member

@rbed23 note that you can verify whether this will be fixed by installing pythonfinder separately with pip and running pyfinder --findall

@rbed23
Copy link

rbed23 commented May 10, 2020

It appears to be working correctly...

rbednar@BenderInspiron:/mnt/c/Users/Ryan$ python3 -m pip install pythonfinder

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pythonfinder in /home/rbednar/.local/lib/python3.7/site-packages (1.2.3)
Requirement already satisfied: six in /home/rbednar/.local/lib/python3.7/site-packages (from pythonfinder) (1.14.0)
Requirement already satisfied: packaging in /home/rbednar/.local/lib/python3.7/site-packages (from pythonfinder) (20.3)
Requirement already satisfied: cached-property in /home/rbednar/.local/lib/python3.7/site-packages (from pythonfinder) (1.5.1)
Requirement already satisfied: attrs in /home/rbednar/.local/lib/python3.7/site-packages (from pythonfinder) (19.3.0)
Requirement already satisfied: click in /home/rbednar/.local/lib/python3.7/site-packages (from pythonfinder) (7.1.1)
Requirement already satisfied: pyparsing>=2.0.2 in /home/rbednar/.local/lib/python3.7/site-packages (from packaging->pythonfinder) (2.4.6)

rbednar@BenderInspiron:/mnt/c/Users/Ryan$ pyfinder --findall

Found python at the following locations:
3.8.2: 3.8.2 (None) @ /home/rbednar/.pyenv/versions/3.8.2/bin/python3
3.7.4: 3.7.4 (None) @ /home/rbednar/.pyenv/versions/3.7.4/bin/python3
python3: 3.7.4 (None) @ /usr/local/bin/python3
python3: 3.7.4 (None) @ /usr/bin/python3
python3.7: 3.7.4 (None) @ /usr/bin/python3.7
python3.7m: 3.7.4 (None) @ /usr/bin/python3.7m
3.7.2: 3.7.2 (None) @ /home/rbednar/.pyenv/versions/3.7.2/bin/python3
3.6.8: 3.6.8 (None) @ /home/rbednar/.pyenv/versions/3.6.8/bin/python3
python3.5: 3.5.2 (None) @ /usr/bin/python3.5
python3.5m: 3.5.2 (None) @ /usr/bin/python3.5m
python2: 2.7.16 (None) @ /usr/bin/python2
python2.7: 2.7.16 (None) @ /usr/bin/python2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Development Issue affects development workflow. Type: Maintenance 🚧 This issue pertains to maintenance of pipenv itself. Type: Vendored Dependencies This issue affects vendored dependencies within pipenv.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't find the python path with python3
4 participants