iOS Development

python – I’ve a subprocess error in Xcode logs at my app launch

Spread the love


I’ve a subprocess error in Xcode logs at my app launch

i’ve put in pyzbar with : toolchain pip set up pyzbar

i’ve construct zbar with : toolchain construct libzbar

MY FULL LOGS :

2024-02-05 10:13:29.313314+0100 MyApp[1218:20214] [SceneConfiguration] Data.plist contained no UIScene configuration dictionary (in search of configuration named "(no title)")
2024-02-05 10:13:29.313657+0100 MyApp[1218:20214] [SceneConfiguration] Data.plist contained no UIScene configuration dictionary (in search of configuration named "(no title)")
2024-02-05 10:13:29.516965+0100 MyApp[1218:20214] Obtainable orientation: KIVY_ORIENTATION=LandscapeLeft LandscapeRight Portrait PortraitUpsideDown
2024-02-05 10:13:29.517238+0100 MyApp[1218:20214] Initializing python
<string>:1: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removing in Python 3.12; see the module's documentation for different makes use of
2024-02-05 10:13:30.161136+0100 MyApp[1218:20214] Operating foremost.py: 
/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/YourApp/foremost.pyc
[INFO   ] [Logger      ] Document log in 
/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Knowledge/Software/834ABCDC-1C80-4834-B36E-E88150B81DE2/Paperwork/.kivy/logs/kivy_24-02-05_0.txt
[INFO   ] [Kivy        ] v2.2.1
[INFO   ] [Kivy        ] Put in at 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python3.10/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.10.10 (foremost, Feb  2 2024, 15:34:19) [Clang 14.0.0 (clang-1400.0.29.202)]
[INFO   ] [Python      ] Interpreter at 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/MyApp"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge completed!
[INFO   ] [Factory     ] 190 symbols loaded
[INFO   ] [Image       ] Suppliers: img_imageio, img_tex, img_sdl2 (img_dds, img_ffpyplayer, img_pil ignored)
[INFO   ] [Window      ] Supplier: sdl2
2024-02-05 10:13:31.567060+0100 MyApp[1218:20214] You want UIApplicationSupportsIndirectInputEvents in your Data.plist for mouse assist
[INFO   ] [GL          ] Utilizing the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL model <b'OpenGL ES 2.0 APPLE-20.0.39'>
[INFO   ] [GL          ] OpenGL vendor <b'Apple Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'Apple Software program Renderer'>
[INFO   ] [GL          ] OpenGL parsed model: 2, 0
[INFO   ] [GL          ] Shading model <b'OpenGL ES GLSL ES 1.00'>
[INFO   ] [GL          ] Texture max measurement <4096>
[INFO   ] [GL          ] Texture max models <8>
[INFO   ] [Window      ] auto add sdl2 enter supplier
[INFO   ] [Window      ] digital keyboard not allowed, single mode, not docked
[INFO   ] [KivyMD      ] 1.2.0, git-Unknown, 2024-02-01 (put in at 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python3.10/site-packages/kivymd/__init__.py")
[WARNING] [KivyMD      ] Model 1.2.0 is deprecated and is not supported. Use KivyMD model 2.0.0 from the grasp department (pip set up https://github.com/kivymd/KivyMD/archive/grasp.zip)
[INFO   ] [Text        ] Supplier: sdl2
Obtained dlopen error on Basis: dlopen(/System/Library/Frameworks/Basis.framework/Variations/Present/Basis, 0x0001): tried: 
'/Customers/pentaist/Library/Developer/Xcode/DerivedData/MyApp-dunafhbudoujmgcvxgnnlyxsmztr/Construct/Merchandise/Debug-iphonesimulator/Basis.framework/Variations/Present/Basis' (errno=2), 
'/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Assets/RuntimeRoot/System/Library/Frameworks/Basis.framework/Variations/Present/Basis' 
(errno=2), '/System/Library/Frameworks/Basis.framework/Variations/Present/Basis' (errno=2, not in dyld cache), 
'/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Assets/RuntimeRoot/System/Library/Frameworks/Basis.framework/Variations/Present/Basis' 
(errno=2), '/Customers/pentaist/Library/Developer/Xcode/DerivedData/MyApp-dunafhbudoujmgcvxgnnlyxsmztr/Construct/Merchandise/Debug-iphonesimulator/Basis.framework/Variations/C/Basis' (errno=2), 
'/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Assets/RuntimeRoot/System/Library/Frameworks/Basis.framework/Variations/C/Basis' 
(errno=2), '/System/Library/Frameworks/Basis.framework/Variations/C/Basis' (errno=2, not in dyld cache), 
'/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Assets/RuntimeRoot/System/Library/Frameworks/Basis.framework/Variations/C/Basis' 
(errno=2)
Obtained fallback dlopen error on Basis: dlopen(/Teams/System/Library/Frameworks/Basis.framework/Variations/Present/Basis, 0x0001): tried: 
'/Customers/pentaist/Library/Developer/Xcode/DerivedData/MyApp-dunafhbudoujmgcvxgnnlyxsmztr/Construct/Merchandise/Debug-iphonesimulator/Basis.framework/Variations/Present/Basis' (errno=2), 
'/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Assets/RuntimeRoot/Teams/System/Library/Frameworks/Basis.framework/Variations/Present/Basis' 
(errno=2), '/Teams/System/Library/Frameworks/Basis.framework/Variations/Present/Basis' (errno=2), 
'/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Assets/RuntimeRoot/System/Library/Frameworks/Basis.framework/Variations/Present/Basis' 
(errno=2)
[INFO   ] [Clipboard   ] Supplier: sdl2
[INFO   ] [Camera      ] Supplier: avfoundation
 Traceback (most up-to-date name final):
   File "/Customers/pentaist/Desktop/construct/MyApp-ios/YourApp/foremost.py", line 21, in <module>
   File "/Customers/pentaist/Desktop/construct/MyApp-ios/YourApp/scanner.py", line 16, in <module>
   File 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python3.10/site-packages/pyzbar/pyzbar.py", 
line 7, in <module>
     from .wrapper import (
   File 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python3.10/site-packages/pyzbar/wrapper.py", 
line 151, in <module>
     zbar_version = zbar_function(
   File 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python3.10/site-packages/pyzbar/wrapper.py", 
line 148, in zbar_function
     return prototype((fname, load_libzbar()))
   File 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python3.10/site-packages/pyzbar/wrapper.py", 
line 127, in load_libzbar
     libzbar, dependencies = zbar_library.load()
   File 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python3.10/site-packages/pyzbar/zbar_library.py", 
line 63, in load
     path = find_library('zbar')
   File 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python310.zip/ctypes/util.py", 
line 329, in find_library
   File 
"/Customers/pentaist/Library/Developer/CoreSimulator/Units/F67E48F4-3BF3-47CC-8BBB-7D8E1661EDC0/information/Containers/Bundle/Software/53C14315-F5E9-49DD-AB39-9ECB7F15C12A/MyApp.app/lib/python310.zip/ctypes/util.py", 
line 289, in _findSoname_ldconfig
 AttributeError: module 'subprocess' has no attribute 'Popen'
2024-02-05 10:13:33.806314+0100 MyApp[1218:20214] Software stop abnormally!
2024-02-05 10:13:33.883899+0100 MyApp[1218:20214] Leaving

Python model (MacOS) : 3.11.7

Python model (toolchain) : 3.10.10

MacOS : Monterey 12.7.3

Xcode model : 14.2 (14C18)

foremost.py line 21 : from scanner import BarcodeScannerScreen

scanner.py line 16 : from pyzbar import decode

i’ve put in pyzbar with : toolchain pip set up pyzbar

i’ve construct zbar with : toolchain construct libzbar

Leave a Reply

Your email address will not be published. Required fields are marked *