emerge hangs with python 3.14

Adam Carter <[email protected]> Sat, 2 May 2026 12:28:11 +1000
Newsgroups gmane.linux.gentoo.user
Message-ID <CAC=wYCG5RSwPBw1Mb9L34qornwnhe+Tr7u2EsG6vfJd56LgfOw@mail.gmail.com>
I'm finding that emerge successfully installs the first package but then
hangs instead of proceeding.

How do I troubleshoot this?

Here's an example of the output when i ctrl-c in this situation;
>> Original instance of package unmerged safely.
>>> dev-libs/libgpg-error-1.60 merged.
>>> Regenerating /etc/ld.so.cache...
^C

Exiting on signal 2
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib/portage/python3.14/socks5-server.py", line 226, in
run_socks5_server
    await asyncio.get_running_loop().create_future()
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/portage/python3.14/socks5-server.py", line 226, in
run_socks5_server
    await asyncio.get_running_loop().create_future()
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/portage/python3.14/socks5-server.py", line 238, in <module>
    asyncio.run(run_socks5_server(sys.argv[1]))
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/runners.py", line 204, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/runners.py", line 127, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/base_events.py", line 719, in
run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/usr/lib/portage/python3.14/socks5-server.py", line 230, in
run_socks5_server
    os.unlink(socket_path)
    ~~~~~~~~~^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'/var/tmp/portage/.portage.2426.net.sock'
  File "/usr/lib/portage/python3.14/socks5-server.py", line 238, in <module>
    asyncio.run(run_socks5_server(sys.argv[1]))
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/runners.py", line 204, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/runners.py", line 127, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/base_events.py", line 719, in
run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/usr/lib/portage/python3.14/socks5-server.py", line 230, in
run_socks5_server
    os.unlink(socket_path)
    ~~~~~~~~~^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'/var/tmp/portage/.portage.8929.net.sock'

>>> Completed (1 of 9) dev-libs/libgpg-error-1.60::gentoo
zen /home/adam #