all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#73304: Python in relocatable guix pack leads to wrong sys.path
@ 2024-09-16 19:23 Rutherther via Bug reports for GNU Guix
  2024-09-16 19:28 ` Rutherther via Bug reports for GNU Guix
  2024-09-30 21:08 ` Ludovic Courtès
  0 siblings, 2 replies; 8+ messages in thread
From: Rutherther via Bug reports for GNU Guix @ 2024-09-16 19:23 UTC (permalink / raw)
  To: 73304


When I add both python and a python package (seems like any) to a
relocatable guix pack, the resulting python in the merged profile seems
to be broken. Specifically its `sys.path` contains missing paths.

To replicate:
```
mkdir -p /tmp/b && cd /tmp/b
tar xzvf $(guix pack -RR python python-pyflakes -S /profile=)`
```

Then try executing the python from merged profile, and see sys.path output
--8<---------------cut here---------------start------------->8---
./profile/bin/python3
>>> import sys
>>> print(sys.path)
['', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python310.zip', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/lib-dynload', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/site-packages']
--8<---------------cut here---------------end--------------->8---

Now if you instead use the realpath of this python
--8<---------------cut here---------------start------------->8---
$(realpath ./profile/bin/python3)
>>> import sys
>>> print(sys.path)
['', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python310.zip', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/lib-dynload', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/site-packages']
--8<---------------cut here---------------end--------------->8---

As can be observed, the first instance misses "gnu/store" in the path,
and instead points to a path that does not exist. I have not
investigated, at least not yet, where this discrepancy comes from.
I was not able to replicate this with anything else than relocatable
pack. So my guess would be something strange happens when making
bwrap/fakechroot etc.

Regards,
Rutherther





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#73304: Python in relocatable guix pack leads to wrong sys.path
  2024-09-16 19:23 bug#73304: Python in relocatable guix pack leads to wrong sys.path Rutherther via Bug reports for GNU Guix
@ 2024-09-16 19:28 ` Rutherther via Bug reports for GNU Guix
  2024-09-30 21:08 ` Ludovic Courtès
  1 sibling, 0 replies; 8+ messages in thread
From: Rutherther via Bug reports for GNU Guix @ 2024-09-16 19:28 UTC (permalink / raw)
  To: 73304


As a workaround, the profile in gnu/store can be used instead
of the one exposed by -S symlink. Specifically, getting
`realpath ./profile` and using that as the profile instead
of `./profile` directly resolves the issue.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#73304: Python in relocatable guix pack leads to wrong sys.path
  2024-09-16 19:23 bug#73304: Python in relocatable guix pack leads to wrong sys.path Rutherther via Bug reports for GNU Guix
  2024-09-16 19:28 ` Rutherther via Bug reports for GNU Guix
@ 2024-09-30 21:08 ` Ludovic Courtès
  2024-10-01 19:39   ` Rutherther via Bug reports for GNU Guix
  2024-10-02  6:20   ` Konrad Hinsen
  1 sibling, 2 replies; 8+ messages in thread
From: Ludovic Courtès @ 2024-09-30 21:08 UTC (permalink / raw)
  To: Rutherther; +Cc: Josselin Poiret, 73304, Konrad Hinsen, Maxim Cournoyer

Hello,

Rutherther <rutherther@protonmail.com> skribis:

> When I add both python and a python package (seems like any) to a
> relocatable guix pack, the resulting python in the merged profile seems
> to be broken. Specifically its `sys.path` contains missing paths.
>
> To replicate:
> ```
> mkdir -p /tmp/b && cd /tmp/b
> tar xzvf $(guix pack -RR python python-pyflakes -S /profile=)`
> ```
>
> Then try executing the python from merged profile, and see sys.path output
>
> ./profile/bin/python3
>>>> import sys
>>>> print(sys.path)
> ['', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python310.zip', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/lib-dynload', '/tmp/b/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/site-packages']
>
>
> Now if you instead use the realpath of this python
>
> $(realpath ./profile/bin/python3)
>>>> import sys
>>>> print(sys.path)
> ['', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python310.zip', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/lib-dynload', '/tmp/b/gnu/store/pwajwfiygrkmag8fm1wzn3cf362j7sri-python-3.10.7R/lib/python3.10/site-packages']
>
> As can be observed, the first instance misses "gnu/store" in the path,
> and instead points to a path that does not exist.

Commit d5e0180805f52ef38a03ff9d6c11dd6174e3526b fixed a similar issue I
think, discussed at <https://issues.guix.gnu.org/53258>.

Not sure whether it’s a new problem here.  Konrad, Maxim, Josselin,
WDYT? :-)

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#73304: Python in relocatable guix pack leads to wrong sys.path
  2024-09-30 21:08 ` Ludovic Courtès
@ 2024-10-01 19:39   ` Rutherther via Bug reports for GNU Guix
  2024-10-02  6:20   ` Konrad Hinsen
  1 sibling, 0 replies; 8+ messages in thread
From: Rutherther via Bug reports for GNU Guix @ 2024-10-01 19:39 UTC (permalink / raw)
  To: Ludovic Courtès
  Cc: Josselin Poiret, 73304, Konrad Hinsen, Maxim Cournoyer


Ludovic Courtès <ludo@gnu.org> writes:

> Commit d5e0180805f52ef38a03ff9d6c11dd6174e3526b fixed a similar issue I
> think, discussed at <https://issues.guix.gnu.org/53258>.
>
> Not sure whether it’s a new problem here.  Konrad, Maxim, Josselin,
> WDYT? :-)

Hello Ludovic,

if I understand correctly this commit was merged to master with
the quite-recent core-updates merge? The experiment I did was
after this.

Moreover, I tried with newest master now to make sure,
and still the same behavior.

I will try to investigate this myself after I get some time (which may
be quite a while) if no one else will get to it until that time.

Regards,
Rutherther.

PS: sorry for the e-mail change, I recently set up self-hosted one, so
let's see how well it works with debbugs / your gnu.org address. :)




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#73304: Python in relocatable guix pack leads to wrong sys.path
  2024-09-30 21:08 ` Ludovic Courtès
  2024-10-01 19:39   ` Rutherther via Bug reports for GNU Guix
@ 2024-10-02  6:20   ` Konrad Hinsen
  2024-10-02 11:59     ` Konrad Hinsen
  1 sibling, 1 reply; 8+ messages in thread
From: Konrad Hinsen @ 2024-10-02  6:20 UTC (permalink / raw)
  To: Ludovic Courtès, Rutherther; +Cc: 73304, Josselin Poiret, Maxim Cournoyer

Ludovic Courtès <ludo@gnu.org> writes:

> Rutherther <rutherther@protonmail.com> skribis:
>
>> When I add both python and a python package (seems like any) to a
>> relocatable guix pack, the resulting python in the merged profile seems
>> to be broken. Specifically its `sys.path` contains missing paths.

> Commit d5e0180805f52ef38a03ff9d6c11dd6174e3526b fixed a similar issue I
> think, discussed at <https://issues.guix.gnu.org/53258>.
>
> Not sure whether it’s a new problem here.  Konrad, Maxim, Josselin,
> WDYT? :-)

This problem clearly looks like it's caused by our sitecustomize.py.
One indicator is "When I add both python and a python package": if there
is no additional package, only python by itself, our sitecustomize
doesn't do anything.

However, I don't see how the recent patch (see
https://issues.guix.gnu.org/68241) could be responsible for this new
problem. It should have happened before as well.

Here is what sitecustomize.py does:

 1. Collect the "site-packages" subdirectories of everything on
    $GUIX_PYTHONPATH.
 2. Normalize them via sys.normpath()
 3. Add them to sys.path
 4. Re-arrange the elements in sys.path such that the add-on
    packages come before Python's standard library.

The recent patch fixes a bug in the last step, which wasn't executed at
all (and generated an error message). So the difference between the
current and the previous behavior is only the order of entries in
sys.path.

The current problem is that even the standard library's paths are wrong.
I suspect that this is due to sys.normpath not implementing the correct
POSIX semantics for dot-dot.

Cheers,
  Konrad.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#73304: Python in relocatable guix pack leads to wrong sys.path
  2024-10-02  6:20   ` Konrad Hinsen
@ 2024-10-02 11:59     ` Konrad Hinsen
  2024-10-06  8:29       ` Konrad Hinsen
  0 siblings, 1 reply; 8+ messages in thread
From: Konrad Hinsen @ 2024-10-02 11:59 UTC (permalink / raw)
  To: Ludovic Courtès, Rutherther; +Cc: 73304, Josselin Poiret, Maxim Cournoyer

Konrad Hinsen <konrad.hinsen@fastmail.net> writes:

> This problem clearly looks like it's caused by our sitecustomize.py.
> One indicator is "When I add both python and a python package": if there
> is no additional package, only python by itself, our sitecustomize
> doesn't do anything.

I have changed my mind. In the sys.path outputs shown, there are no
paths from add-on packages. It's just the Python standard library.
Maybe our sitecustomize.py is not run at all, but if it is, it didn't do
anything to sys.path. There must be a bug somewhere else.

Cheers,
  Konrad.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#73304: Python in relocatable guix pack leads to wrong sys.path
  2024-10-02 11:59     ` Konrad Hinsen
@ 2024-10-06  8:29       ` Konrad Hinsen
  2024-10-14 11:11         ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Konrad Hinsen @ 2024-10-06  8:29 UTC (permalink / raw)
  To: Ludovic Courtès, Rutherther; +Cc: 73304, Josselin Poiret, Maxim Cournoyer

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

Konrad Hinsen <konrad.hinsen@fastmail.net> writes:

> I have changed my mind. In the sys.path outputs shown, there are no
> paths from add-on packages. It's just the Python standard library.
> Maybe our sitecustomize.py is not run at all, but if it is, it didn't do
> anything to sys.path. There must be a bug somewhere else.

Our sitecustomize.py is indeed not run at all, so this definitely is a
different problem.

Evidence: Run Rutherther's example, adding the -v option.  The long
output is attached, both for "./profile/bin/python3 -v" and "$(realpath
./profile/bin/python3) -v". Search for "site-packages" to find the
interesting parts. If you don't use realpath, large parts of the
initialization are not done.

There are lots of ../../ in the path shown in these log files. If Python
resolves them lexically, as the normpath function does, that would
probably explain most of these issues.

Cheers,
  Konrad.

[-- Attachment #2: without-realpath.log --]
[-- Type: application/octet-stream, Size: 10789 bytes --]

/tmp/b$ ./profile/bin/python3 -v
import _frozen_importlib # frozen
import _imp # builtin
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
# installing zipimport hook
import 'time' # <class '_frozen_importlib.BuiltinImporter'>
import 'zipimport' # <class '_frozen_importlib.FrozenImporter'>
# installed zipimport hook
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/__init__.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__init__.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/__init__.cpython-310.pyc'
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/codecs.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/codecs.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/codecs.cpython-310.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2cafdf0>
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/aliases.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/aliases.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/aliases.cpython-310.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b013c0>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2cafc70>
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/utf_8.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/utf_8.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/utf_8.cpython-310.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b004c0>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/io.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/io.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/io.cpython-310.pyc'
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/abc.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/abc.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/abc.cpython-310.pyc'
import '_abc' # <class '_frozen_importlib.BuiltinImporter'>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b01720>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b01510>
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/site.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/site.cpython-310.pyc'
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/os.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/os.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/os.cpython-310.pyc'
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/stat.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/stat.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/stat.cpython-310.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b03940>
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_collections_abc.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/_collections_abc.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_collections_abc.cpython-310.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b03ca0>
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/posixpath.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/posixpath.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/posixpath.cpython-310.pyc'
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/genericpath.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/genericpath.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/genericpath.cpython-310.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b3a4d0>
import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b03dc0>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b02560>
# /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_sitebuiltins.cpython-310.pyc matches /tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/_sitebuiltins.py
# code object from '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_sitebuiltins.cpython-310.pyc'
import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b03640>
Processing user site-packages
Adding directory: '/home/hinsen/.local/lib/python3.10/site-packages'
Processing .pth file: '/home/hinsen/.local/lib/python3.10/site-packages/distutils-precedence.pth'
# /home/hinsen/.local/lib/python3.10/site-packages/_distutils_hack/__pycache__/__init__.cpython-310.pyc matches /home/hinsen/.local/lib/python3.10/site-packages/_distutils_hack/__init__.py
# code object from '/home/hinsen/.local/lib/python3.10/site-packages/_distutils_hack/__pycache__/__init__.cpython-310.pyc'
import '_distutils_hack' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b3b5b0>
Processing global site-packages
Adding directory: '/tmp/b/profile/bin/../../ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site-packages'
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x7f49c2b01f30>
Python 3.10.7 (main, Jan  1 1970, 00:00:01) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import 'atexit' # <class '_frozen_importlib.BuiltinImporter'>
>>> 
# clear builtins._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.__interactivehook__
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup[2] removing sys
# cleanup[2] removing builtins
# cleanup[2] removing _frozen_importlib
# cleanup[2] removing _imp
# cleanup[2] removing _thread
# cleanup[2] removing _warnings
# cleanup[2] removing _weakref
# cleanup[2] removing _io
# cleanup[2] removing marshal
# cleanup[2] removing posix
# cleanup[2] removing _frozen_importlib_external
# cleanup[2] removing time
# cleanup[2] removing zipimport
# destroy zipimport
# cleanup[2] removing _codecs
# cleanup[2] removing codecs
# cleanup[2] removing encodings.aliases
# cleanup[2] removing encodings
# destroy encodings
# cleanup[2] removing encodings.utf_8
# cleanup[2] removing _signal
# cleanup[2] removing _abc
# cleanup[2] removing abc
# cleanup[2] removing io
# cleanup[2] removing __main__
# destroy __main__
# cleanup[2] removing _stat
# cleanup[2] removing stat
# cleanup[2] removing _collections_abc
# destroy _collections_abc
# cleanup[2] removing genericpath
# cleanup[2] removing posixpath
# cleanup[2] removing os.path
# cleanup[2] removing os
# cleanup[2] removing _sitebuiltins
# cleanup[2] removing _distutils_hack
# destroy _distutils_hack
# cleanup[2] removing site
# destroy site
# cleanup[2] removing atexit
# destroy _signal
# destroy _sitebuiltins
# destroy io
# destroy atexit
# cleanup[3] wiping os
# destroy abc
# destroy posixpath
# cleanup[3] wiping genericpath
# cleanup[3] wiping stat
# cleanup[3] wiping _stat
# destroy _stat
# cleanup[3] wiping _abc
# cleanup[3] wiping encodings.utf_8
# cleanup[3] wiping encodings.aliases
# cleanup[3] wiping codecs
# cleanup[3] wiping _codecs
# cleanup[3] wiping time
# cleanup[3] wiping _frozen_importlib_external
# cleanup[3] wiping posix
# cleanup[3] wiping marshal
# cleanup[3] wiping _io
# cleanup[3] wiping _weakref
# cleanup[3] wiping _warnings
# cleanup[3] wiping _thread
# cleanup[3] wiping _imp
# cleanup[3] wiping _frozen_importlib
# destroy _weakref
# cleanup[3] wiping sys
# cleanup[3] wiping builtins
# destroy _thread
# destroy posix
# destroy _frozen_importlib_external
# destroy _imp
# destroy io
# destroy marshal
# destroy time
# destroy _warnings
# destroy os
# destroy stat
# destroy genericpath
# destroy _abc
# destroy _frozen_importlib
# destroy codecs
# destroy sys
# destroy encodings.aliases
# destroy encodings.utf_8
# destroy _codecs
# destroy builtins
# clear sys.audit hooks

[-- Attachment #3: with-realpath.log --]
[-- Type: application/octet-stream, Size: 26109 bytes --]

/tmp/b$ $(realpath ./profile/bin/python3) -v
import _frozen_importlib # frozen
import _imp # builtin
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
# installing zipimport hook
import 'time' # <class '_frozen_importlib.BuiltinImporter'>
import 'zipimport' # <class '_frozen_importlib.FrozenImporter'>
# installed zipimport hook
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/__init__.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__init__.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/__init__.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/codecs.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/codecs.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/codecs.cpython-310.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0381d3df0>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/aliases.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/aliases.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/aliases.cpython-310.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0380253c0>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0381d3c70>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/utf_8.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/utf_8.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/encodings/__pycache__/utf_8.cpython-310.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0380244c0>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/io.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/io.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/io.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/abc.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/abc.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/abc.cpython-310.pyc'
import '_abc' # <class '_frozen_importlib.BuiltinImporter'>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038025720>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038025510>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/site.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/site.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/os.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/os.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/os.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/stat.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/stat.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/stat.cpython-310.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038027940>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_collections_abc.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/_collections_abc.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_collections_abc.cpython-310.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038027ca0>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/posixpath.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/posixpath.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/posixpath.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/genericpath.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/genericpath.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/genericpath.cpython-310.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd03805e4d0>
import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038027dc0>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038026560>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_sitebuiltins.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/_sitebuiltins.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/_sitebuiltins.cpython-310.pyc'
import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038027640>
Processing user site-packages
Adding directory: '/home/hinsen/.local/lib/python3.10/site-packages'
Processing .pth file: '/home/hinsen/.local/lib/python3.10/site-packages/distutils-precedence.pth'
# /home/hinsen/.local/lib/python3.10/site-packages/_distutils_hack/__pycache__/__init__.cpython-310.pyc matches /home/hinsen/.local/lib/python3.10/site-packages/_distutils_hack/__init__.py
# code object from '/home/hinsen/.local/lib/python3.10/site-packages/_distutils_hack/__pycache__/__init__.cpython-310.pyc'
import '_distutils_hack' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd03805f580>
Processing global site-packages
Adding directory: '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site-packages'
Processing .pth file: '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site-packages/distutils-precedence.pth'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site-packages/__pycache__/sitecustomize.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site-packages/sitecustomize.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/site-packages/__pycache__/sitecustomize.cpython-310.pyc'
Adding directory: '/home/hinsen/.guix-profile/lib/python3.10/site-packages'
Processing .pth file: '/home/hinsen/.guix-profile/lib/python3.10/site-packages/distutils-precedence.pth'
import 'sitecustomize' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd03805ff10>
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd038025f30>
Python 3.10.7 (main, Jan  1 1970, 00:00:01) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
# extension module 'readline' loaded from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/lib-dynload/readline.cpython-310-x86_64-linux-gnu.so'
# extension module 'readline' executed from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/lib-dynload/readline.cpython-310-x86_64-linux-gnu.so'
import 'readline' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7fd03805ff40>
import 'atexit' # <class '_frozen_importlib.BuiltinImporter'>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/rlcompleter.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/rlcompleter.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/rlcompleter.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/inspect.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/inspect.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/inspect.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/ast.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/ast.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/ast.cpython-310.pyc'
import '_ast' # <class '_frozen_importlib.BuiltinImporter'>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/contextlib.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/contextlib.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/contextlib.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/collections/__pycache__/__init__.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/collections/__init__.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/collections/__pycache__/__init__.cpython-310.pyc'
import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/keyword.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/keyword.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/keyword.cpython-310.pyc'
import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e215a0>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/operator.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/operator.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/operator.cpython-310.pyc'
import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e21660>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/reprlib.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/reprlib.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/reprlib.cpython-310.pyc'
import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e21750>
import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0380f3190>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/functools.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/functools.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/functools.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/types.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/types.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/types.cpython-310.pyc'
import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e23760>
import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e21ff0>
import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0380f1f30>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/enum.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/enum.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/enum.cpython-310.pyc'
import 'enum' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0380f26e0>
import 'ast' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0380a9e40>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/dis.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/dis.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/dis.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/opcode.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/opcode.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/opcode.cpython-310.pyc'
# extension module '_opcode' loaded from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/lib-dynload/_opcode.cpython-310-x86_64-linux-gnu.so'
# extension module '_opcode' executed from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/lib-dynload/_opcode.cpython-310-x86_64-linux-gnu.so'
import '_opcode' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7fd037e7e110>
import 'opcode' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7dea0>
import 'dis' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd0380aa500>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/collections/__pycache__/abc.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/collections/abc.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/collections/__pycache__/abc.cpython-310.pyc'
import 'collections.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7f070>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/importlib/__pycache__/__init__.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/importlib/__init__.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/importlib/__pycache__/__init__.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/warnings.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/warnings.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/warnings.cpython-310.pyc'
import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7ec80>
import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7eef0>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/importlib/__pycache__/machinery.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/importlib/machinery.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/importlib/__pycache__/machinery.cpython-310.pyc'
import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7e7d0>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/linecache.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/linecache.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/linecache.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/tokenize.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/tokenize.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/tokenize.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/re.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/re.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/re.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/sre_compile.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/sre_compile.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/sre_compile.cpython-310.pyc'
import '_sre' # <class '_frozen_importlib.BuiltinImporter'>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/sre_parse.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/sre_parse.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/sre_parse.cpython-310.pyc'
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/sre_constants.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/sre_constants.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/sre_constants.cpython-310.pyc'
import 'sre_constants' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037ec9120>
import 'sre_parse' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037ec8910>
import 'sre_compile' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7ffa0>
import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/copyreg.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/copyreg.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/copyreg.cpython-310.pyc'
import 'copyreg' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037ecac20>
import 're' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7f760>
# /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/token.cpython-310.pyc matches /tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/token.py
# code object from '/tmp/b/gnu/store/ic20ki96kgzbcrjnaksc11ljhi65fd1d-python-3.10.7R/lib/python3.10/__pycache__/token.cpython-310.pyc'
import 'token' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037ecab60>
import 'tokenize' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7e200>
import 'linecache' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd037e7e470>
import 'inspect' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd03805f280>
import 'rlcompleter' # <_frozen_importlib_external.SourceFileLoader object at 0x7fd03805f910>
>>> 
# clear builtins._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.__interactivehook__
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup[2] removing sys
# cleanup[2] removing builtins
# cleanup[2] removing _frozen_importlib
# cleanup[2] removing _imp
# cleanup[2] removing _thread
# cleanup[2] removing _warnings
# cleanup[2] removing _weakref
# cleanup[2] removing _io
# cleanup[2] removing marshal
# cleanup[2] removing posix
# cleanup[2] removing _frozen_importlib_external
# cleanup[2] removing time
# cleanup[2] removing zipimport
# destroy zipimport
# cleanup[2] removing _codecs
# cleanup[2] removing codecs
# cleanup[2] removing encodings.aliases
# cleanup[2] removing encodings
# destroy encodings
# cleanup[2] removing encodings.utf_8
# cleanup[2] removing _signal
# cleanup[2] removing _abc
# cleanup[2] removing abc
# cleanup[2] removing io
# cleanup[2] removing __main__
# cleanup[2] removing _stat
# cleanup[2] removing stat
# cleanup[2] removing _collections_abc
# cleanup[2] removing genericpath
# cleanup[2] removing posixpath
# cleanup[2] removing os.path
# cleanup[2] removing os
# cleanup[2] removing _sitebuiltins
# cleanup[2] removing _distutils_hack
# destroy _distutils_hack
# cleanup[2] removing sitecustomize
# destroy sitecustomize
# cleanup[2] removing site
# destroy site
# cleanup[2] removing readline
# cleanup[2] removing atexit
# cleanup[2] removing _ast
# destroy _ast
# cleanup[2] removing itertools
# cleanup[2] removing keyword
# destroy keyword
# cleanup[2] removing _operator
# cleanup[2] removing operator
# destroy operator
# cleanup[2] removing reprlib
# destroy reprlib
# cleanup[2] removing _collections
# cleanup[2] removing collections
# cleanup[2] removing types
# cleanup[2] removing _functools
# cleanup[2] removing functools
# cleanup[2] removing contextlib
# destroy contextlib
# cleanup[2] removing enum
# cleanup[2] removing ast
# cleanup[2] removing _opcode
# cleanup[2] removing opcode
# destroy opcode
# cleanup[2] removing dis
# cleanup[2] removing collections.abc
# cleanup[2] removing importlib._bootstrap
# cleanup[2] removing importlib._bootstrap_external
# cleanup[2] removing warnings
# cleanup[2] removing importlib
# cleanup[2] removing importlib.machinery
# cleanup[2] removing _sre
# cleanup[2] removing sre_constants
# destroy sre_constants
# cleanup[2] removing sre_parse
# cleanup[2] removing sre_compile
# cleanup[2] removing _locale
# cleanup[2] removing copyreg
# cleanup[2] removing re
# cleanup[2] removing token
# cleanup[2] removing tokenize
# cleanup[2] removing linecache
# cleanup[2] removing inspect
# cleanup[2] removing rlcompleter
# destroy rlcompleter
# destroy _signal
# destroy _sitebuiltins
# destroy atexit
# destroy inspect
# destroy __main__
# destroy ast
# destroy dis
# destroy importlib
# destroy linecache
# destroy token
# destroy types
# destroy io
# destroy _opcode
# destroy warnings
# destroy importlib.machinery
# destroy tokenize
# destroy collections
# destroy itertools
# destroy re
# destroy enum
# destroy sre_compile
# destroy functools
# destroy copyreg
# destroy sre_parse
# destroy _sre
# destroy _locale
# cleanup[3] wiping importlib._bootstrap_external
# cleanup[3] wiping importlib._bootstrap
# cleanup[3] wiping collections.abc
# cleanup[3] wiping _functools
# cleanup[3] wiping _collections
# cleanup[3] wiping _operator
# cleanup[3] wiping readline
# cleanup[3] wiping os
# destroy posixpath
# cleanup[3] wiping genericpath
# cleanup[3] wiping _collections_abc
# cleanup[3] wiping stat
# cleanup[3] wiping _stat
# destroy _stat
# cleanup[3] wiping abc
# cleanup[3] wiping _abc
# cleanup[3] wiping encodings.utf_8
# cleanup[3] wiping encodings.aliases
# cleanup[3] wiping codecs
# cleanup[3] wiping _codecs
# cleanup[3] wiping time
# cleanup[3] wiping _frozen_importlib_external
# cleanup[3] wiping posix
# cleanup[3] wiping marshal
# cleanup[3] wiping _io
# cleanup[3] wiping _weakref
# cleanup[3] wiping _warnings
# cleanup[3] wiping _thread
# cleanup[3] wiping _imp
# cleanup[3] wiping _frozen_importlib
# cleanup[3] wiping sys
# cleanup[3] wiping builtins
# destroy readline
# destroy posix
# destroy _frozen_importlib_external
# destroy _imp
# destroy io
# destroy marshal
# destroy time
# destroy _warnings
# destroy os
# destroy stat
# destroy genericpath
# destroy _frozen_importlib
# destroy codecs
# destroy encodings.aliases
# destroy encodings.utf_8
# destroy _codecs
# destroy abc
# destroy _abc
# destroy _collections_abc
# destroy sys
# destroy _weakref
# destroy _collections
# destroy collections.abc
# destroy builtins
# destroy _functools
# destroy _operator
# destroy _thread
# clear sys.audit hooks

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#73304: Python in relocatable guix pack leads to wrong sys.path
  2024-10-06  8:29       ` Konrad Hinsen
@ 2024-10-14 11:11         ` Ludovic Courtès
  0 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2024-10-14 11:11 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: Rutherther, 73304, Josselin Poiret, Maxim Cournoyer

Hello,

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Konrad Hinsen <konrad.hinsen@fastmail.net> writes:
>
>> I have changed my mind. In the sys.path outputs shown, there are no
>> paths from add-on packages. It's just the Python standard library.
>> Maybe our sitecustomize.py is not run at all, but if it is, it didn't do
>> anything to sys.path. There must be a bug somewhere else.
>
> Our sitecustomize.py is indeed not run at all, so this definitely is a
> different problem.
>
> Evidence: Run Rutherther's example, adding the -v option.  The long
> output is attached, both for "./profile/bin/python3 -v" and "$(realpath
> ./profile/bin/python3) -v". Search for "site-packages" to find the
> interesting parts. If you don't use realpath, large parts of the
> initialization are not done.
>
> There are lots of ../../ in the path shown in these log files. If Python
> resolves them lexically, as the normpath function does, that would
> probably explain most of these issues.

Ouch.  Any idea where to look for solutions here?

Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-14 11:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-16 19:23 bug#73304: Python in relocatable guix pack leads to wrong sys.path Rutherther via Bug reports for GNU Guix
2024-09-16 19:28 ` Rutherther via Bug reports for GNU Guix
2024-09-30 21:08 ` Ludovic Courtès
2024-10-01 19:39   ` Rutherther via Bug reports for GNU Guix
2024-10-02  6:20   ` Konrad Hinsen
2024-10-02 11:59     ` Konrad Hinsen
2024-10-06  8:29       ` Konrad Hinsen
2024-10-14 11:11         ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.