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

AttributeError: 'NoneType' object has no attribute 'from_crystax' #659

Closed
brussee opened this issue Mar 2, 2016 · 0 comments
Closed

AttributeError: 'NoneType' object has no attribute 'from_crystax' #659

brussee opened this issue Mar 2, 2016 · 0 comments

Comments

@brussee
Copy link
Contributor

brussee commented Mar 2, 2016

Whenever I build a regular recipe without a Pythonrecipe in the build order I get the following 2 attribute errors in archs.py line 113 and build.py line 568.
The problem is an undefined attribute: self.ctx.python_recipe.from_crystax

Traceback (most recent call last):
  File "/home/paul/.local/bin/p4a", line 9, in <module>
    load_entry_point('python-for-android==0.3', 'console_scripts', 'p4a')()
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 708, in main
    ToolchainCL()
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 323, in __init__
    getattr(self, args.command)(unknown)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 105, in wrapper_func
    build_dist_from_args(ctx, dist, dist_args)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 142, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/build.py", line 560, in build_recipes
    recipe.build_arch(arch)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/recipes/leveldb/__init__.py", line 16, in build_arch
    env = self.get_recipe_env(arch)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/recipes/leveldb/__init__.py", line 30, in get_recipe_env
    env = super(LevelDBRecipe, self).get_recipe_env(arch)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/recipe.py", line 474, in get_recipe_env
    return arch.get_env(with_flags_in_cc=with_flags_in_cc)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/archs.py", line 113, in get_env
    if self.ctx.python_recipe.from_crystax:
AttributeError: 'NoneType' object has no attribute 'from_crystax'
Traceback (most recent call last):
  File "/home/paul/.local/bin/p4a", line 9, in <module>
    load_entry_point('python-for-android==0.3', 'console_scripts', 'p4a')()
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 708, in main
    ToolchainCL()
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 323, in __init__
    getattr(self, args.command)(unknown)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 105, in wrapper_func
    build_dist_from_args(ctx, dist, dist_args)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 142, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/paul/.local/lib/python2.7/site-packages/pythonforandroid/build.py", line 568, in build_recipes
    if not ctx.python_recipe.from_crystax:
AttributeError: 'NoneType' object has no attribute 'from_crystax'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant