-
Notifications
You must be signed in to change notification settings - Fork 252
Description
I have an app I'm trying to make. I've successfully created an Xcode project from my Kivy project, but when it launches on a simulator device, it immediately crashes with the error:
module 'subprocess' has no attribute 'popen'
Thing is, my Kivy project doesn't use subprocess (as far as I know. I worry one of my modules might be using it). I won't upload my entire code as it's long and messy, but all the imports look like this:
import kivy
from kivy.uix.image import Image
from kivy.loader import Loader
from kivy.properties import ObjectProperty
from kivy.lang import Builder
from kivymd.app import MDApp
from kivymd.uix.menu import MDDropdownMenu
from kivy.clock import mainthread, Clock
from kivy.utils import platform
from kivy.core.window import Window
from kivy.config import Config
from kivy.uix.screenmanager import ScreenManager, Screen, SlideTransition
from kivy.storage.jsonstore import JsonStore
from kivy.uix.floatlayout import FloatLayout
from kivymd.uix.card import MDCard
from camera4kivy import Preview
from PIL import Image
from pyzbar.pyzbar import decode
I saw in another post to try:
import subprocess
print(subprocess.__file__)
Which I did, and it printed:
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py
But I don't know what that tells me or what to do about it. The other post mentioned shadowing, but I don't know what that means. If anyone had any advice on how I can get past this error, I would very much appreciate it. Thanks in advance.