Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956004 - dev-python/installer-0.7.0 - OSError: AF_UNIX path too long
Summary: dev-python/installer-0.7.0 - OSError: AF_UNIX path too long
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-15 15:57 UTC by Martin Mokrejš
Modified: 2025-05-15 23:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.txt,16.36 KB, text/plain)
2025-05-15 15:58 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2025-05-15 15:57:46 UTC
>>> Emerging (1 of 1) dev-python/installer-0.7.0::gentoo
 * installer-0.7.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                                [ ok ]
 * installer-0.7.0-py3-none-any.whl.zip BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking installer-0.7.0.tar.gz to /auto/vestec1-elixir/projects/biocev/gentoo/var/tmp/portage/dev-python/installer-0.7.0/work
>>> Unpacking installer-0.7.0-py3-none-any.whl.zip to /auto/vestec1-elixir/projects/biocev/gentoo/var/tmp/portage/dev-python/installer-0.7.0/work
>>> Source unpacked in /auto/vestec1-elixir/projects/biocev/gentoo/var/tmp/portage/dev-python/installer-0.7.0/work
>>> Preparing source in /auto/vestec1-elixir/projects/biocev/gentoo/var/tmp/portage/dev-python/installer-0.7.0/work/installer-0.7.0 ...
>>> Source prepared.
>>> Configuring source in /auto/vestec1-elixir/projects/biocev/gentoo/var/tmp/portage/dev-python/installer-0.7.0/work/installer-0.7.0 ...
>>> Source configured.
>>> Compiling source in /auto/vestec1-elixir/projects/biocev/gentoo/var/tmp/portage/dev-python/installer-0.7.0/work/installer-0.7.0 ...
 * python3_11: running distutils-r1_run_phase python_compile
 * python3_12: running distutils-r1_run_phase python_compile
 * python3_13: running distutils-r1_run_phase python_compile
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-python/installer-0.7.0

>>> Install dev-python/installer-0.7.0 into /auto/vestec1-elixir/projects/biocev/gentoo/var/tmp/portage/dev-python/installer-0.7.0/image
 * python3_11: running distutils-r1_run_phase python_install
 * Optimize Python modules for 
 * Optimize Python modules for 
 * python3_12: running distutils-r1_run_phase python_install
 * Optimize Python modules for 
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/compileall.py", line 468, in <module>
    exit_status = int(not main())
                          ^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/compileall.py", line 445, in main
    if not compile_dir(dest, maxlevels, args.ddir,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/compileall.py", line 109, in compile_dir
    results = executor.map(partial(compile_file,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/concurrent/futures/process.py", line 859, in map
    results = super().map(partial(_process_chunk, fn),
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/concurrent/futures/_base.py", line 608, in map
    fs = [self.submit(fn, *args) for args in zip(*iterables)]
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/concurrent/futures/process.py", line 830, in submit
    self._adjust_process_count()
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/concurrent/futures/process.py", line 789, in _adjust_process_count
    self._spawn_process()
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/concurrent/futures/process.py", line 807, in _spawn_process
    p.start()
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
                  ^^^^^^^^^^^^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/multiprocessing/context.py", line 301, in _Popen
    return Popen(process_obj)
           ^^^^^^^^^^^^^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/multiprocessing/popen_forkserver.py", line 35, in __init__
    super().__init__(process_obj)
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/multiprocessing/popen_forkserver.py", line 51, in _launch
    self.sentinel, w = forkserver.connect_to_new_process(self._fds)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/multiprocessing/forkserver.py", line 84, in connect_to_new_process
    self.ensure_running()
  File "/auto/vestec1-elixir/projects/biocev/gentoo/usr/lib/python3.12/multiprocessing/forkserver.py", line 138, in ensure_running
    listener.bind(address)
OSError: AF_UNIX path too long
 * Optimize Python modules for
Comment 1 Martin Mokrejš 2025-05-15 15:58:18 UTC
Created attachment 928898 [details]
build.log

Full build log grabbed from terminal.
Comment 2 Mike Gilbert gentoo-dev 2025-05-15 19:07:19 UTC
I think you will need to set PORTAGE_TMPDIR to a shorter path.
Comment 3 Martin Mokrejš 2025-05-15 21:46:21 UTC
(In reply to Mike Gilbert from comment #2)
> I think you will need to set PORTAGE_TMPDIR to a shorter path.

Weird that it does not happen for otehr packages AFAICT. But yes, changing PORTAGE_TMPDIR has helped to get around. Thank you.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-15 23:24:18 UTC
It's kind of strange that happens during python_optimize. This looks like the same problem as bug 941956, actually (forkserver defect).