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

ImportError: No module named pygments #216

Closed
consultit opened this issue Jul 18, 2015 · 7 comments
Closed

ImportError: No module named pygments #216

consultit opened this issue Jul 18, 2015 · 7 comments

Comments

@consultit
Copy link

I'm new on kivy/buildozer sdk.
I'm just trying to run some of the examples from kivy source on my android phones.
After connecting phones, I use this command:

buildozer -v android debug deploy run logcat | grep -i python

but some examples ( demo/kivycatalog, demo/shadereditor) don't start on phones and debug console outputs something related to "missing" pygments module:

...
I/python  ( 4413):    File "/Projects/demo/kivycatalog/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/codeinput.py", line 37, in <module>
I/python  ( 4413):  ImportError: No module named pygments
I/python  ( 4413): Python for android ended.
...

I verified that pygments module is installed on my build system (debian jessie with both kivy and buildozer development versions), and these apps works fine on it.

@akshayaurora
Copy link
Member

requirements = kivy, pygments in buildozer.spec

@brentpicasso
Copy link
Contributor

I just ran into this myself - does adding pygments to the requirements list actually work?

I immediately get an error with this:

Available modules: android apsw audiostream bidi boost cherrypy c_igraph cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope

Remove directory and subdirectory /home/brent/git-projects/RaceCapture_App/.buildozer/applibs

Create directory /home/brent/git-projects/RaceCapture_App/.buildozer/applibs

Run 'virtualenv --python=python2.7 ./venv'

Cwd /home/brent/git-projects/RaceCapture_App/.buildozer

/bin/sh: 1: virtualenv: not found

Command failed: virtualenv --python=python2.7 ./venv

Buildozer failed to execute the last command

The error might be hidden in the log above this error

Please read the full log, and search for it before

raising an issue with buildozer itself.

In case of a bug report, please add a full log with log_level = 2

@brentpicasso
Copy link
Contributor

I seem to be on the latest version of buildozer. pygments is currently installed via pip, and app run from command line (linux)

@inclement
Copy link
Member

Apparently you don't have virtualenv installed. Install it and see if that works.

I did think it should check for virtualenv before getting this far, so maybe there's something else as well.

@brentpicasso
Copy link
Contributor

Seemed to get me further, now to figure out why it can't find the bbcode formatter... even though it seems to be packaged.

@brentpicasso
Copy link
Contributor

(thanks @inclement )

@brentpicasso
Copy link
Contributor

Yes, success. Github needs a thank you / gifting system :)

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