Coder Social home page Coder Social logo

Comments (4)

holzschu avatar holzschu commented on May 29, 2024 1

Yes, I have removed the multiprocessing module (because it basically cannot work on iOS) but I forgot to remove it in existing installations.

Temporary solution: rm $HOME/Library/lib/python3.7/multiprocessing (so python will stop trying to import multiprocessing, and fall back to single processing methods).

Long term solution: I am going to add this line in the startup process to make it permanent. I was planning to, and I forgot to do it.

from a-shell.

pkjmesra avatar pkjmesra commented on May 29, 2024 1

@holzschu - On the latest a-shell version 4.0 on iOS 16.5.1 /iPad Mini(6th generation), I still see this:

$ python -c 'import multiprocessing; multiprocessing.Manager().dict();'
Fatal Python error: pyinit_core_reconfigure: failed to read thread state
Python runtime state: initialized
Thread 0x000000016b6df000 (most recent call first):
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/spawn.py", line 181 in get_preparation_data
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 42 in _launch
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/popen_fork.py", line 19 in __init__
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32 in __init__
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/context.py", line 288 in _Popen
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/process.py", line 121 in start
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/managers.py", line 563 in start
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/context.py", line 57 in Manager
  File "<string>", line 1 in <module>
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/containers/Bundle/Application/407CC1AD-C3D7-4ADA-8576-280A15FF5585/a-Shell.app/Library/lib/python3.11/multiprocessing/con
text.py", line 57, in Manager
segmentation fault
segmentation fault

Any ideas or suggestions? I can’t remove the multiprocessing directory as the shell doesn’t seem to have delete access.

from a-shell.

kkebo avatar kkebo commented on May 29, 2024

It seems to be fixed now. I'll close this issue, but feel free to reopen if you are going to do something.

from a-shell.

holzschu avatar holzschu commented on May 29, 2024

The bottom line remains the same: the multiprocessing module cannot work with a-Shell. So the best course of action is to not use it, even if it is included (it's part of the mandatory installation).

from a-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.