Closed MNwake closed 1 year ago
I uninstalled Xcode and reinstalled. That fixed the issue.
Nevermind, 407 duplicates happened again... I realized if clone from github, i get 407 duplicates, if I pip install kivy-ios
i can get a successful build.
407 duplicates (see above)
git clone https://github.com/kivy/kivy-ios.git
cd kivy-ios/
python3 -m venv venv
. venv/bin/activate
pip install -e .
xcode-select --install
pip install cython
brew install autoconf automake libtool pkg-config
brew link libtool
toolchain build python3 kivy pillow numpy
toolchain pip install kivymd dnspython mongoengine watchdog pandas numpy==1.20.2
Build Successful:
python3 -m venv venv
. venv/bin/activate
pip install kivy-ios
xcode-select --install
pip install cython
brew install autoconf automake libtool pkg-config
brew link libtool
toolchain build python3 kivy pillow numpy
toolchain pip install kivymd dnspython mongoengine watchdog pandas numpy==1.20.2
However, This crashes upon open.
2022-11-17 12:03:00.263604-0500 TheCWA[52331:809136] Available orientation: KIVY_ORIENTATION=LandscapeRight Portrait PortraitUpsideDown
2022-11-17 12:03:00.264098-0500 TheCWA[52331:809136] Initializing python
2022-11-17 12:03:00.621087-0500 TheCWA[52331:809136] Running main.py: /Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/YourApp/main.pyc
[INFO ] [Logger ] Record log in /Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Data/Application/A64F6AEB-AC00-4499-9C20-ADD591CF231F/Documents/.kivy/logs/kivy_22-11-17_2.txt
[INFO ] [Kivy ] v2.2.0.dev0
[INFO ] [Kivy ] Installed at "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/kivy/__init__.py"
[INFO ] [Python ] v3.9.9 (main, Nov 17 2022, 11:22:15)
[Clang 14.0.0 (clang-1400.0.29.202)]
[INFO ] [Python ] Interpreter at "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/TheCWA"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
[INFO ] [Factory ] 189 symbols loaded
[INFO ] [Image ] Providers: img_imageio, img_tex, img_sdl2 (img_dds, img_ffpyplayer, img_pil ignored)
[INFO ] [KivyMD ] 1.1.1, git-Unknown, 2022-11-10 (installed at "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/kivymd/__init__.py")
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL ES 2" graphics system
[INFO ] [GL ] Backend used <sdl2>
[INFO ] [GL ] OpenGL version <b'OpenGL ES 2.0 APPLE-20.0.32'>
[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/tk/Library/Developer/Xcode/DerivedData/thecwa-hfvunietpteksieimavlgfgsfhvi/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (errno=2), '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (errno=2, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (errno=2), '/Users/tk/Library/Developer/Xcode/DerivedData/thecwa-hfvunietpteksieimavlgfgsfhvi/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/C/Foundation' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation' (errno=2), '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation' (errno=2, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation' (errno=2)
Got fallback dlopen error on Foundation: dlopen(/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Users/tk/Library/Developer/Xcode/DerivedData/thecwa-hfvunietpteksieimavlgfgsfhvi/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (errno=2), '/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (errno=2)
Traceback (most recent call last):
File "<string>", line 44, in load_module
File "/Users/tk/thecwa-ios/dist/root/python3/lib/python3.9/imp.py", line 342, in load_dynamic
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 565, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1173, in create_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
ImportError: dynamic module does not define module export function (PyInit_pandas__libs_interval)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/tk/thecwa-ios/thecwa-ios/YourApp/main.py", line 123, in <module>
File "/Users/tk/thecwa-ios/thecwa-ios/YourApp/View/screens.py", line 7, in <module>
File "/Users/tk/thecwa-ios/thecwa-ios/YourApp/Controller/event_screen.py", line 3, in <module>
File "/Users/tk/thecwa-ios/thecwa-ios/YourApp/View/EventScreen/event_screen.py", line 3, in <module>
File "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/pandas/__init__.py", line 22, in <module>
from pandas.compat import is_numpy_dev as _is_numpy_dev
File "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/pandas/compat/__init__.py", line 15, in <module>
from pandas.compat.numpy import (
File "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/pandas/compat/numpy/__init__.py", line 4, in <module>
from pandas.util.version import Version
File "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/pandas/util/__init__.py", line 1, in <module>
from pandas.util._decorators import ( # noqa:F401
File "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/pandas/util/_decorators.py", line 14, in <module>
from pandas._libs.properties import cache_readonly # noqa:F401
File "/Users/tk/Library/Developer/CoreSimulator/Devices/702F62D4-9CC7-452C-BD05-E7B658E5447F/data/Containers/Bundle/Application/428C477C-23D1-48B8-88D8-437746E2AD19/TheCWA.app/lib/python3.9/site-packages/pandas/_libs/__init__.py", line 13, in <module>
from pandas._libs.interval import Interval
File "<string>", line 48, in load_module
File "/Users/tk/thecwa-ios/dist/root/python3/lib/python3.9/imp.py", line 342, in load_dynamic
ImportError: dynamic module does not define module export function (PyInit_interval)
2022-11-17 12:03:03.742476-0500 TheCWA[52331:809136] Application quit abnormally!
2022-11-17 12:03:03.821300-0500 TheCWA[52331:809136] Leaving
If I remove pandas from my codebase it builds and runs properly on device... only on the pip install kivy-iOS
build
I have ran through this at least 100 times now... trying various combinations of builds, orders, while trying different 'fixes' each time... I think i've narrowed down to two errors that prevent me from moving forward.
Also, i've had this same Kivy app build successfully a few weeks ago. Only changes to the app were more screens, no new python libraries.
-->
Versions
To Reproduce first Error
$ cd usr/dev/projects $ git clone https://github.com/kivy/kivy-ios.git $ cd kivy-ios/ $ python3 -m venv venv $ . venv/bin/activate $ pip install -e . $ pip install cython $ toolchain build python3 kivy pillow $ toolchain status
$ toolchain pip list
$ toolchain create myapp /usr/dev/projects/company/app $ open myapp-ios/myapp.xcodeproj/
In Xcode
CMD + SHIFT + K : Clean Successful
target -> signing and capabilities : Set Team
Run app.
Build Fail
error:
I've done a lot of research on this, can't find anything that relates to kivy. I tried to delete either one of those files and neither fixed the problem. I'm not familiar with xcode and new to programming so if this is an obvious fix I apologize in advance for wasting your time lol... I didn't see anything about this in issues either.
Expected behavior These three builds alone shouldn't have any error. It should prompt me with a module not found error looking for Kivymd, Pandas, etc to install through
toolchain pip install
To Reproduce other Error
$ cd usr/dev/projects $ git clone https://github.com/kivy/kivy-ios.git $ cd kivy-ios/ $ python3 -m venv venv $ . venv/bin/activate $ pip install -e . $ pip install cython $ toolchain build python3 kivy $ toolchain pip install kivymd $ toolchain status
$ toolchain pip list
$ toolchain create myapp /location $ open myapp/xcodeproj
In Xcode
CMD + SHIFT + K : Clean Successful
target -> signing and capabilities : Set Team
Run app.
Build Successfull
Installs, then brings up black screen and crashes
So for this error code, i found issue #644 where the solution is to build pillow before
toolchain pip install kivymd
, but that's what i did in my first attempt.So now I can try to
$ toolchain build pillow
and$ toolchain update myapp-ios
rerun app in xcode 407 duplicate error from above
but now I have mismatched versions of Pillow Build: 8.2.0 Pip: 9.3
I fix that, and still 407 duplicates.
So i'm in a circle and can't find my way out. Any help would be greatly appreciated.