Skip to content

pyjnius import crash / TypeError #1578

@ghost

Description

With the new python 3 recipe with openssl, sqlite3 and all the other fancy things of the recent refactoring, I can no longer import pyjnius, apparently:

File "/mnt/expand/[...blabla...]/files/app/_python_bundle/site-packages/myapp/osintegration.py", line 118, in get_appdata_dir
  from jnius import autoclass, cast
File "/mnt/expand/[...blabla...]/files/app/_python_bundle/site-packages/jnius/__init__.py", line 12, in <module>
  from .jnius import *  # noqa
TypeError: 'NoneType' object does not support indexing
Python for android ended.

(forgive my brevity, I copied this manually by reading from the termux terminal)

I have never seen this with the previous python 3 crystax, so is this maybe a regression of the refactoring or something? Has anyone else seen this? Is pyjnius tested to work properly with python 3.7 given maybe the relative import mechanism may have changed? (CrystaX is 3.3 or something, after all)

Any input for the culprit appreciated!

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