Closed sltoo777 closed 3 years ago
Are you on a M1-based device?
yes it's macbook pro 13-inch M1 2020
Are you using rosetta?
I try with rosetta and without rosetta and both give me the same error
The error log you posted is from a rosetta terminal?
yes
I am having the same issue. Mac OS: 11.2.3 Python: 3.9.7 Xcode: 12.5.1 Cython:0.29.23
I just built using rosetta, without any issues.
Try cleaning the .buildozer
dir and then making sure you run with rosetta.
To test when you open terminal with rosetta, open System Monitor in CPU
tab it should show intel
instead of apple
on the architecture
column.
Similarly Make sure when you run python3
from the terminal, the binary python
shows up as intel
.
Once you have made sure of these 2 things. Just clean the build and start a new one. It should work.
Also make sure to use Python3.9.x multi arch download from Python.org. <-this was the key to get python3
to show up as running from intel
arch.
How I run python3 with rosetta?
How I run python3 with rosetta?
Also make sure to use Python3.9.x multi arch download from Python.org. <-this was the key to get python3 to show up as running from intel arch.
Thank you yes, I am now getting 'configure: error: Unexpected output of 'arch' on OSX'. Would you provide a little more specifics on how I can check or replace that file/dir?
It's give me this error `[DEBUG ] FileNotFoundError: [Errno 2] No such file or directory: '/opt/homebrew/bin/cython' Exception in thread background thread for pid 41644: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run self._target(*self._args, *self._kwargs) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/sh.py", line 1683, in wrap fn(rgs, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_1:
RAN: /Users/mahdi/Documents/ios-app/venv/bin/python /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy_ios/tools/cythonize.py ios.pyx
STDOUT:
-- cythonize ['/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy_ios/tools/cythonize.py', 'ios.pyx']
cythonize: ios.pyx
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy_ios/tools/cythonize.py", line 58, in
STDERR:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/toolchain", line 8, in
RAN: /Users/mahdi/Documents/ios-app/venv/bin/python /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy_ios/tools/cythonize.py ios.pyx
STDOUT:
-- cythonize ['/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy_ios/tools/cythonize.py', 'ios.pyx']
cythonize: ios.pyx
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy_ios/tools/cythonize.py", line 58, in
STDERR:
`
Please don't mix homebrew modules modules with python3 from python.org.
I am closing this issue cause this is a support request, not a actual issue. Please use support channels for support request.
Versions
Describe the bug error when i run toolchain build kivy
Logs