Reputation: 327
I try to compile python file to ios file on mac. I used kivy-for-ios documentation. I executed:
brew install autoconf automake libtool pkg-config
brew link libtool
sudo easy_install pip
sudo pip install Cython==0.29.10
git clone git://github.com/kivy/kivy-ios
cd kivy-ios
I also executed this line:
chmod +x ./toolchain.py
because before I got error:
-bash: .toolchain.py: Permission denied
then
./toolchain.py build kivy
the last string returns error:
|from: can not read /var/mail/kivy-ios.toolchain
.toolchain.py: line 4: syntax error: unexpected end of file
why does it happens and how to fix it? I use python 3.7.5 and I have xcode 10.0.
Upvotes: 1
Views: 1062
Reputation: 1226
Try using python3 ./toolchain.py build kivy
When you just write ./toolchain.py build kivy
it tries to use your default python, which in this case is python2. The toolchain.py scripts requires python3.
Upvotes: 1