Skip to content

Instantly share code, notes, and snippets.

@alanjds
Created August 10, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanjds/fb6afc1188a3a8a031cc to your computer and use it in GitHub Desktop.
Save alanjds/fb6afc1188a3a8a031cc to your computer and use it in GitHub Desktop.
Error on pycryptodome recipe (p4a)
#coding: utf-8
from pythonforandroid.toolchain import CompiledComponentsPythonRecipe, PythonRecipe
class PyCryptodomeRecipe(PythonRecipe):
version = '3.1'
url = 'https://pypi.python.org/packages/source/p/pycryptodome/pycryptodome-{version}.zip'
site_packages_name= 'pycrypto'
recipe = PyCryptodomeRecipe()
[INFO]: Building pycryptodome for armeabi
name is pycrypto <class 'pythonforandroid.recipes.pycryptodome.PyCryptodomeRecipe'>
[INFO]: pycrypto apparently isn't already in site-packages
[INFO]: Installing pycryptodome into site-packages
[INFO]: -> directory context /home/ubuntu/.local/share/python-for-android/build/other_builds/pycryptodome/armeabi/pycryptodome
Traceback (most recent call last):
File "/home/ubuntu/.virtualenvs/p4a/bin/p4a", line 9, in <module>
load_entry_point('python-for-android==0.3', 'console_scripts', 'p4a')()
File "/home/ubuntu/git/python-for-android/pythonforandroid/toolchain.py", line 2435, in __init__
getattr(self, args.command)(unknown)
File "/home/ubuntu/git/python-for-android/pythonforandroid/toolchain.py", line 168, in wrapper_func
args = build_dist_from_args(ctx, dist, args)
File "/home/ubuntu/git/python-for-android/pythonforandroid/toolchain.py", line 2221, in build_dist_from_args
build_recipes(build_order, python_modules, ctx)
File "/home/ubuntu/git/python-for-android/pythonforandroid/toolchain.py", line 2028, in build_recipes
recipe.build_arch(arch)
File "/home/ubuntu/git/python-for-android/pythonforandroid/toolchain.py", line 1858, in build_arch
self.install_python_package()
File "/home/ubuntu/git/python-for-android/pythonforandroid/toolchain.py", line 1875, in install_python_package
with current_directory(self.get_build_dir(arch.arch)):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/ubuntu/git/python-for-android/pythonforandroid/toolchain.py", line 214, in current_directory
chdir(new_dir)
OSError: [Errno 20] Not a directory: '/home/ubuntu/.local/share/python-for-android/build/other_builds/pycryptodome/armeabi/pycryptodome'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment