kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
776 stars 240 forks source link

`ImportError` subprocess #730

Closed Neizvestnyj closed 2 years ago

Neizvestnyj commented 2 years ago
from kivy.app import App
from kivy.uix.button import Button
from subprocess import Popen, PIPE, STDOUT, TimeoutExpired

class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()
toolchain build python3 kivy openssl
single mode, not docked
Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file)
Got fallback dlopen error on Foundation: dlopen(/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file)
 Traceback (most recent call last):
   File "/Users/neizvestnyj/PycharmProjects/<APP>/ios/test/test-ios/YourApp/main.py", line 5, in <module>
 ImportError: cannot import name 'Popen' from 'subprocess' (unknown location)**
misl6 commented 2 years ago

Hi @Neizvestnyj !

Did you seen: https://github.com/kivy/kivy-ios#why-does-the-python-multiprocesssubprocess-module-not-work ?

Neizvestnyj commented 2 years ago

Hi @Neizvestnyj !

Did you seen: https://github.com/kivy/kivy-ios#why-does-the-python-multiprocesssubprocess-module-not-work ?

I use subprocess to execute command in command line. On Python IDE for ios its work. What should I use instead of subprocess Popen, communicate, run? Any examples?

misl6 commented 2 years ago

Hi @Neizvestnyj ! Did you seen: https://github.com/kivy/kivy-ios#why-does-the-python-multiprocesssubprocess-module-not-work ?

I use subprocess to execute command in command line. On Python IDE for ios its work. What should I use instead of subprocess Popen, communicate, run? Any examples?

It highly depends on what are you trying to achieve.

I'm closing the issue as a support one, but feel free to ping me on Discord 😄

github-actions[bot] commented 2 years ago

👋 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.

If you're having trouble installing or using kivy-ios, maybe you could be interested to installation and requirements.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.