Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulldozer and distribute.sh #364

Closed
idarek92 opened this issue Apr 21, 2015 · 6 comments
Closed

bulldozer and distribute.sh #364

idarek92 opened this issue Apr 21, 2015 · 6 comments

Comments

@idarek92
Copy link

My distribute.sh file crashes on my mac running 10.10.2. Lines 286, 400, and 401:

./distribute.sh: line 286: lsb_release: command not found
Check build dependencies for 
Avoid check build dependencies, unknow platform 
Check environment
SDK located at /Users/Darek/.buildozer/android/platform/android-sdk-21
NDK located at /Users/Darek/.buildozer/android/platform/android-ndk-r9c
NDK version is r9c
API level set to 14
Check NDK location
Check mandatory tools
Distribution will be located at /dist/pongTest
The distribution /dist/pongTest already exist
Press a key to remove it, or Control + C to abort.

./distribute.sh: line 400: /src/default.properties: No such file or directory
./distribute.sh: line 401: /src/local.properties: No such file or directory
cp: /src/blacklist.txt: No such file or directory
@tito
Copy link
Member

tito commented May 16, 2015

This can happen if your default shell is not bash. Ensure it's the case?

@vrescobar
Copy link

Hi that there is happening me on MacOSX, the shell is bash and the example... a bare hello world which works on desktop.

@macmittereder
Copy link

I'm also having this problem with a bare hello world application

@ryansehrlich
Copy link

I'm also having this problem. My Default shell is bash, and I followed all the steps.
Log:
rEhrlichs' MBP:Reading Log App Ryan$ sudo buildozer android debug deploy

Check configuration tokens

Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y

Ensure build layout

Check configuration tokens

Preparing build

Check requirements for android

Search for Git (git)

-> found at /usr/bin/git

Search for Cython (cython)

-> found at /usr/local/bin/cython

Search for Java compiler (javac)

-> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac

Search for Java keytool (keytool)

-> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool

Install platform

Apache ANT found at /Users/Ryan/.buildozer/android/platform/apache-ant-1.9.4

Android SDK found at /Users/Ryan/.buildozer/android/platform/android-sdk-21

Android NDK found at /Users/Ryan/.buildozer/android/platform/android-ndk-r9c

Check application requirements

Run './distribute.sh -l'

Cwd /Users/Ryan/Desktop/Reading Log App/.buildozer/android/platform/python-for-android

usage: dirname path
Available modules: android apsw audiostream bidi boost c_igraph cherrypy cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope

Application requirements already installed, pass

Check garden requirements

Compile platform

Run './distribute.sh -l'

Cwd /Users/Ryan/Desktop/Reading Log App/.buildozer/android/platform/python-for-android

usage: dirname path
Available modules: android apsw audiostream bidi boost c_igraph cherrypy cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope

Clean and build python-for-android

Run './distribute.sh -m "kivy" -d "readinglog"'

Cwd /Users/Ryan/Desktop/Reading Log App/.buildozer/android/platform/python-for-android

usage: dirname path
./distribute.sh: line 286: lsb_release: command not found
Check build dependencies for
Avoid check build dependencies, unknow platform
Check environment
SDK located at /Users/Ryan/.buildozer/android/platform/android-sdk-21
NDK located at /Users/Ryan/.buildozer/android/platform/android-ndk-r9c
NDK version is r9c
API level set to 14
Check NDK location
Check mandatory tools
Distribution will be located at /dist/readinglog
The distribution /dist/readinglog already exist
Press a key to remove it, or Control + C to abort.
yes
./distribute.sh: line 400: /src/default.properties: No such file or directory
./distribute.sh: line 401: /src/local.properties: No such file or directory

Help please

@inclement
Copy link
Member

Not sure what caused this, though it may be fixed now, please raise the issue in the mailing lists if you get this problem.

@rvdlee
Copy link

rvdlee commented Aug 24, 2016

NDK version is r9c
API level set to 14
Check NDK location
Check mandatory tools
Distribution will be located at /dist/pongTest
The distribution /dist/pongTest already exist
Press a key to remove it, or Control + C to abort.

./distribute.sh: line 400: /src/default.properties: No such file or directory
./distribute.sh: line 401: /src/local.properties: No such file or directory
cp: /src/blacklist.txt: No such file or directory

I had error messages along these lines. I discovered that you get the same error message when a folder has spaces in the name along in your project's path. I didn't see that answer in here and this thread was a good help and the right place to start. The spaces in path don't get escaped so they break buildozer in the process.

I'm using Python, Kivy and Buildozer on Ubuntu 14.04 LTS. I ran into this issue when freshly installing this stack (have the same stack running on Arch and worked no problem, first time)

I discovered this when checking the log, it showed it was trying to go into folder:
/media/rob/DEV/Untitled

Instead of:
/media/rob/DEV/Untitled Folder/

My project folder was the following wich failed:
/media/rob/DEV/Untitled Folder/myTestApp

Then i moved my project folder to this and worked:
/media/rob/DEV/myTestApp

Hope this helps someone who had the same error as me. It was silly and solved within minutes when tracing it back in the log. I post this here because it will still give the same distribute error at first wich is confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants