Skip to content

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

@brussee

Description

@brussee

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions