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 sql #33

Closed
vapniks opened this issue Jan 6, 2015 · 2 comments
Closed

ImportError: No module named sql #33

vapniks opened this issue Jan 6, 2015 · 2 comments

Comments

@vapniks
Copy link

vapniks commented Jan 6, 2015

Here is the error I get when I try to run it on Ubuntu 12.04:

Traceback (most recent call last):
File "/usr/local/bin/pgcli", line 9, in
load_entry_point('pgcli==0.10.0', 'console_scripts', 'pgcli')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.7/dist-packages/pgcli/main.py", line 16, in
from pygments.lexers.sql import SqlLexer
ImportError: No module named sql

@amjith
Copy link
Member

amjith commented Jan 6, 2015

Looks like you have an older version of pygments installed. Can you try pip install -U pygments and try again?

I'll make sure to pin the version for dependent libraries. Thanks!

@vapniks
Copy link
Author

vapniks commented Jan 7, 2015

Yes, that fixed it thanks.

@vapniks vapniks closed this as completed Jan 7, 2015
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

2 participants