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

Forced downgrade of six in python 3.8 crashes pip in venv #160

Closed
phanuelayuka opened this issue May 29, 2020 · 2 comments
Closed

Forced downgrade of six in python 3.8 crashes pip in venv #160

phanuelayuka opened this issue May 29, 2020 · 2 comments

Comments

@phanuelayuka
Copy link

My virtual env is using python 3.8
When I install PyVimeo, six if forcefully downgraded from six 1.14.0 to six 1.10.0. This breaks the entire venv and pip stops working throwing the following error.

(venv) phang@phang:/media/phang/PRO/bafundecore$ pip freeze
Traceback (most recent call last):
  File "/media/phang/PRO/venv/bin/pip", line 8, in <module>
    sys.exit(main())
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command
    module = importlib.import_module(module_path)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/commands/freeze.py", line 12, in <module>
    from pip._internal.operations.freeze import freeze
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/operations/freeze.py", line 17, in <module>
    from pip._internal.req.constructors import (
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 11, in <module>
    from .req_file import parse_requirements
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/req/req_file.py", line 25, in <module>
    from pip._internal.req.constructors import (
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/req/constructors.py", line 28, in <module>
    from pip._internal.req.req_install import InstallRequirement
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 30, in <module>
    from pip._internal.operations.install.wheel import install_wheel
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 33, in <module>
    from pip._internal.utils.wheel import parse_wheel
  File "/media/phang/PRO/venv/lib/python3.8/site-packages/pip/_internal/utils/wheel.py", line 12, in <module>
    from pip._vendor.six import PY2, ensure_str
ImportError: cannot import name 'ensure_str' from 'six' (/media/phang/PRO/venv/lib/python3.8/site-packages/six.py)

@fisherinnovation
Copy link
Contributor

Can you try restesting with the latest version? https://pypi.org/project/PyVimeo/#history

@phanuelayuka
Copy link
Author

Works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants