Skip to content

readPIDFromPeer: Unexpected short read from PID socket. #120

@Andresito-oficial

Description

@Andresito-oficial

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:

Image

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

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions