Skip to content

Kivy builds failing #861

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

Closed
nocarryr opened this issue Aug 5, 2016 · 4 comments
Closed

Kivy builds failing #861

nocarryr opened this issue Aug 5, 2016 · 4 comments

Comments

@nocarryr
Copy link
Contributor

nocarryr commented Aug 5, 2016

Builds against kivy's current master branch (as of e0c77c8) are failing with tracebacks similar to this:

08-05 09:09:00.111 32532 32577 I python  : [WARNING] [Config      ] Older configuration version detected (0 instead of 16)
08-05 09:09:00.111 32532 32577 I python  : [WARNING] [Config      ] Upgrading configuration in progress.
08-05 09:09:00.121 32532 32577 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/org.example.rtlsdrtest/files/app/.kivy/logs/kivy_16-08-05_0.txt
08-05 09:09:00.121 32532 32577 I python  : [INFO   ] [Kivy        ] v1.9.2-dev0
08-05 09:09:00.121 32532 32577 I python  : [INFO   ] [Python      ] v2.7.2 (default, Aug  5 2016, 09:06:28)
08-05 09:09:00.121 32532 32577 I python  : [GCC 4.9.x 20150123 (prerelease)]
08-05 09:09:00.141 32532 32577 I python  :  Traceback (most recent call last):
08-05 09:09:00.141 32532 32577 I python  :    File "main.py", line 8, in <module>
08-05 09:09:00.141 32532 32577 I python  :      from kivy.app import App
08-05 09:09:00.141 32532 32577 I python  :    File "/data/user/0/org.example.rtlsdrtest/files/app/lib/python2.7/site-packages/kivy/app.py", line 319, in <module>
08-05 09:09:00.141 32532 32577 I python  :      from kivy.base import runTouchApp, stopTouchApp
08-05 09:09:00.141 32532 32577 I python  :    File "/data/user/0/org.example.rtlsdrtest/files/app/lib/python2.7/site-packages/kivy/base.py", line 29, in <module>
08-05 09:09:00.141 32532 32577 I python  :      from kivy.clock import Clock
08-05 09:09:00.141 32532 32577 I python  :    File "/data/user/0/org.example.rtlsdrtest/files/app/lib/python2.7/site-packages/kivy/clock.py", line 364, in <module>
08-05 09:09:00.141 32532 32577 I python  :      from kivy._clock import CyClockBase, ClockEvent, FreeClockEvent, \
08-05 09:09:00.141 32532 32577 I python  :  ImportError: cannot import name FreeClockEvent
08-05 09:09:00.161 32532 32577 I python  : Python for android ended.

Since it's related to kivy.clock, I tried setting the version in the kivy recipe to one before this PR and all seemed well.

I realize this should probably be an issue opened in the kivy repo, but the ImportError only occurs in p4a builds (tested current master on desktop).

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@linziwen
Copy link

linziwen commented Aug 6, 2016

i also have this issue and my logcat show as follows:
08-06 10:51:26.836 4276 4303 I python : ('Android kivy bootstrap done. name is', 'main')
08-06 10:51:26.861 4276 4303 I python : ['/data/user/0/org.example.mystb/files/app/lib/python2.7/site-packages', '/data/user/0/org.example.mystb/files/app/lib/site-python']
08-06 10:51:26.861 4276 4303 I python : AND: Ran string
08-06 10:51:26.861 4276 4303 I python : Run user program, change dir and execute entrypoint
08-06 10:51:26.861 4276 4303 I python : main.py
08-06 10:51:26.942 4276 4303 I python : [INFO ] [Logger ] Record log in /data/user/0/org.example.mystb/files/app/.kivy/logs/kivy_16-08-06_1.txt
08-06 10:51:26.944 4276 4303 I python : [INFO ] [Kivy ] v1.9.2-dev0
08-06 10:51:26.944 4276 4303 I python : [INFO ] [Python ] v2.7.2 (default, Aug 6 2016, 10:47:53)
08-06 10:51:26.944 4276 4303 I python : [GCC 4.9.x 20150123 (prerelease)]
08-06 10:51:26.950 4276 4303 I python : Traceback (most recent call last):
08-06 10:51:26.950 4276 4303 I python : File "main.py", line 3, in
08-06 10:51:26.951 4276 4303 I python : from kivy.app import App
08-06 10:51:26.951 4276 4303 I python : File "/data/user/0/org.example.mystb/files/app/lib/python2.7/site-packages/kivy/app.py", line 319, in
08-06 10:51:26.951 4276 4303 I python : from kivy.base import runTouchApp, stopTouchApp
08-06 10:51:26.951 4276 4303 I python : File "/data/user/0/org.example.mystb/files/app/lib/python2.7/site-packages/kivy/base.py", line 29, in
08-06 10:51:26.952 4276 4303 I python : from kivy.clock import Clock
08-06 10:51:26.952 4276 4303 I python : File "/data/user/0/org.example.mystb/files/app/lib/python2.7/site-packages/kivy/clock.py", line 364, in
08-06 10:51:26.953 4276 4303 I python : from kivy._clock import CyClockBase, ClockEvent, FreeClockEvent,
08-06 10:51:26.953 4276 4303 I python : ImportError: dlopen failed: file offset for the library "/data/user/0/org.example.mystb/files/app/lib/python2.7/site-packages/kivy/_clock.so" >= file size: 0 >= 0
08-06 10:51:26.961 4276 4303 I python : Python for android ended.

i found that when i use this "pip install python-for-android" to install python-for-android it would ok, while when i use "pip install git+https://github.com/kivy/python-for-android.git" to install it would reproduce this issue

@inclement
Copy link
Member

I can reproduce this now, but not sure what's causing it. Will investigate.

@inclement
Copy link
Member

I think I've just fixed this, would either of you be able to test with the master branch?

There may still be problems with bootstraps other than SDL2, I will fix these tomorrow (but wanted to get sdl2 working ASAP).

@AndreMiras
Copy link
Member

Closing after no activity and apparently was fixed by @inclement.
Feel free to reopen if it's still an issue on master.

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

4 participants