Comments (4)
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.
@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.
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.
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)
- Working w/ git-crypt protected repositories HOT 2
- Self-compiled FFMPEG binary or updated bundled default native binary?? HOT 5
- Please make ~ point to the same place as cd HOT 1
- Cannot install ssh-copy-id HOT 2
- Adding PyArrow
- Request: which HOT 3
- Compiling WebAssembly Build HOT 2
- Flex and Bison HOT 4
- Cannot find 'webAssemblyCommandOrder' in scope HOT 1
- pbpaste in shell script HOT 1
- Displaying inline images HOT 1
- Error with submodule init: Fetched in submodule path 'cpython/packages/rasterio', but it did not contain fff416c6945b222f265fa268c4d56de34c8091dd. HOT 2
- iPad Air 5th Generation shows no special keyboard HOT 1
- wasm Error : JavaScript execution returned a result of an unsupported type HOT 4
- Add pyppeteer support
- Tmux or screen
- Bundle terminal fonts with a-shell itself? HOT 1
- Strings command HOT 4
- GPG HOT 6
- Set `XDG_STATE_HOME` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from a-shell.