Skip to content

Commands fail after installing and launching xonsh #1001

@indexthm

Description

@indexthm

xonsh is a Python-powered shell. I installed it via pip in a-Shell on iPad, and it installs and starts successfully. However, once inside xonsh, running any command such as ls immediately fails.
The error I get is:

Fatal Python error: PyMutex_Unlock: unlocking mutex that is not locked
Python runtime state: initialized
Traceback (most recent call last):
  File "/var/mobile/Containers/Data/Application/249E10F6-268D-440D-8856-1F4A2796B5AB/Library/lib/python3.13/site-packages/xonsh/procs/specs.py", line 292, in no_pg_xonsh_preexec_fn
    os.setpgrp()
    ^^^^^^^^^^
AttributeError: module 'os' has no attribute 'setpgrp'. Did you mean: 'getpgrp'?

It looks like os.setpgrp() is unavailable in a-Shell’s Python environment on iPadOS. Is this a fundamental platform limitation, or could a compatibility fix be possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions