Closed kkebo closed 5 years ago
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.
It seems to be fixed now. I'll close this issue, but feel free to reopen if you are going to do something.
@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.
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).
5 has been fixed, but instead, another problem has come with the build 36. It didn't occur on the previous build 34.
Environment:
Log:
It seems that there is a difference between the target directory of the symbolic links in
$HOME/Library/lib/python3.7/multiprocessing
and the target directory of the symbolic links in$HOME/Library/lib/python3.7
. I think that is the cause.