Porteus-v5.01 bug reports
Posted: 06 May 2024, 13:14
Now after update creating python virtual environment without 05-devel fails
EDIT:
EDIT2: Replacing /usr/lib64/python3.9/lib-dynload/pyexpat.cpython-39-x86_64-linux-gnu.so with one from older 001-core seems to fix this issue
Code: Select all
guest@porteus:~$ cat /etc/porteus/*
001-core.xzm:20240429
002-xorg.xzm:20240429
002-xtra.xzm:20240301
003-openbox.xzm:20230922
initrd.xz:20230923
guest@porteus:~$ python3 -m venv /tmp/venv
Error: Command '['/tmp/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
guest@porteus:~$ ls /mnt/live/memory/images/
000-kernel.xzm/ 001-core.xzm/
002-xorg.xzm/ 002-xtra.xzm/
003-openbox.xzm/ 004-vbox-guest-7.0.14-porteus-v5.01-x86_64-1prt.xzm/
guest@porteus:~$
Code: Select all
guest@porteus:~$ python3 -m venv /tmp/venv
Error: Command '['/tmp/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
guest@porteus:~$ /tmp/venv/bin/python3 -Im ensurepip --upgrade --default-pip
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "/usr/lib64/python3.9/runpy.py", line 225, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/__main__.py", line 31, in <module>
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/cli/main.py", line 68, in main
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/commands/__init__.py", line 114, in create_command
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/commands/install.py", line 16, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/cli/req_command.py", line 21, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/index/package_finder.py", line 30, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/req/__init__.py", line 8, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/req/req_install.py", line 44, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_internal/operations/install/wheel.py", line 39, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 16, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl/pip/_vendor/distlib/compat.py", line 83, in <module>
File "/usr/lib64/python3.9/xmlrpc/client.py", line 138, in <module>
from xml.parsers import expat
File "/usr/lib64/python3.9/xml/parsers/expat.py", line 4, in <module>
from pyexpat import *
ImportError: /usr/lib64/python3.9/lib-dynload/pyexpat.cpython-39-x86_64-linux-gnu.so: undefined symbol: XML_SetReparseDeferralEnabled
Traceback (most recent call last):
File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib64/python3.9/ensurepip/__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
File "/usr/lib64/python3.9/ensurepip/__init__.py", line 211, in _main
return _bootstrap(
File "/usr/lib64/python3.9/ensurepip/__init__.py", line 130, in _bootstrap
return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/usr/lib64/python3.9/ensurepip/__init__.py", line 39, in _run_pip
return subprocess.run(cmd, check=True).returncode
File "/usr/lib64/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/venv/bin/python3', '-I', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpexunzhn2/setuptools-58.1.0-py3-none-any.whl\', \'/tmp/tmpexunzhn2/pip-23.0.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--ignore-installed\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpexunzhn2\', \'--upgrade\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
guest@porteus:~$ sudo activate /mnt/sda1/porteus/modules/05-devel.xzm
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
For security reasons, the password you type will not be visible.
Password:
Updating shared library links: /sbin/ldconfig
Updating MIME database: /usr/bin/update-mime-database /usr/share/mime
Updating GTK immodules: /usr/bin/update-gtk-immodules
Updating GDK pixbuf loaders: /usr/bin/update-gdk-pixbuf-loaders
Updating GDK pixbuf loaders: /usr/bin/update-gdk-pixbuf-loaders
Updating menu: update-desktop-database
guest@porteus:~$ /tmp/venv/bin/python3 -Im ensurepip --upgrade --default-pip
Looking in links: /tmp/tmpzlnt124a
Processing /tmp/tmpzlnt124a/setuptools-58.1.0-py3-none-any.whl
Processing /tmp/tmpzlnt124a/pip-23.0.1-py3-none-any.whl
Installing collected packages: setuptools, pip
Successfully installed pip-23.0.1 setuptools-58.1.0
guest@porteus:~$ cat /etc/porteus/05-devel.ver
05-devel.xzm:20240302
guest@porteus:~$ sudo deactivate /mnt/sda1/porteus/modules/05-devel.xzm
Updating shared library links: /sbin/ldconfig
Updating MIME database: /usr/bin/update-mime-database /usr/share/mime
Updating GTK immodules: /usr/bin/update-gtk-immodules
Updating GDK pixbuf loaders: /usr/bin/update-gdk-pixbuf-loaders
Updating GDK pixbuf loaders: /usr/bin/update-gdk-pixbuf-loaders
Updating menu: update-desktop-database
guest@porteus:~$ /tmp/venv/bin/python3 -Im ensurepip --upgrade --default-pip
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "/usr/lib64/python3.9/runpy.py", line 225, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/__main__.py", line 31, in <module>
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/cli/main.py", line 68, in main
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/commands/__init__.py", line 114, in create_command
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/commands/install.py", line 16, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/cli/req_command.py", line 21, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/index/package_finder.py", line 30, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/req/__init__.py", line 8, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/req/req_install.py", line 44, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_internal/operations/install/wheel.py", line 39, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 16, in <module>
File "<frozen zipimport>", line 259, in load_module
File "/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl/pip/_vendor/distlib/compat.py", line 83, in <module>
File "/usr/lib64/python3.9/xmlrpc/client.py", line 138, in <module>
from xml.parsers import expat
File "/usr/lib64/python3.9/xml/parsers/expat.py", line 4, in <module>
from pyexpat import *
ImportError: /usr/lib64/python3.9/lib-dynload/pyexpat.cpython-39-x86_64-linux-gnu.so: undefined symbol: XML_SetReparseDeferralEnabled
Traceback (most recent call last):
File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib64/python3.9/ensurepip/__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
File "/usr/lib64/python3.9/ensurepip/__init__.py", line 211, in _main
return _bootstrap(
File "/usr/lib64/python3.9/ensurepip/__init__.py", line 130, in _bootstrap
return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/usr/lib64/python3.9/ensurepip/__init__.py", line 39, in _run_pip
return subprocess.run(cmd, check=True).returncode
File "/usr/lib64/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/venv/bin/python3', '-I', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmptlc_u5hw/setuptools-58.1.0-py3-none-any.whl\', \'/tmp/tmptlc_u5hw/pip-23.0.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--ignore-installed\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmptlc_u5hw\', \'--upgrade\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
guest@porteus:~$