Skip to content

Can not install versions 4.8.3~4.8.4 #74

@ruisukun21

Description

@ruisukun21

system info

OS: Ubuntu 20.04.6
processor Intel Core i9-10885H CPU @ 2.40GHz, RAM ~128GB, hp zbook fury

problem description

When installing virtualenvwrapper version 4.8.3~4.8.4, I get this error

~$ python3 -m pip install --user virtualenvwrapper
Collecting virtualenvwrapper
  Using cached virtualenvwrapper-4.8.4.tar.gz (334 kB)
  Preparing metadata (setup.py) ... done
Collecting virtualenv (from virtualenvwrapper)
  Obtaining dependency information for virtualenv from https://files.pythonhosted.org/packages/17/8d/6989e5dcd812520cbf9f31be2b08643ae3a895586601bbab501df8ed6e54/virtualenv-20.24.3-py3-none-any.whl.metadata
  Using cached virtualenv-20.24.3-py3-none-any.whl.metadata (4.5 kB)
Collecting virtualenv-clone (from virtualenvwrapper)
  Using cached virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
Collecting stevedore (from virtualenvwrapper)
  Obtaining dependency information for stevedore from https://files.pythonhosted.org/packages/4b/68/e739fd061b0aba464bef8e8be48428b2aabbfb3f2f8f2f8ca257363ee6b2/stevedore-5.1.0-py3-none-any.whl.metadata
  Using cached stevedore-5.1.0-py3-none-any.whl.metadata (2.2 kB)
Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in /usr/lib/python3/dist-packages (from stevedore->virtualenvwrapper) (5.4.5)
Collecting distlib<1,>=0.3.7 (from virtualenv->virtualenvwrapper)
  Obtaining dependency information for distlib<1,>=0.3.7 from https://files.pythonhosted.org/packages/43/a0/9ba967fdbd55293bacfc1507f58e316f740a3b231fc00e3d86dc39bc185a/distlib-0.3.7-py2.py3-none-any.whl.metadata
  Using cached distlib-0.3.7-py2.py3-none-any.whl.metadata (5.1 kB)
Collecting filelock<4,>=3.12.2 (from virtualenv->virtualenvwrapper)
  Obtaining dependency information for filelock<4,>=3.12.2 from https://files.pythonhosted.org/packages/00/45/ec3407adf6f6b5bf867a4462b2b0af27597a26bd3cd6e2534cb6ab029938/filelock-3.12.2-py3-none-any.whl.metadata
  Using cached filelock-3.12.2-py3-none-any.whl.metadata (2.7 kB)
Collecting platformdirs<4,>=3.9.1 (from virtualenv->virtualenvwrapper)
  Obtaining dependency information for platformdirs<4,>=3.9.1 from https://files.pythonhosted.org/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl.metadata
  Using cached platformdirs-3.10.0-py3-none-any.whl.metadata (11 kB)
Using cached stevedore-5.1.0-py3-none-any.whl (49 kB)
Using cached virtualenv-20.24.3-py3-none-any.whl (3.0 MB)
Using cached distlib-0.3.7-py2.py3-none-any.whl (468 kB)
Using cached filelock-3.12.2-py3-none-any.whl (10 kB)
Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB)
Building wheels for collected packages: virtualenvwrapper
  Building wheel for virtualenvwrapper (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [184 lines of output]
      /home/luis/.local/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'author-email' will not be supported in future
              versions. Please use the underscore name 'author_email' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      /home/luis/.local/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      /home/luis/.local/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'home-page' will not be supported in future
              versions. Please use the underscore name 'home_page' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      /home/luis/.local/lib/python3.9/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      /home/luis/.local/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
      !!
      
              ********************************************************************************
              Please avoid running ``setup.py`` and ``easy_install``.
              Instead, use pypa/build, pypa/installer or other
              standards-based tools.
      
              See https://github.com/pypa/setuptools/issues/917 for details.
              ********************************************************************************
      
      !!
        easy_install.initialize_options(self)
      /home/luis/.local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
      !!
      
              ********************************************************************************
              Please avoid running ``setup.py`` directly.
              Instead, use pypa/build, pypa/installer or other
              standards-based tools.
      
              See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
              ********************************************************************************
      
      !!
        self.initialize_options()
      /home/luis/.local/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'author-email' will not be supported in future
              versions. Please use the underscore name 'author_email' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      /home/luis/.local/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      /home/luis/.local/lib/python3.9/site-packages/setuptools/dist.py:744: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!
      
              ********************************************************************************
              Usage of dash-separated 'home-page' will not be supported in future
              versions. Please use the underscore name 'home_page' instead.
      
              By 2023-Sep-26, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        opt = self.warn_dash_deprecation(opt, section)
      running bdist_wheel
      The [wheel] section is deprecated. Use [bdist_wheel] instead.
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/virtualenvwrapper
      copying virtualenvwrapper/hook_loader.py -> build/lib/virtualenvwrapper
      copying virtualenvwrapper/project.py -> build/lib/virtualenvwrapper
      copying virtualenvwrapper/user_scripts.py -> build/lib/virtualenvwrapper
      copying virtualenvwrapper/__init__.py -> build/lib/virtualenvwrapper
      running egg_info
      writing virtualenvwrapper.egg-info/PKG-INFO
      writing dependency_links to virtualenvwrapper.egg-info/dependency_links.txt
      writing entry points to virtualenvwrapper.egg-info/entry_points.txt
      writing namespace_packages to virtualenvwrapper.egg-info/namespace_packages.txt
      writing requirements to virtualenvwrapper.egg-info/requires.txt
      writing top-level names to virtualenvwrapper.egg-info/top_level.txt
      [pbr] Reusing existing SOURCES.txt
      running build_scripts
      creating build/scripts-3.9
      copying virtualenvwrapper.sh -> build/scripts-3.9
      copying virtualenvwrapper_lazy.sh -> build/scripts-3.9
      changing mode of build/scripts-3.9/virtualenvwrapper.sh from 664 to 775
      changing mode of build/scripts-3.9/virtualenvwrapper_lazy.sh from 664 to 775
      /home/luis/.local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
      !!
      
              ********************************************************************************
              Please avoid running ``setup.py`` directly.
              Instead, use pypa/build, pypa/installer or other
              standards-based tools.
      
              See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
              ********************************************************************************
      
      !!
        self.initialize_options()
      installing to build/bdist.linux-x86_64/wheel
      running install
      [pbr] Generating AUTHORS
      [pbr] AUTHORS complete (0.0s)
      running install_lib
      copying virtualenvwrapper/hook_loader.py -> build/bdist.linux-x86_64/wheel/virtualenvwrapper
      copying virtualenvwrapper/project.py -> build/bdist.linux-x86_64/wheel/virtualenvwrapper
      copying virtualenvwrapper/user_scripts.py -> build/bdist.linux-x86_64/wheel/virtualenvwrapper
      Skipping installation of build/bdist.linux-x86_64/wheel/virtualenvwrapper/__init__.py (namespace package)
      running install_egg_info
      Copying virtualenvwrapper.egg-info to build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3-py3.9.egg-info
      Installing build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3-py3.9-nspkg.pth
      running install_scripts
      creating build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3.data
      creating build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3.data/scripts
      copying build/scripts-3.9/virtualenvwrapper_lazy.sh -> build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3.data/scripts
      copying build/scripts-3.9/virtualenvwrapper.sh -> build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3.data/scripts
      changing mode of build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3.data/scripts/virtualenvwrapper_lazy.sh to 775
      changing mode of build/bdist.linux-x86_64/wheel/virtualenvwrapper-4.8.3.data/scripts/virtualenvwrapper.sh to 775
      error: invalid command 'bdist_wininst'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for virtualenvwrapper
  Running setup.py clean for virtualenvwrapper
Failed to build virtualenvwrapper
ERROR: Could not build wheels for virtualenvwrapper, which is required to install pyproject.toml-based projects

I tried using python 3.8 and python 3.9.

workaround

I installed virtualenvwrapper version 4.8.2 without the problem.

installation commands

python3 -m pip install --upgrade pip 
sudo apt-get install gcc libpq-dev 
sudo apt-get install python-dev 
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel
python3 -m pip install setuptools wheel
python3 -m pip install cmake

# pip install wheel
pip install --user virtualenvwrapper
pip install virtualenvwrapper # this one did not work as well

installed packages

output of pip freeze

apturl==0.5.2
bcrypt==3.1.7
beautifulsoup4==4.8.2
blessings==1.6
blinker==1.4
Brlapi==0.7.0
certifi==2019.11.28
chardet==3.0.4
Click==7.0
cmake==3.27.2
colorama==0.4.3
command-not-found==0.3
cryptography==2.8
cupshelpers==1.0
dbus-python==1.2.16
defer==1.0.6
distlib==0.3.7
distro==1.4.0
distro-info===0.23ubuntu1
duplicity==0.8.12.0
entrypoints==0.3
fasteners==0.14.1
filelock==3.12.2
future==0.18.2
gpustat==0.6.0
html5lib==1.0.1
httplib2==0.14.0
idna==2.8
keyring==18.0.1
language-selector==0.1
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
libevdev==0.5
linecache2==1.0.0
lockfile==0.12.2
louis==3.12.0
lxml==4.5.0
macaroonbakery==1.3.1
Mako==1.1.0
MarkupSafe==1.1.0
monotonic==1.5
netifaces==0.10.4
numpy==1.17.4
nvidia-ml-py3==7.352.0
oauthlib==3.1.0
olefile==0.46
paramiko==2.6.0
pbr==5.4.5
pexpect==4.6.0
Pillow==7.0.0
platformdirs==3.10.0
protobuf==3.6.1
psutil==5.5.1
pycairo==1.16.2
pycups==1.9.73
pygame==1.9.6
PyGObject==3.36.0
PyJWT==1.7.1
pymacaroons==0.13.0
PyNaCl==1.3.0
pyRFC3339==1.1
python-apt==2.0.1+ubuntu0.20.4.1
python-dateutil==2.7.3
python-debian==0.1.36+ubuntu1.1
pytz==2019.3
pyudev==0.21.0
pyxdg==0.26
PyYAML==5.3.1
reportlab==3.5.34
requests==2.22.0
requests-unixsocket==0.2.0
screen-resolution-extra==0.0.0
SecretStorage==2.3.1
simplejson==3.16.0
six==1.14.0
soupsieve==1.9.5
stevedore==5.1.0
systemd-python==234
testresources==2.0.0
traceback2==1.4.0
ubuntu-advantage-tools==8001
ubuntu-drivers-common==0.0.0
ufw==0.36
unattended-upgrades==0.1
unittest2==1.1.0
urllib3==1.25.8
usb-creator==0.3.7
virtualenv==20.24.3
virtualenv-clone==0.5.7
wadllib==1.3.3
webencodings==0.5.1
xkit==0.0.0

kindly let me know if there is any other info I should add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions