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

python fabric recipe fails #374

Closed
Lakshmipathi opened this issue May 15, 2015 · 1 comment
Closed

python fabric recipe fails #374

Lakshmipathi opened this issue May 15, 2015 · 1 comment
Labels

Comments

@Lakshmipathi
Copy link

My recipe/fabric/recipe.sh looks like below

# version of your package
VERSION_fabric=${VERSION_fabric:-1.8.3}

# dependencies of this recipe
DEPS_fabric=(python setuptools)

# url of the package
URL_fabric=https://pypi.python.org/packages/source/F/Fabric/Fabric-1.8.3.tar.gz

# md5 of the package
MD5_fabric=02ce0ad4657f2d0ab6497a8fd3a09c2c

# default build path
BUILD_fabric=$BUILD_PATH/fabric/$(get_directory $URL_fabric)

# default recipe path
RECIPE_fabric=$RECIPES_PATH/fabric

# function called for preparing source code if needed
# (you can apply patch etc here.)
function prebuild_fabric() {
    true
}

# function called to build the source code
function build_fabric() {
    cd $BUILD_fabric
    export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
    export LDSHARED="$LIBLINK"

    push_arm
    try $HOSTPYTHON setup.py install 
    pop_arm
}

# function called after all the compile have been done
function postbuild_fabric() {
    true
}

It fails with message like

    import _io
ImportError: /home/kivy/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/lib-dynload/_io.so: wrong ELF class: ELFCLASS32

Could you please me know whether recipe.sh has issues?

@tito tito added the recipe label May 16, 2015
@inclement
Copy link
Member

This happens because the recipe tries to import a compiled component of the arm python, which can't run on the desktop. A possible workaround is to run hostpython from its build dir, as is done by some existing recipes. The new toolchain actually has a flag to do this automatically.

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

No branches or pull requests

3 participants