Closed the-JACK-pot closed 6 months ago
Looks like you're using multiprocessing
and therefore subprocess
:
File "/Users/jack/Documents/workshop/KivyBuilds/kivy-ios/grooveid-ios/YourApp/main.py", line 50, in <module>
File "/Users/jack/Library/Developer/CoreSimulator/Devices/99A60CC7-AFB9-457C-A0E2-BB253DD5790A/data/Containers/Bundle/Application/B7A39577-838D-4A52-8C3B-F6B545B497D9/grooveid.app/lib/python311.zip/multiprocessing/pool.py", line 28, in <module>
File "/Users/jack/Library/Developer/CoreSimulator/Devices/99A60CC7-AFB9-457C-A0E2-BB253DD5790A/data/Containers/Bundle/Application/B7A39577-838D-4A52-8C3B-F6B545B497D9/grooveid.app/lib/python311.zip/multiprocessing/util.py", line 17, in <module>
ImportError: cannot import name '_args_from_interpreter_flags' from 'subprocess' (unknown location)
Both are not available (due to iOS limitations): https://github.com/kivy/kivy-ios/blob/master/FAQ.md#why-does-the-python-multiprocesssubprocess-module-not-work
Feel free to reach out to our support channels if you need some help to migrate your code to a supported pattern.
đź‘‹ We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. For troubleshooting advice and other frequently asked questions, consult the latest Kivy for iOS FAQ. Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Describe the bug In Xcode, after clicking the 'build' button, the simulator opens up successfully and a 'Build Successful' message appears. After the app is installed and opened in the simulator, it crashes after a second or two, and produces the Logs shown below.
To Reproduce I created my Xcode project and python venv within the
kivy-ios
, which I downloaded and installed from GitHub directly. I'm using python 3.11.6 because my Xcode project always seems to end up with 3.11.6 regardless of if the venv was in version 3.12 . I built the necessary recipes (apart fromcymunk
,zbarlight
, and 2 others since I file within kivy-ios had a comment which mentioned them not working, which they didn't so I left them) and then built the project. It built perfectly fine, but always produces this. I should mention that the LibraryFoundation
says it's installed in the system, since it's mentioned a lot in the Logs.Expected behavior For Python, and therefore the app itself, to not crash when opening it on the iPhone Simulator.
Logs
Screenshots (Didn't think this was needed since it's just writing within the Logs part of Xcode, but I'm more than happy to share screenshots if it's of any help)
Additional context I checked and can't seem to find a
subprocess.py
orsubprocess
folder in any relating folders that the App uses. I ran into this error a while back, which I tried to fix by finding thesubprocess.py
file and pasting it into the folder. The error was removed briefly but returned not long after, once I fixed a few other problems.Any Help is massively appreciated, thanks!