Malfunction on Python3.11 (Debian 12)
Opened this issue · 0 comments
Vitexus commented
Installation
vitex@exiv:~/Projects/Packaging/Python$ python3.11 -m venv .venv
vitex@exiv:~/Projects/Packaging/Python$ source .venv/bin/activate
(.venv) vitex@exiv:~/Projects/Packaging/Python$ pip install py2deb
Collecting py2deb
Using cached py2deb-5.0-py2.py3-none-any.whl (54 kB)
Collecting coloredlogs>=0.5
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting deb-pkg-tools>=5.2
Using cached deb_pkg_tools-8.4-py2.py3-none-any.whl (87 kB)
Collecting executor>=21.0
Using cached executor-23.2-py2.py3-none-any.whl (85 kB)
Collecting humanfriendly>=8.0
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Collecting pip-accel<=0.43,>=0.25
Using cached pip_accel-0.43-py3-none-any.whl
Collecting pkginfo>=1.1
Using cached pkginfo-1.9.6-py3-none-any.whl (30 kB)
Collecting property-manager>=2.3.1
Using cached property_manager-3.0-py2.py3-none-any.whl (23 kB)
Collecting six>=1.6.1
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting fasteners>=0.14.1
Using cached fasteners-0.18-py3-none-any.whl (18 kB)
Collecting cached-property>=0.1.5
Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting pip<7.2,>=7.0
Using cached pip-7.1.2-py2.py3-none-any.whl (1.1 MB)
Requirement already satisfied: setuptools>=7.0 in ./.venv/lib/python3.11/site-packages (from pip-accel<=0.43,>=0.25->py2deb) (66.1.1)
Collecting verboselogs>=1.1
Using cached verboselogs-1.7-py2.py3-none-any.whl (11 kB)
Installing collected packages: verboselogs, pip, cached-property, six, pkginfo, humanfriendly, fasteners, property-manager, coloredlogs, pip-accel, executor, deb-pkg-tools, py2deb
Attempting uninstall: pip
Found existing installation: pip 23.0.1
Uninstalling pip-23.0.1:
Successfully uninstalled pip-23.0.1
Successfully installed cached-property-1.5.2 coloredlogs-15.0.1 deb-pkg-tools-8.4 executor-23.2 fasteners-0.18 humanfriendly-10.0 pip-7.1.2 pip-accel-0.43 pkginfo-1.9.6 property-manager-3.0 py2deb-5.0 six-1.16.0 verboselogs-1.7
Problem
(.venv) vitex@exiv:~/Projects/Packaging/Python$ py2deb
Traceback (most recent call last):
File "/home/vitex/Projects/Packaging/Python/.venv/bin/py2deb", line 5, in <module>
from py2deb.cli import main
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/py2deb/cli.py", line 137, in <module>
from py2deb.converter import PackageConverter
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/py2deb/converter.py", line 35, in <module>
from pip_accel import PipAccelerator
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip_accel/__init__.py", line 54, in <module>
from pip_accel.bdist import BinaryDistributionManager
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip_accel/bdist.py", line 35, in <module>
from pip_accel.caches import CacheManager
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip_accel/caches/__init__.py", line 25, in <module>
from pip_accel.exceptions import CacheBackendDisabledError
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip_accel/exceptions.py", line 36, in <module>
from pip_accel.utils import compact
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip_accel/utils.py", line 28, in <module>
from pip.commands.uninstall import UninstallCommand
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip/__init__.py", line 13, in <module>
from pip.utils import get_installed_distributions, get_prog
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip/utils/__init__.py", line 23, in <module>
from pip._vendor import pkg_resources
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip/_vendor/pkg_resources/__init__.py", line 32, in <module>
import symbol
ModuleNotFoundError: No module named 'symbol'
Even update of pip
and setuptools
won't help :(
vitex@exiv:~/Projects/Packaging/Python$ python3.11 -m venv .venv
vitex@exiv:~/Projects/Packaging/Python$ source .venv/bin/activate
(.venv) vitex@exiv:~/Projects/Packaging/Python$ pip install --upgrade pip setuptools
Requirement already satisfied: pip in ./.venv/lib/python3.11/site-packages (23.0.1)
Collecting pip
Using cached pip-23.2.1-py3-none-any.whl (2.1 MB)
Requirement already satisfied: setuptools in ./.venv/lib/python3.11/site-packages (66.1.1)
Collecting setuptools
Using cached setuptools-68.1.2-py3-none-any.whl (805 kB)
Installing collected packages: setuptools, pip
Attempting uninstall: setuptools
Found existing installation: setuptools 66.1.1
Uninstalling setuptools-66.1.1:
Successfully uninstalled setuptools-66.1.1
Attempting uninstall: pip
Found existing installation: pip 23.0.1
Uninstalling pip-23.0.1:
Successfully uninstalled pip-23.0.1
Successfully installed pip-23.2.1 setuptools-68.1.2
(.venv) vitex@exiv:~/Projects/Packaging/Python$ pip install --upgrade py2deb
Collecting py2deb
Using cached py2deb-5.0-py2.py3-none-any.whl (54 kB)
Collecting coloredlogs>=0.5 (from py2deb)
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting deb-pkg-tools>=5.2 (from py2deb)
Using cached deb_pkg_tools-8.4-py2.py3-none-any.whl (87 kB)
Collecting executor>=21.0 (from py2deb)
Using cached executor-23.2-py2.py3-none-any.whl (85 kB)
Collecting humanfriendly>=8.0 (from py2deb)
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Collecting pip-accel<=0.43,>=0.25 (from py2deb)
Using cached pip_accel-0.43-py3-none-any.whl
Collecting pkginfo>=1.1 (from py2deb)
Using cached pkginfo-1.9.6-py3-none-any.whl (30 kB)
Collecting property-manager>=2.3.1 (from py2deb)
Using cached property_manager-3.0-py2.py3-none-any.whl (23 kB)
Collecting six>=1.6.1 (from py2deb)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting fasteners>=0.14.1 (from executor>=21.0->py2deb)
Using cached fasteners-0.18-py3-none-any.whl (18 kB)
Collecting cached-property>=0.1.5 (from pip-accel<=0.43,>=0.25->py2deb)
Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting pip<7.2,>=7.0 (from pip-accel<=0.43,>=0.25->py2deb)
Using cached pip-7.1.2-py2.py3-none-any.whl (1.1 MB)
Requirement already satisfied: setuptools>=7.0 in ./.venv/lib/python3.11/site-packages (from pip-accel<=0.43,>=0.25->py2deb) (68.1.2)
Collecting verboselogs>=1.1 (from property-manager>=2.3.1->py2deb)
Using cached verboselogs-1.7-py2.py3-none-any.whl (11 kB)
Installing collected packages: verboselogs, pip, cached-property, six, pkginfo, humanfriendly, fasteners, property-manager, coloredlogs, pip-accel, executor, deb-pkg-tools, py2deb
Attempting uninstall: pip
Found existing installation: pip 23.2.1
Uninstalling pip-23.2.1:
Successfully uninstalled pip-23.2.1
Successfully installed cached-property-1.5.2 coloredlogs-15.0.1 deb-pkg-tools-8.4 executor-23.2 fasteners-0.18 humanfriendly-10.0 pip-7.1.2 pip-accel-0.43 pkginfo-1.9.6 property-manager-3.0 py2deb-5.0 six-1.16.0 verboselogs-1.7
[notice] A new release of pip is available: 7.1.2 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
(.venv) vitex@exiv:~/Projects/Packaging/Python$ pip install --upgrade pip
Traceback (most recent call last):
File "/home/vitex/Projects/Packaging/Python/.venv/bin/pip", line 5, in <module>
from pip import main
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip/__init__.py", line 13, in <module>
from pip.utils import get_installed_distributions, get_prog
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip/utils/__init__.py", line 23, in <module>
from pip._vendor import pkg_resources
File "/home/vitex/Projects/Packaging/Python/.venv/lib/python3.11/site-packages/pip/_vendor/pkg_resources/__init__.py", line 32, in <module>
import symbol
ModuleNotFoundError: No module named 'symbol'
Any hint anyone please ?