[Solved] Error Upgrading to Kivy 1.8.0




Assumption:
    Using VM provided by Kivy


Reference:
     https://groups.google.com/forum/#!topic/kivy-users/Y9BbIzYcbnI


Error:

kivy@kivy-VirtualBox:~/android/python-for-android$ python -c "from kivy.app import App"

[WARNING] [Config      ] Older configuration version detected (7 instead of 10)
[WARNING] [Config      ] Upgrading configuration in progress.
[INFO   ] [Logger      ] Record log in /home/kivy/.kivy/logs/kivy_14-06-20_0.txt
[INFO   ] Kivy v1.8.1-dev
[INFO   ] [Python      ] v2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/home/kivy/code/kivy/kivy/app.py", line 321, in <module>
     from kivy.base import runTouchApp, stopTouchApp
   File "/home/kivy/code/kivy/kivy/base.py", line 29, in <module>
     from kivy.event import EventDispatcher
   File "/home/kivy/code/kivy/kivy/event.py", line 8, in <module>
     import kivy._event
 ImportError: No module named _event
kivy@kivy-VirtualBox:~/android/python-for-android$


Fix:


  1. Download Kivy 1.8.0 and decompress it.
  2. go the kivy folder you just downloaded.
  3. Copy Makefile from /code/kivy/ to the new Kivy.
  4. sudo make force.
  5. change PYTHONPATH to the new location (using export command). (google environment variables for more info)


 

Comments

Popular Posts