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

p4a recipes terminates with error #1769

Closed
tcdude opened this issue Mar 24, 2019 · 5 comments
Closed

p4a recipes terminates with error #1769

tcdude opened this issue Mar 24, 2019 · 5 comments

Comments

@tcdude
Copy link
Contributor

tcdude commented Mar 24, 2019

Versions

  • Python: 3.6.7
  • OS: Ubuntu 18.10
  • Kivy: N/A
  • Cython: 0.29.6

Description

I installed python-for-androidusing the master branch from github. As indicated in the docs, I tried the command p4a recipes. It fails right after the opencv recipe with a TypeError: argument of type 'NoneType' is not iterable.

buildozer.spec

N/A

Logs

Pillow       5.2.0   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'png', 'jpeg', 'freetype', 'setuptools']
android      None    
    depends: [('pygame', 'sdl2', 'genericndkbuild'), 'pyjnius', ('python2', 'python2legacy', 'python3', 'python3crystax')]
apsw         3.15.0-r1
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3'), 'sqlite3', 'setuptools']
atom         0.3.10  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
audiostream  master  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3'), 'pyjnius', ('sdl', 'sdl2')]
babel        2.2.0   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'pytz', 'setuptools']
boost        1.68.0  
    depends: [('python2', 'python3')]
This is a broken recipe, not a real one!
brokenrecipe None    
    depends: []
cdecimal     2.3     
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
cffi         1.11.5  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'pycparser', 'libffi', 'setuptools']
cherrypy     5.1.0   
    depends: ['hostpython2', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
coverage     4.1     
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'hostpython3'), 'setuptools']
cryptography 2.4.2   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'openssl', 'idna', 'cffi', 'asn1crypto', 'enum34', 'ipaddress', 'six', 'setuptools']
cymunk       master  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3crystax', 'python3')]
dateutil     2.6.0   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
decorator    4.2.1   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
doubleratchet 0.4.0   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'cryptography', 'setuptools']
enaml        0.9.8   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kiwisolver', 'atom', 'setuptools']
enum34       1.1.3   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
ethash       None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
evdev        v0.4.7  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
feedparser   5.2.1   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'python3crystax'), 'setuptools']
ffmpeg       3.4.1   
    depends: ['sdl2']
ffpyplayer   6f7568b498715c2da88f061ebad082a042514923
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3'), 'ffmpeg', 'sdl2']
    optional depends: ['openssl', 'ffpyplayer_codecs']
ffpyplayer_codecs None    
    depends: ['libshine', 'libx264']
flask        0.10.1  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3', 'python3crystax'), 'setuptools', 'genericndkbuild']
fontconfig   really_old
    depends: ['sdl2']
freetype     2.5.5   
    depends: ['harfbuzz']
genericndkbuild None    
    depends: [('python2', 'python3', 'python3crystax')]
    conflicts: ['sdl2', 'pygame', 'sdl']
gevent       1.3.7   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'librt', 'greenlet']
gevent-websocket 0.9.5   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
greenlet     0.4.15  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
groestlcoin_hash 1.0.1   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
harfbuzz     0.9.40  
    depends: []
hostpython2  2.7.15  
    depends: []
    conflicts: ['hostpython3', 'hostpython3crystax', 'hostpython2legacy']
hostpython2legacy 2.7.2   
    depends: []
    conflicts: ['hostpython2', 'hostpython3', 'hostpython3crystax']
hostpython3  3.7.1   
    depends: []
    conflicts: ['hostpython2', 'hostpython3crystax']
hostpython3crystax auto    
    depends: []
    conflicts: ['hostpython2']
icu4c        57.1    
    depends: [('hostpython2', 'hostpython3')]
idna         2.8     
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
ifaddrs      8f9a87c 
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'hostpython3')]
ipaddress    1.0.22  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
jedi         v0.9.0  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3crystax', 'python3')]
jpeg         2.0.1   
    depends: []
kivent_core  master  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivy']
kivent_cymunk None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivent_core', 'cymunk']
kivent_particles None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivent_core']
kivent_polygen None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivent_core']
kivy         1.10.1  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('sdl2', 'pygame'), 'pyjnius']
kiwisolver   0.1.3   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'python2', 'setuptools']
leveldb      1.18    
    depends: []
    optional depends: ['snappy']
libcurl      7.55.1  
    depends: ['openssl']
libexpat     master  
    depends: []
libffi       3.2.1   
    depends: []
libgeos      3.5     
    depends: []
libglob      0.0.1   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'hostpython3')]
libiconv     1.15    
    depends: []
libmysqlclient master  
    depends: []
libnacl      1.4.4   
    depends: ['libsodium', ('hostpython2', 'hostpython3'), 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
libogg       1.3.3   
    depends: []
libpq        9.5.3   
    depends: []
librt        None    
    depends: []
libsecp256k1 None    
    depends: []
libshine     c72aba9031bde18a0995e7c01c9b53f2e08a0e46
    depends: []
libsodium    1.0.16  
    depends: []
libtorrent   1_2_0   
    depends: ['boost']
    optional depends: ['openssl']
libtribler   devel   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'apsw', 'openssl', 'ffmpeg', 'libsodium', 'netifaces', 'pyleveldb', 'cryptography', 'libtorrent', 'm2crypto', 'pil', 'twisted', 'pycrypto']
libvorbis    1.3.6   
    depends: []
    optional depends: ['libogg']
libx264      x264-snapshot-20171218-2245-stable
    depends: []
libxml2      2.9.8   
    depends: []
libxslt      1.1.32  
    depends: ['libxml2']
libzbar      0.10    
    depends: ['libiconv']
libzmq       4.1.4   
    depends: []
lxml         4.2.5   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'libxslt', 'librt', 'libxml2', 'setuptools']
m2crypto     0.30.1  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'openssl', 'setuptools']
msgpack-python 0.4.7   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
mysqldb      1.2.5   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'libmysqlclient', 'setuptools']
netifaces    0.10.7  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools']
numpy        1.15.1  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3', 'python3crystax')]
omemo        0.10.3  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'cryptography', 'x3dh', 'setuptools']
omemo-backend-signal 0.2.2   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'omemo', 'cryptography', 'x3dh', 'hkdf==0.0.3', 'DoubleRatchet', 'protobuf_cpp', 'setuptools']
openal       1.18.2  
    depends: []
opencv       2.4.10.1
    depends: ['numpy']
Traceback (most recent call last):
  File "/home/tc/PycharmProjects/pyos/venv-pym/bin/p4a", line 11, in <module>
    load_entry_point('python-for-android==0.7.0', 'console_scripts', 'p4a')()
  File "/home/tc/PycharmProjects/pyos/venv-pym/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 1051, in main
    ToolchainCL()
  File "/home/tc/PycharmProjects/pyos/venv-pym/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 560, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/tc/PycharmProjects/pyos/venv-pym/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 624, in recipes
    version = str(recipe.version)
  File "/home/tc/PycharmProjects/pyos/venv-pym/lib/python3.6/site-packages/pythonforandroid/recipe.py", line 108, in version
    return environ.get(key, self._version)
  File "/home/tc/PycharmProjects/pyos/venv-pym/lib/python3.6/site-packages/pythonforandroid/recipes/openssl/__init__.py", line 67, in version
    if self.use_legacy:
  File "/home/tc/PycharmProjects/pyos/venv-pym/lib/python3.6/site-packages/pythonforandroid/recipes/openssl/__init__.py", line 62, in use_legacy
    return any([i for i in ('python2legacy', 'python3crystax') if
  File "/home/tc/PycharmProjects/pyos/venv-pym/lib/python3.6/site-packages/pythonforandroid/recipes/openssl/__init__.py", line 63, in <listcomp>
    i in self.ctx.recipe_build_order])
TypeError: argument of type 'NoneType' is not iterable
@AndreMiras
Copy link
Member

Thanks for the bug report.

I installed python-for-androidusing the master branch from github

I'm curious about this statement. Because I can definitely reproduce the exception on the last release, but definitely not on master. See my debug session below:

[andre:/tmp/trash] [venv] 1 $ pip install --upgrade python-for-android==0.7.0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [28/608]
Collecting python-for-android==0.7.0
Requirement already satisfied, skipping upgrade: sh>=1.10; sys_platform != "nt" in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.0) (1.12.14)
Requirement already satisfied, skipping upgrade: colorama>=0.3.3 in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.0) (0.4.1)
Requirement already satisfied, skipping upgrade: jinja2 in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.0) (2.10)
Requirement already satisfied, skipping upgrade: appdirs in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.0) (1.4.3)
Requirement already satisfied, skipping upgrade: six in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.0) (1.12.0)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ./venv/lib/python3.6/site-packages (from jinja2->python-for-android==0.7.0) (1.1.1)
Installing collected packages: python-for-android
  Found existing installation: python-for-android 0.7.1
    Uninstalling python-for-android-0.7.1:
      Successfully uninstalled python-for-android-0.7.1
Successfully installed python-for-android-0.7.0
[andre:/tmp/trash] [venv] 2s $ p4a recipes
Pillow       5.2.0   
    depends: ['setuptools', 'jpeg', 'png', 'freetype', ('python2', 'python2legacy', 'python3', 'python3crystax')]
android      None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('pygame', 'sdl2', 'genericndkbuild'), 'pyjnius']
apsw         3.15.0-r1
    depends: ['setuptools', 'sqlite3', ('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3')]
atom         0.3.10  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
audiostream  master  
    depends: [('sdl', 'sdl2'), ('python2', 'python2legacy', 'python3', 'python3crystax'), 'pyjnius', ('python2', 'python3')]
babel        2.2.0   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'pytz']
boost        1.68.0  
    depends: [('python2', 'python3')]
This is a broken recipe, not a real one!
brokenrecipe None    
    depends: []
cdecimal     2.3     
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
cffi         1.11.5  
    depends: ['libffi', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'pycparser']
cherrypy     5.1.0   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'hostpython2']
coverage     4.1     
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'hostpython3')]
cryptography 2.4.2   
    depends: ['enum34', 'ipaddress', 'setuptools', 'cffi', 'six', 'openssl', 'asn1crypto', 'idna', ('python2', 'python2legacy', 'python3', 'python3crystax')]
cymunk       master  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3crystax', 'python3')]
dateutil     2.6.0   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
decorator    4.2.1   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
doubleratchet 0.4.0   
    depends: ['cryptography', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
enaml        0.9.8   
    depends: ['setuptools', 'atom', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'kiwisolver']
enum34       1.1.3   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ethash       None    
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
evdev        v0.4.7  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
feedparser   5.2.1   
    depends: [('hostpython2', 'python3crystax'), 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ffmpeg       3.4.1   
    depends: ['sdl2']
ffpyplayer   6f7568b498715c2da88f061ebad082a042514923
    depends: ['sdl2', ('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3'), 'ffmpeg']
    optional depends: ['openssl', 'ffpyplayer_codecs']
ffpyplayer_codecs None    
    depends: ['libshine', 'libx264']
flask        0.10.1  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'genericndkbuild', ('python2', 'python3', 'python3crystax')]
fontconfig   really_old
    depends: ['sdl2']
freetype     2.5.5   
    depends: ['harfbuzz']
genericndkbuild None    
    depends: [('python2', 'python3', 'python3crystax')]
    conflicts: ['sdl2', 'pygame', 'sdl']
gevent       1.3.7   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'greenlet', 'librt']
gevent-websocket 0.9.5   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
greenlet     0.4.15  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
groestlcoin_hash 1.0.1   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
harfbuzz     0.9.40  
    depends: []
hostpython2  2.7.15  
    depends: []
    conflicts: ['hostpython3', 'hostpython3crystax', 'hostpython2legacy']
hostpython2legacy 2.7.2   
    depends: []
    conflicts: ['hostpython2', 'hostpython3', 'hostpython3crystax']
hostpython3  3.7.1   
    depends: []
    conflicts: ['hostpython2', 'hostpython3crystax']
hostpython3crystax auto    
    depends: []
    conflicts: ['hostpython2']
icu4c        57.1    
    depends: [('hostpython2', 'hostpython3')]
idna         2.8     
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ifaddrs      8f9a87c 
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'hostpython3')]
ipaddress    1.0.22  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
jedi         v0.9.0  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3crystax', 'python3')]
jpeg         2.0.1   
    depends: []
kivent_core  master  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivy']
kivent_cymunk None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivent_core', 'cymunk']
kivent_particles None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivent_core']
kivent_polygen None    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'kivent_core']
kivy         1.10.1  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('sdl2', 'pygame'), 'pyjnius']
kiwisolver   0.1.3   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'python2']
leveldb      1.18    
    depends: []
    optional depends: ['snappy']
libcurl      7.55.1  
    depends: ['openssl']
libexpat     master  
    depends: []
libffi       3.2.1   
    depends: []
libgeos      3.5     
    depends: []
libglob      0.0.1   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'hostpython3')]
libiconv     1.15    
    depends: []
libmysqlclient master  
    depends: []
libnacl      1.4.4   
    depends: ['setuptools', 'libsodium', ('python2', 'python2legacy', 'python3', 'python3crystax'), ('hostpython2', 'hostpython3')]
libogg       1.3.3   
    depends: []
libpq        9.5.3   
    depends: []
librt        None    
    depends: []
libsecp256k1 None    
    depends: []
libshine     c72aba9031bde18a0995e7c01c9b53f2e08a0e46
    depends: []
libsodium    1.0.16  
    depends: []
libtorrent   1_2_0   
    depends: ['boost']
    optional depends: ['openssl']
libtribler   devel   
    depends: ['twisted', 'libtorrent', 'pil', 'm2crypto', 'pyleveldb', 'apsw', 'libsodium', 'openssl', 'cryptography', 'netifaces', 'pycrypto', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'ffmpeg']
libvorbis    1.3.6   
    depends: []
    optional depends: ['libogg']
libx264      x264-snapshot-20171218-2245-stable
    depends: []
libxml2      2.9.8   
    depends: []
libxslt      1.1.32  
    depends: ['libxml2']
libzbar      0.10    
    depends: ['libiconv']
libzmq       4.1.4   
    depends: []
lxml         4.2.5   
    depends: ['setuptools', 'librt', 'libxslt', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'libxml2']
m2crypto     0.30.1  
    depends: ['openssl', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
msgpack-python 0.4.7   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
mysqldb      1.2.5   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'libmysqlclient']
netifaces    0.10.7  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
numpy        1.15.1  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3', 'python3crystax')]
omemo        0.10.3  
    depends: ['cryptography', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'x3dh']
omemo-backend-signal 0.2.2   
    depends: ['setuptools', 'x3dh', 'omemo', 'cryptography', 'hkdf==0.0.3', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'protobuf_cpp', 'DoubleRatchet']
openal       1.18.2  
    depends: []
opencv       2.4.10.1
    depends: ['numpy']
Traceback (most recent call last):
  File "/tmp/trash/venv/bin/p4a", line 10, in <module>
    sys.exit(main())
  File "/tmp/trash/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 1051, in main
    ToolchainCL()
  File "/tmp/trash/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 560, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/tmp/trash/venv/lib/python3.6/site-packages/pythonforandroid/toolchain.py", line 624, in recipes
    version = str(recipe.version)
  File "/tmp/trash/venv/lib/python3.6/site-packages/pythonforandroid/recipe.py", line 108, in version
    return environ.get(key, self._version)
  File "/tmp/trash/venv/lib/python3.6/site-packages/pythonforandroid/recipes/openssl/__init__.py", line 67, in version
    if self.use_legacy:
  File "/tmp/trash/venv/lib/python3.6/site-packages/pythonforandroid/recipes/openssl/__init__.py", line 62, in use_legacy
    return any([i for i in ('python2legacy', 'python3crystax') if
  File "/tmp/trash/venv/lib/python3.6/site-packages/pythonforandroid/recipes/openssl/__init__.py", line 63, in <listcomp>
    i in self.ctx.recipe_build_order])
TypeError: argument of type 'NoneType' is not iterable
[andre:/tmp/trash] [venv] $

But with last master commit f16a665 it's working fine, see debug session below:

[andre:/tmp/trash] [venv] 1 $ pip install --upgrade https://github.com/kivy/python-for-android/archive/f16a665.zip
Collecting https://github.com/kivy/python-for-android/archive/f16a665.zip
  Downloading https://github.com/kivy/python-for-android/archive/f16a665.zip
     | 13.2MB 7.9MB/s
Requirement already satisfied, skipping upgrade: appdirs in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.1) (1.4.3)
Requirement already satisfied, skipping upgrade: colorama>=0.3.3 in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.1) (0.4.1)
Requirement already satisfied, skipping upgrade: jinja2 in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.1) (2.10)
Requirement already satisfied, skipping upgrade: six in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.1) (1.12.0)
Requirement already satisfied, skipping upgrade: sh>=1.10 in ./venv/lib/python3.6/site-packages (from python-for-android==0.7.1) (1.12.14)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ./venv/lib/python3.6/site-packages (from jinja2->python-for-android==0.7.1) (1.1.1)
Building wheels for collected packages: python-for-android
  Building wheel for python-for-android (setup.py) ... done
  Stored in directory: /tmp/pip-ephem-wheel-cache-ol7msxsz/wheels/aa/ba/28/009b1a661acf5b15dd7b61df94293f808078a96efb4e0a00b6
Successfully built python-for-android
Installing collected packages: python-for-android
  Found existing installation: python-for-android 0.7.0
    Uninstalling python-for-android-0.7.0:
      Successfully uninstalled python-for-android-0.7.0
Successfully installed python-for-android-0.7.1
[andre:/tmp/trash] [venv] 7s $ p4a recipes
Pillow       5.2.0   
    depends: ['freetype', 'png', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'jpeg']
android      None    
    depends: ['pyjnius', ('pygame', 'sdl2', 'genericndkbuild'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
apsw         3.15.0-r1
    depends: ['sqlite3', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3')]
atom         0.3.10  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
audiostream  master  
    depends: ['pyjnius', ('sdl', 'sdl2'), ('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3')]
babel        2.2.0   
    depends: ['pytz', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
boost        1.68.0  
    depends: [('python2', 'python3')]
This is a broken recipe, not a real one!
brokenrecipe None    
    depends: []
cdecimal     2.3     
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
cffi         1.11.5  
    depends: ['pycparser', 'setuptools', 'libffi', ('python2', 'python2legacy', 'python3', 'python3crystax')]
cherrypy     5.1.0   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
coverage     4.1     
    depends: ['setuptools', ('hostpython2', 'hostpython3'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
cryptography 2.6.1   
    depends: ['cffi', 'enum34', 'openssl', 'idna', 'asn1crypto', 'six', 'ipaddress', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
cymunk       master  
    depends: [('python2', 'python3crystax', 'python3'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
dateutil     2.6.0   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
decorator    4.2.1   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
enaml        0.9.8   
    depends: ['kiwisolver', 'atom', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
enum34       1.1.6   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ethash       None    
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
evdev        v0.4.7  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
feedparser   5.2.1   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ffmpeg       3.4.5   
    depends: ['sdl2']
ffpyplayer   6f7568b498715c2da88f061ebad082a042514923
    depends: ['sdl2', 'ffmpeg', ('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3')]
    optional depends: ['openssl', 'ffpyplayer_codecs']
ffpyplayer_codecs None    
    depends: ['libshine', 'libx264']
flask        0.10.1  
    depends: ['setuptools', ('python2', 'python3', 'python3crystax'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
fontconfig   really_old
    depends: ['sdl2']
freetype     2.5.5   
    depends: ['harfbuzz']
genericndkbuild None    
    depends: [('python2', 'python3', 'python3crystax')]
    conflicts: ['sdl2', 'pygame', 'sdl']
gevent       1.4.0   
    depends: ['greenlet', 'librt', ('python2', 'python2legacy', 'python3', 'python3crystax')]
gevent-websocket 0.9.5   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
greenlet     0.4.15  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
groestlcoin_hash 1.0.1   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
harfbuzz     0.9.40  
    depends: []
hostpython2  2.7.15  
    depends: []
    conflicts: ['hostpython3', 'hostpython3crystax', 'hostpython2legacy']
hostpython2legacy 2.7.2   
    depends: []
    conflicts: ['hostpython2', 'hostpython3', 'hostpython3crystax']
hostpython3  3.7.1   
    depends: []
    conflicts: ['hostpython2', 'hostpython3crystax']
hostpython3crystax auto    
    depends: []
    conflicts: ['hostpython2']
icu4c        57.1    
    depends: [('hostpython2', 'hostpython3')]
idna         2.8     
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ifaddrs      8f9a87c 
    depends: [('hostpython2', 'hostpython3'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
ipaddress    1.0.22  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
jedi         v0.9.0  
    depends: [('python2', 'python3crystax', 'python3'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
jpeg         2.0.1   
    depends: []
kivy         c4d6894 
    depends: [('sdl2', 'pygame'), 'pyjnius', ('python2', 'python2legacy', 'python3', 'python3crystax')]
kiwisolver   0.1.3   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
leveldb      1.18    
    depends: []
    optional depends: ['snappy']
libcurl      7.55.1  
    depends: ['openssl']
libexpat     master  
    depends: []
libffi       3.2.1   
    depends: []
libgeos      3.5     
    depends: []
libglob      0.0.1   
    depends: [('hostpython2', 'hostpython3'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
libiconv     1.15    
    depends: []
libmysqlclient master  
    depends: []
libnacl      1.4.4   
    depends: ['libsodium', 'setuptools', ('hostpython2', 'hostpython3'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
libogg       1.3.3   
    depends: []
libpq        9.5.3   
    depends: []
librt        None    
    depends: []
libsecp256k1 None    
    depends: []
libshine     c72aba9031bde18a0995e7c01c9b53f2e08a0e46
    depends: []
libsodium    1.0.16  
    depends: []
libtorrent   1_2_0   
    depends: ['boost']
    optional depends: ['openssl']
libtribler   devel   
    depends: ['apsw', 'netifaces', 'pil', 'openssl', 'twisted', 'ffmpeg', 'pycrypto', 'cryptography', 'libtorrent', 'pyleveldb', 'libsodium', 'm2crypto', ('python2', 'python2legacy', 'python3', 'python3crystax')]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [6/946]
    conflicts: ['python3']
libvorbis    1.3.6   
    depends: []
    optional depends: ['libogg']
libx264      x264-snapshot-20171218-2245-stable
    depends: []
libxml2      2.9.8   
    depends: []
libxslt      1.1.32  
    depends: ['libxml2']
libzbar      0.10    
    depends: ['libiconv']
libzmq       4.1.4   
    depends: []
lxml         4.2.5   
    depends: ['libxml2', 'libxslt', 'setuptools', 'librt', ('python2', 'python2legacy', 'python3', 'python3crystax')]
m2crypto     0.30.1  
    depends: ['openssl', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
msgpack-python 0.4.7   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
mysqldb      1.2.5   
    depends: ['setuptools', 'libmysqlclient', ('python2', 'python2legacy', 'python3', 'python3crystax')]
netifaces    0.10.9  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
numpy        1.15.1  
    depends: [('python2', 'python3', 'python3crystax'), ('python2', 'python2legacy', 'python3', 'python3crystax')]
omemo        0.10.3  
    depends: ['setuptools', 'x3dh', 'cryptography', ('python2', 'python2legacy', 'python3', 'python3crystax')]
omemo-backend-signal 0.2.2   
    depends: ['protobuf_cpp', 'omemo', 'DoubleRatchet', 'cryptography', 'hkdf==0.0.3', 'setuptools', 'x3dh', ('python2', 'python2legacy', 'python3', 'python3crystax')]
openal       1.18.2  
    depends: []
opencv       4.0.1   
    depends: ['numpy']
openssl      1.1     
    depends: []
pbkdf2       None    
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pil          1.1.7   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools', 'png', 'jpeg']
    optional depends: ['freetype']
png          b43b4c6 
    depends: []
preppy       27b7085 
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
protobuf_cpp 3.6.1   
    depends: ['setuptools', 'cffi', ('python2', 'python2legacy', 'python3', 'python3crystax')]
psycopg2     latest  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'libpq']
pyaml        15.8.2  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyasn1       0.4.5   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
pycparser    2.14    
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pycrypto     2.7a1   
    depends: ['openssl', ('python2', 'python2legacy', 'python3', 'python3crystax'), ('python2', 'python3')]
pycryptodome 3.6.3   
    depends: ['setuptools', 'cffi', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyethereum   v1.6.1  
    depends: ['pycryptodome', 'pysha3', 'scrypt', 'setuptools', 'ethash', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pygame       1.9.1   
    depends: ['python2legacy', 'sdl']
    conflicts: ['sdl2']
pygame_bootstrap_components master  
    depends: []
pyicu        1.9.2   
    depends: ['icu', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyjnius      6553ad4 
    depends: [('genericndkbuild', 'sdl2', 'sdl'), 'six', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyleveldb    0.193   
    depends: [('hostpython2', 'hostpython3'), 'snappy', 'leveldb', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pymunk       5.3.2   
    depends: ['setuptools', 'cffi', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pynacl       1.3.0   
    depends: [('hostpython2', 'hostpython3'), 'cffi', 'six', 'libsodium', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyogg        0.6.4a1 
    depends: ['setuptools', 'libogg', 'libvorbis', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyopenal     0.7.3a1 
    depends: ['numpy', 'setuptools', 'openal', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyopenssl    19.0.0  
    depends: ['openssl', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyproj       1.9.5.1 
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyrxp        2a02cecc87b9
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
pysdl2       0.9.3   
    depends: ['sdl2', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pysha3       1.0.2   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
python2      2.7.15  
    depends: ['hostpython2']
    conflicts: ['python3crystax', 'python3', 'python2legacy']
    optional depends: ['sqlite3', 'libffi', 'openssl']
python2legacy 2.7.2   
    depends: ['hostpython2legacy']
    conflicts: ['python3', 'python3crystax', 'python2']
    optional depends: ['openssl', 'sqlite3']
python3      3.7.1   
    depends: ['hostpython3', 'sqlite3', 'openssl', 'libffi']
    conflicts: ['python3crystax', 'python2', 'python2legacy']
    optional depends: ['sqlite3', 'libffi', 'openssl']
python3crystax 3.6     
    depends: ['hostpython3crystax']
    conflicts: ['python3', 'python2', 'python2legacy']
pytz         2015.7  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
pyusb        1.0.0b1 
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
pyyaml       3.12    
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
pyzbar       0.1.7   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools', 'libzbar']
pyzmq        master  
    depends: ['libzmq', ('python2', 'python2legacy', 'python3', 'python3crystax')]
regex        2017.07.28
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
reportlab    c088826211ca
    depends: ['freetype', ('python2', 'python2legacy', 'python3', 'python3crystax')]
requests     2.13.0  
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ruamel.yaml  0.15.77 
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
scrypt       0.8.6   
    depends: ['openssl', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
sdl          1.2.14  
    depends: ['python2legacy', 'pygame_bootstrap_components']
    conflicts: ['sdl2']
sdl2         2.0.9   
    depends: ['sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
    conflicts: ['sdl', 'pygame', 'pygame_bootstrap_components']
sdl2_image   2.0.4   
    depends: []
sdl2_mixer   2.0.1   
    depends: []
sdl2_ttf     2.0.14  
    depends: []
secp256k1    0.13.2.4
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'cffi', 'openssl', ('hostpython3', 'hostpython2', 'hostpython3crystax'), 'libffi', 'setuptools', ('python2', 'python3', 'python3crystax'), 'libsecp256k1']
setuptools   40.0.0  
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
shapely      1.5     
    depends: ['libgeos', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
simple-crypt 4.1.7   
    depends: ['pycrypto', ('python2', 'python2legacy', 'python3', 'python3crystax')]
six          1.9.0   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
snappy       1.1.3   
    depends: []
spine        0.5.1   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
sqlalchemy   1.0.9   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
sqlite3      3.15.1  
    depends: []
storm        0.20    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
sympy        1.1.1   
    depends: ['mpmath', ('python2', 'python2legacy', 'python3', 'python3crystax')]
twisted      17.9.0  
    depends: ['zope_interface', 'incremental', 'constantly', 'setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
ujson        1.35    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
vispy        0.4.0   
    depends: ['numpy', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'pysdl2']
vlc          3.0.0   
    depends: []
websocket-client 0.40.0  
    depends: ['android', 'pyjnius', 'cryptography', 'pyasn1', 'pyopenssl']
wsaccel      0.6.2   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
x3dh         0.5.3   
    depends: ['setuptools', 'xeddsa', 'cryptography', ('python2', 'python2legacy', 'python3', 'python3crystax')]
xeddsa       0.4.4   
    depends: ['pynacl', 'setuptools', 'cffi', ('python2', 'python2legacy', 'python3', 'python3crystax')]
zbar         0.10    
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools', 'libzbar']
zbarlight    2.1     
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax'), 'setuptools', 'libzbar']
zeroconf     0.17.4  
    depends: ['setuptools', 'six', ('python2', 'python2legacy', 'python3', 'python3crystax'), 'enum34']
zope         4.1.3   
    depends: [('python2', 'python2legacy', 'python3', 'python3crystax')]
zope_interface 4.1.3   
    depends: ['setuptools', ('python2', 'python2legacy', 'python3', 'python3crystax')]
[andre:/tmp/trash] [venv] $

Also from your stacktrace I see load_entry_point('python-for-android==0.7.0', 'console_scripts', 'p4a') which clearly show last release but not master.
Please try on master then

@tcdude
Copy link
Contributor Author

tcdude commented Mar 24, 2019

My mistake! Sorry for the troubles, on master it definitely works!

@Passengerss
Copy link

My mistake! Sorry for the troubles, on master it definitely works!

Sorry,this issue closed 8 days ago, but this problem, It happened again .I used the
pip install python-for-android . Have you published it ? no offense

@AndreMiras
Copy link
Member

We don't publish that often yet, so the fix is not on pypi, you need to install from master, e.g.

pip install https://github.com/kivy/python-for-android/archive/16d4d29.zip

@Passengerss
Copy link

We don't publish that often yet, so the fix is not on pypi, you need to install from master, e.g.

pip install https://github.com/kivy/python-for-android/archive/16d4d29.zip

Thanks, It do works

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

3 participants