Repository navigation
readPIDFromPeer: Unexpected short read from PID socket. #120
Description
After update to version 1.0.0, Nyarch Asssitant crashes a few seconds after opening due to a fatal error produced when installing the python build dependencies of the app.
This is the system I use attached as hyfetch picture:
Output generated when trying to execute the app from terminal:
`
andres@fraxinus:~/Downloads$ flatpak run moe.nyarchlinux.assistant
(process:2): Gtk-WARNING **: 17:04:36.001: Locale not supported by C library.
Using the fallback 'C' locale.
ae
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support more multi-planar formats with DRM modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support YUV colorspace with DRM format modifiers
Collecting kokoro-onnx
Using cached kokoro_onnx-0.4.9-py3-none-any.whl.metadata (3.7 kB)
Collecting soundfile
Using cached soundfile-0.13.1-py2.py3-none-manylinux_2_28_x86_64.whl.metadata (16 kB)
Collecting espeakng-loader
Using cached espeakng_loader-0.2.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.3 kB)
Collecting misaki
Using cached misaki-0.7.4-py3-none-any.whl.metadata (4.9 kB)
Collecting fugashi
Using cached fugashi-1.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (7.3 kB)
Collecting jaconv
Using cached jaconv-0.4.1-py3-none-any.whl.metadata (8.0 kB)
Collecting mojimoji
Using cached mojimoji-0.0.13.tar.gz (5.0 kB)
Installing build dependencies: started
Exception in thread Thread-11 (get_models):
Traceback (most recent call last):
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 409, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: 'None'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/usr/lib/python3.13/threading.py", line 994, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/nyarchassistant/nyarchassistant/handlers/llm/openai_handler.py", line 53, in get_models
raise e
File "/app/share/nyarchassistant/nyarchassistant/handlers/llm/openai_handler.py", line 42, in get_models
client = openai.Client(api_key=api, base_url=self.get_setting("endpoint"))
File "/app/lib/python3.13/site-packages/openai/_client.py", line 166, in init
super().init(
~~~~~~~~~~~~~~~~^
version=version,
^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
_strict_response_validation=_strict_response_validation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/openai/_base_client.py", line 854, in init
super().init(
~~~~~~~~~~~~~~~~^
version=version,
^^^^^^^^^^^^^^^^
...<6 lines>...
_strict_response_validation=_strict_response_validation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/openai/_base_client.py", line 383, in init
self._base_url = self._enforce_trailing_slash(URL(base_url))
~~~^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urls.py", line 117, in init
self._uri_reference = urlparse(url, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 321, in urlparse
parsed_port: int | None = normalize_port(port, scheme)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 411, in normalize_port
raise InvalidURL(f"Invalid port: {port!r}")
httpx.InvalidURL: Invalid port: 'None'
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
flatpak-spawn: Invalid byte sequence in conversion input
Try "flatpak-spawn --help" for more information.
** (nyarchassistant:2): ERROR **: 17:04:41.183: readPIDFromPeer: Unexpected short read from PID socket. (This usually means the auxiliary process crashed immediately. Investigate that instead!)
andres@fraxinus:~/Downloads$ ERROR: Pipe to stdout was broken
Exception ignored on flushing sys.stdout:
BrokenPipeError: [Errno 32] Broken pipe
`
Activity
FrancescoCaracciolo commentedon Jan 17, 2026
Try removing pip path
~/.var/app/moe.nyarchlinux.assistant/config/pip
It looks like the issue is not mojimoji though.
Andresito-oficial commentedon Jan 17, 2026
andres@fraxinus:
$ rm -rf .var/app/moe.nyarchlinux.assistant/config/pip/$ flatpak run moe.nyarchlinux.assistantandres@fraxinus:
(process:2): Gtk-WARNING **: 20:04:01.636: Locale not supported by C library.
Using the fallback 'C' locale.
ae
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support more multi-planar formats with DRM modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support YUV colorspace with DRM format modifiers
Collecting pip-install-test
Downloading pip_install_test-0.5-py3-none-any.whl.metadata (979 bytes)
Downloading pip_install_test-0.5-py3-none-any.whl (1.7 kB)
Installing collected packages: pip-install-test
Successfully installed pip-install-test-0.5
pip-install-test installed
Exception in thread Thread-10 (get_models):
Traceback (most recent call last):
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 409, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: 'None'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/usr/lib/python3.13/threading.py", line 994, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/nyarchassistant/nyarchassistant/handlers/llm/openai_handler.py", line 53, in get_models
raise e
File "/app/share/nyarchassistant/nyarchassistant/handlers/llm/openai_handler.py", line 42, in get_models
client = openai.Client(api_key=api, base_url=self.get_setting("endpoint"))
File "/app/lib/python3.13/site-packages/openai/_client.py", line 166, in init
super().init(
~~~~~~~~~~~~~~~~^
version=version,
^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
_strict_response_validation=_strict_response_validation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/openai/_base_client.py", line 854, in init
super().init(
~~~~~~~~~~~~~~~~^
version=version,
^^^^^^^^^^^^^^^^
...<6 lines>...
_strict_response_validation=_strict_response_validation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/openai/_base_client.py", line 383, in init
self._base_url = self._enforce_trailing_slash(URL(base_url))
~~~^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urls.py", line 117, in init
self._uri_reference = urlparse(url, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 321, in urlparse
parsed_port: int | None = normalize_port(port, scheme)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 411, in normalize_port
raise InvalidURL(f"Invalid port: {port!r}")
httpx.InvalidURL: Invalid port: 'None'
Collecting kokoro-onnx
Using cached kokoro_onnx-0.4.9-py3-none-any.whl.metadata (3.7 kB)
Collecting soundfile
Using cached soundfile-0.13.1-py2.py3-none-manylinux_2_28_x86_64.whl.metadata (16 kB)
Collecting espeakng-loader
Using cached espeakng_loader-0.2.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.3 kB)
Collecting misaki
Using cached misaki-0.7.4-py3-none-any.whl.metadata (4.9 kB)
Collecting fugashi
Using cached fugashi-1.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (7.3 kB)
Collecting jaconv
Using cached jaconv-0.4.1-py3-none-any.whl.metadata (8.0 kB)
Collecting mojimoji
Using cached mojimoji-0.0.13.tar.gz (5.0 kB)
Installing build dependencies: started
flatpak-spawn: Invalid byte sequence in conversion input
Try "flatpak-spawn --help" for more information.
** (nyarchassistant:2): ERROR **: 20:04:08.833: readPIDFromPeer: Unexpected short read from PID socket. (This usually means the auxiliary process crashed immediately. Investigate that instead!)
andres@fraxinus:~$ ERROR: Pipe to stdout was broken
Exception ignored on flushing sys.stdout:
BrokenPipeError: [Errno 32] Broken pipe
this happens when removing the pip path
FrancescoCaracciolo commentedon Jan 17, 2026
Hm you have kokoro as TTS, I guess it's better if you delete the whole settings entirely. I will check issues with kokoro for 1.2.1
Delete ~/.var/app/moe.nyarchlinux.assistant
Andresito-oficial commentedon Jan 17, 2026
andres@fraxinus:
$ rm -rf .var/app/moe.nyarchlinux.assistant/$ flatpak run moe.nyarchlinux.assistantandres@fraxinus:
(process:2): Gtk-WARNING **: 20:11:37.606: Locale not supported by C library.
Using the fallback 'C' locale.
Downloading pip...
Failed to create '/home/andres/tmp/.wget-hsts_lck_1000' (2)
Failed to read HSTS data
Failed to create '/home/andres/tmp/.wget-hpkp_lck_1000' (2)
Failed to read HPKP data
Failed to create '/home/andres/tmp/.wget-hsts_lck_1000' (2)
Failed to read HSTS data
Failed to create '/home/andres/tmp/.wget-hpkp_lck_1000' (2)
Failed to read HPKP data
[0] Downloading 'https://nyarchlinux.moe/acchan.png' ...
Saving '/home/andres/.var/app/moe.nyarchlinux.assistant/config/profiles/arch-chan.png'
HTTP response 200 [https://nyarchlinux.moe/acchan.png]
Failed to create '/home/andres/tmp/.wget-hsts_lck_1000' (2)
Failed to write HSTS file '/home/andres/.var/app/moe.nyarchlinux.assistant/data/wget/.wget-hsts'
cp: cannot stat '/home/andres/.var/app/moe.nyarchlinux.assistant/config/avatars/live2d/models': No such file or directory
Command '['cp', '-rf', '/home/andres/.var/app/moe.nyarchlinux.assistant/config/avatars/live2d/models', '/home/andres/.var/app/moe.nyarchlinux.assistant/config/avatars/live2d/web/']' returned non-zero exit status 1.
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support more multi-planar formats with DRM modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support YUV colorspace with DRM format modifiers
Endpoint does not support speakers
Exception in thread Thread-20 (get_models):
Traceback (most recent call last):
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 409, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: 'None'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/usr/lib/python3.13/threading.py", line 994, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/nyarchassistant/nyarchassistant/handlers/llm/openai_handler.py", line 53, in get_models
raise e
File "/app/share/nyarchassistant/nyarchassistant/handlers/llm/openai_handler.py", line 42, in get_models
client = openai.Client(api_key=api, base_url=self.get_setting("endpoint"))
File "/app/lib/python3.13/site-packages/openai/_client.py", line 166, in init
super().init(
~~~~~~~~~~~~~~~~^
version=version,
^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
_strict_response_validation=_strict_response_validation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/openai/_base_client.py", line 854, in init
super().init(
~~~~~~~~~~~~~~~~^
version=version,
^^^^^^^^^^^^^^^^
...<6 lines>...
_strict_response_validation=_strict_response_validation,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/openai/_base_client.py", line 383, in init
self._base_url = self._enforce_trailing_slash(URL(base_url))
~~~^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urls.py", line 117, in init
self._uri_reference = urlparse(url, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 321, in urlparse
parsed_port: int | None = normalize_port(port, scheme)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/httpx/_urlparse.py", line 411, in normalize_port
raise InvalidURL(f"Invalid port: {port!r}")
httpx.InvalidURL: Invalid port: 'None'
(nyarchassistant:2): Adwaita-WARNING **: 20:11:41.764: Given child of type 'AdwPreferencesGroup' not found in AdwViewStack
model.safetensors: 0%| | 0.00/30.2M [00:00<?, ?B/s] WARNING: The scripts pip, pip3 and pip3.13 are installed in '/var/data/python/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Collecting pip-install-test
Downloading pip_install_test-0.5-py3-none-any.whl.metadata (979 bytes)
Downloading pip_install_test-0.5-py3-none-any.whl (1.7 kB)
Installing collected packages: pip-install-test
Successfully installed pip-install-test-0.5
pip-install-test installed
flatpak-spawn: Invalid byte sequence in conversion input
Try "flatpak-spawn --help" for more information.
** (nyarchassistant:2): ERROR **: 20:11:44.387: readPIDFromPeer: Unexpected short read from PID socket. (This usually means the auxiliary process crashed immediately. Investigate that instead!)
andres@fraxinus:~$
i've deleted the whole settings folder and the problem persists
FrancescoCaracciolo commentedon Jan 17, 2026
Do previous versions work?
Andresito-oficial commentedon Jan 18, 2026
yep, not optimally but they work
on the previous versions the app only worked when launched from terminal
FrancescoCaracciolo commentedon Jan 18, 2026
The relevant part of the error is
Looking online looks like the reason is more flatpak rather than the application itself.
Maybe the application now does some flatpak-spawn that your particular environment does not like or has some other problematic subprocess.
Do you know if 1.1.0 works correctly?
andrew-hacker06 commentedon Jan 18, 2026
version 1.1.0 was the first one that didn't started up at all
FrancescoCaracciolo commentedon Jan 18, 2026
1.0.1 works?
andrew-hacker06 commentedon Jan 18, 2026
yeah, it works
[-]Mojimoji dependency breaks the whole app's pipeline[/-][+]readPIDFromPeer: Unexpected short read from PID socket.[/+]FrancescoCaracciolo commentedon Jan 18, 2026
I will try to figure out the issue