Systemcluster / The-Witcher-3-Mod-manager

Mod manager for The Witcher 3 πŸ—ƒ

Home Page:https://www.nexusmods.com/witcher3/mods/2678

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install pyside2 on Python 3.9

Markussss opened this issue Β· comments

Hi,

I just attempted to install (pipenv install --python 3) on my PC running Fedora 3.4. This did not work, and I was given the following output:

$ pipenv install --python 3
Creating a virtualenv for this project...
Pipfile: /home/markus/The-Witcher-3-Mod-manager/Pipfile
Using /usr/bin/python3.9 (3.9.7) to create virtualenv...
β ¦ Creating virtual environment...created virtual environment CPython3.9.7.final.0-64 in 419ms
  creator CPython3Posix(dest=/home/markus/.local/share/virtualenvs/The-Witcher-3-Mod-manager-hVOQ4ZBA, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(extra_search_dir=/usr/share/python-wheels,download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/markus/.local/share/virtualenv)
    added seed packages: pip==21.0.1, setuptools==53.0.0, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

βœ” Successfully created virtual environment! 
Virtualenv location: /home/markus/.local/share/virtualenvs/The-Witcher-3-Mod-manager-hVOQ4ZBA
Installing dependencies from Pipfile.lock (d86da0)...
An error occurred while installing pyside2==5.14.2.3 --hash=sha256:9c756537f5fb6652854a28a4536da1b6ef321cbceb739cf005e768613914cd19 --hash=sha256:738b9e73f82949f8c3a77349fd70f57e4d2f36e8912d7f6e4c78ae23af338e5a --hash=sha256:fe9d4b405ee9cfe14cb79387dea42a1985e1e2b958d6ef8870388093ad928d09 --hash=sha256:28d0ebd973c62042925474f3d889b8819cdbda0261a317a97354bd0f89479c4a --hash=sha256:1b9ee82f72f672395eefd11493322ac890333ee658a732cb637c47fb3821d504 --hash=sha256:f673f8696dbf9cbcbf5eac586411a58c762c40b3645937081d97ffc9f8b46e30! Will try again.
Ignoring shiboken2: markers 'python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4" and python_version < "3.9"' don't match your environment
  🐍   β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰ 10/10 β€” 00:00:05
Installing initially failed dependencies...
[pipenv.exceptions.InstallError]: ERROR: Could not find a version that satisfies the requirement pyside2==5.14.2.3
[pipenv.exceptions.InstallError]: ERROR: No matching distribution found for pyside2==5.14.2.3
ERROR: Couldn't install package: pyside2
 Package installation failed...
  ☀  β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰β–‰ 0/1 β€” 00:00:00

This error message suggests a mismatch of python versions:

Ignoring shiboken2: markers 'python_version >= "2.7" and python_version not in "3.0, 3.1, 3.2, 3.3, 3.4" and python_version < "3.9"' don't match your environment

This suggests that the only supported python versions are 3.5, 3.6, 3.7, and 3.8.

My default python (both python and python3) version is 3.9:

$ python --version
Python 3.9.7
$ python3 --version
Python 3.9.7

We should probably be more specific about which version of python to use in the pipenv command. For example 3.8? pipenv install --python 3.8.

However, it would probably also require adding a notice about which python version should be installed on the system, as well, and maybe some helpful tips on how to do so on different systems.

commented

I've replaced the deprecated cchardet with charset-normalizer and upgraded PySide2 to the latest version; Installing the dependencies with Python versions <=3.10 should work now.