You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modifyed requirements and android.ndk_path in buildozer.spec:
requirements = python3crystax,beautifulsoup4,kivy==master
android.ndk_path = ~/Programs/crystax-ndk-10.3.2
I ran buildozer:
buildozer android debug deploy
Everything was built successfully. But when I run the app on my mobile it falls with error:
I/python (15014): 'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (python setup.py install) or by running 2to3 (2to3 -w bs4).'
I/python (15014): ^
I/python (15014): SyntaxError: invalid syntax
It looks like buildozer installed beautifulsoup for Python 2 instead. But I specified nothing about Python 2 when I was installing and configuring buildozer. Also I had looked at .buildozer directory and found the directory venv that contains Python 2.7 only. It seems to be weird, because I have done everything to avoid Python 2.
How can I make my app build and work correctly?
Thanks for advance.
The text was updated successfully, but these errors were encountered:
I am trying to build a kivy app written in Python 3 having beautifulsoup library. I have followed these steps:
requirements = python3crystax,beautifulsoup4,kivy==master
android.ndk_path = ~/Programs/crystax-ndk-10.3.2
buildozer android debug deploy
Everything was built successfully. But when I run the app on my mobile it falls with error:
I/python (15014): 'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (
python setup.py install
) or by running 2to3 (2to3 -w bs4
).'I/python (15014): ^
I/python (15014): SyntaxError: invalid syntax
It looks like buildozer installed beautifulsoup for Python 2 instead. But I specified nothing about Python 2 when I was installing and configuring buildozer. Also I had looked at .buildozer directory and found the directory venv that contains Python 2.7 only. It seems to be weird, because I have done everything to avoid Python 2.
How can I make my app build and work correctly?
Thanks for advance.
The text was updated successfully, but these errors were encountered: