Porteus-v5.01 bug reports

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
i3slkiller
Contributor
Contributor
Posts: 59
Joined: 03 Feb 2020, 18:51
Distribution: Porteus XFCE v5.0rc2 x86_64
Location: Poland

Porteus-v5.01 bug reports

Post#166 by i3slkiller » 06 May 2024, 13:14

Now after update creating python virtual environment without 05-devel fails

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:~$
EDIT:

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:~$ 
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 :hmmm:

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3956
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Porteus-v5.01 bug reports

Post#167 by ncmprhnsbl » 06 May 2024, 23:02

i3slkiller wrote:
06 May 2024, 13:14
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 issu
here's the relevant slackware changelog entry:

Code: Select all

patches/packages/python3-3.9.19-x86_64-1_slack15.0.txz:  Upgraded.
  This update fixes security issues:
  bundled libexpat was updated to 2.6.0.
  zipfile is now protected from the "quoted-overlap" zipbomb.
  tempfile.TemporaryDirectory cleanup no longer dereferences symlinks when
  working around file system permission errors.
  For more information, see:
    https://pythoninsider.blogspot.com/2024/03/python-31014-3919-and-3819-is-now.html
    https://www.cve.org/CVERecord?id=CVE-2023-52425
    https://www.cve.org/CVERecord?id=CVE-2024-0450
    https://www.cve.org/CVERecord?id=CVE-2023-6597
  (* Security fix *)
changed behavior of the bundled expat?
Ed_P wrote:
05 May 2024, 19:02
I like the updates to the new 001-core and 002-xorg 64bit modules ncmp. :good: Did the pmod & slapt-mod changes get made to other scripts also?
you mean --help not requiring root? not so far.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 8410
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus-v5.01 bug reports

Post#168 by Ed_P » 06 May 2024, 23:21

ncmprhnsbl wrote:
06 May 2024, 23:02
you mean --help not requiring root?
:happy62:
Ed

i3slkiller
Contributor
Contributor
Posts: 59
Joined: 03 Feb 2020, 18:51
Distribution: Porteus XFCE v5.0rc2 x86_64
Location: Poland

Porteus-v5.01 bug reports

Post#169 by i3slkiller » 07 May 2024, 05:28

Okay, maybe that solution didn't seem particularly good for me, but I noticed something else:

Code: Select all

root@porteus:/home/guest# ls -l /mnt/live/memory/images/*/usr/lib64/libexpat*
lrwxrwxrwx 1 root root     17 Apr 29 07:33 /mnt/live/memory/images/001-core.xzm/usr/lib64/libexpat.so.1 -> libexpat.so.1.8.4*
-rwxr-xr-x 1 root root 190528 Apr 29 07:36 /mnt/live/memory/images/001-core.xzm/usr/lib64/libexpat.so.1.8.4*
lrwxrwxrwx 1 root root     17 Mar  2 07:58 /mnt/live/memory/images/05-devel.xzm/usr/lib64/libexpat.so -> libexpat.so.1.9.1*
lrwxrwxrwx 1 root root     17 Mar  2 07:58 /mnt/live/memory/images/05-devel.xzm/usr/lib64/libexpat.so.1 -> libexpat.so.1.9.1*
-rwxr-xr-x 1 root root 190616 Mar  1 19:07 /mnt/live/memory/images/05-devel.xzm/usr/lib64/libexpat.so.1.9.1*
Where does this discrepancy in the libexpat versions between 001-core and 05-devel come from (although I'm guessing that porteus creators just forgot to update expat)?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3956
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Porteus-v5.01 bug reports

Post#170 by ncmprhnsbl » 07 May 2024, 12:55

i3slkiller wrote:
07 May 2024, 05:28
Where does this discrepancy in the libexpat versions between 001-core and 05-devel come from (although I'm guessing that porteus creators just forgot to update expat)?
nice catch :0 thanks
ok, what's happening is libexpat in 001-core comes from aaa_libraries. (and 05-devel is from expat)
which is a slackware installation necessity so that it's there for stuff linked to it while the early packages are installed.
later in the process it's overwritten by the expat package.
which would be why the aaa_libs package hasn't been updated since any patch upgrade of expat comes later, after installation.
for the most part, apparently, that old libexpat has been/is fine for the stuff the needs it... until now.
now, why expat was put in devel instead of 001-core, i don't know.. i mean, it didn't matter much until expat patch updates started coming in, and now in particular this python update linking to it.
tldr: expat will be moved from 05-devel to 001-core.
(and the one in devel is also out of date :p )
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 8410
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus-v5.01 bug reports

Post#171 by Ed_P » 13 May 2024, 01:04

ncmprhnsbl » May 12th, 2024, 7:09 pm wrote:A small update for 001-core is now available (as of May 10)
Booting stops and requires me to signin as root to run startx. :o
Booted system doesn't have my /guest/home/ files & folders whether as my save.dat file or as my changes.xzm module. :(
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8410
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus-v5.01 bug reports

Post#172 by Ed_P » 22 May 2024, 06:07

The 240511 001-core update works fine in the new 240521 Cinnamon ISO. :good:

Thank you ncmp. :)
Ed

Post Reply