Skip to content

ModuleNotFoundError: No module named 'pkg_resources' #962

@AoifeHughes

Description

@AoifeHughes

I've followed the build instructions as per the readme, however I am getting this error.

I've done toolchain pip install setuptools and toolchain update <pkg> but even with a clean build it still throws this error about pkg items being missing?

Failed to send CA Event for app launch measurements for ca_event_type: 0 event_name: com.apple.app_launch_measurement.FirstFramePresentationMetric
Available orientation: KIVY_ORIENTATION=LandscapeLeft LandscapeRight Portrait PortraitUpsideDown
Initializing python
<string>:1: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
Running main.py: /Users/aoife/Library/Developer/CoreSimulator/Devices/C7A9AE48-8063-4722-89C8-F5B02EA5199C/data/Containers/Bundle/Application/9A45D788-7060-4C49-8803-4DF9A89C80EA/ahlingo.app/YourApp/main.pyc
[INFO   ] [Logger      ] Record log in /Users/aoife/Library/Developer/CoreSimulator/Devices/C7A9AE48-8063-4722-89C8-F5B02EA5199C/data/Containers/Data/Application/1D11A8CE-6D4C-4F62-8964-197AE186E461/Documents/.kivy/logs/kivy_25-03-24_3.txt
[INFO   ] [Kivy        ] v2.3.1
[INFO   ] [Kivy        ] Installed at "/Users/aoife/Library/Developer/CoreSimulator/Devices/C7A9AE48-8063-4722-89C8-F5B02EA5199C/data/Containers/Bundle/Application/9A45D788-7060-4C49-8803-4DF9A89C80EA/ahlingo.app/lib/python3.11/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.11.6 (main, Mar 24 2025, 11:15:39) [Clang 16.0.0 (clang-1600.0.26.6)]
[INFO   ] [Python      ] Interpreter at "/Users/aoife/Library/Developer/CoreSimulator/Devices/C7A9AE48-8063-4722-89C8-F5B02EA5199C/data/Containers/Bundle/Application/9A45D788-7060-4C49-8803-4DF9A89C80EA/ahlingo.app/ahlingo"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [KivyMD      ] 1.2.0, git-Unknown, 2025-03-24 (installed at "/Users/aoife/Library/Developer/CoreSimulator/Devices/C7A9AE48-8063-4722-89C8-F5B02EA5199C/data/Containers/Bundle/Application/9A45D788-7060-4C49-8803-4DF9A89C80EA/ahlingo.app/lib/python3.11/site-packages/kivymd/__init__.py")
[WARNING] [KivyMD      ] Version 1.2.0 is deprecated and is no longer supported. Use KivyMD version 2.0.0 from the master branch (pip install https://github.com/kivymd/KivyMD/archive/master.zip)
[INFO   ] [Factory     ] 195 symbols loaded
[INFO   ] [Image       ] Providers: img_imageio, img_tex, img_sdl2 (img_dds, img_ffpyplayer, img_pil ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
You need UIApplicationSupportsIndirectInputEvents in your Info.plist for mouse support
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0 APPLE-21.0.27'>
[INFO   ] [GL          ] OpenGL vendor <b'Apple Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'Apple Software Renderer'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>
[INFO   ] [GL          ] Texture max size <4096>
[INFO   ] [GL          ] Texture max units <8>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Users/aoife/Library/Developer/Xcode/DerivedData/ahlingo-flowxbhgnlvicwedbaauwnmiknhk/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file, not in dyld cache), '/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/Users/aoife/Library/Developer/Xcode/DerivedData/ahlingo-flowxbhgnlvicwedbaauwnmiknhk/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/C/Foundation' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation' (no such file), '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation' (no such file, not in dyld cache), '/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation' (no such file)
Got fallback dlopen error on Foundation: dlopen(/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Users/aoife/Library/Developer/Xcode/DerivedData/ahlingo-flowxbhgnlvicwedbaauwnmiknhk/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file)
 Traceback (most recent call last):
   File "/Users/aoife/kivy-ios-dev/ahlingo-ios/YourApp/main.py", line 3, in <module>
   File "/Users/aoife/kivy-ios-dev/ahlingo-ios/YourApp/AHLingo/__init__.py", line 2, in <module>
     Modules
     ^^^^^^^^
   File "/Users/aoife/kivy-ios-dev/ahlingo-ios/YourApp/AHLingo/run.py", line 9, in <module>
 ModuleNotFoundError: No module named 'pkg_resources'
Application quit abnormally!
Leaving

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions