Skip to content

Instantly share code, notes, and snippets.

@duaneking
Created November 22, 2014 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duaneking/afc3af18f25fea905faf to your computer and use it in GitHub Desktop.
Save duaneking/afc3af18f25fea905faf to your computer and use it in GitHub Desktop.
Ok so I was hoping tht pycharm would respect my virtialenv but apperently it did not.
Duanes-Air-4:crown Duane$ pip show cqlsh cqlengine six cassandra-driver
---
Name: cqlsh
Version: 4.1.1
Location: /Library/Python/2.7/site-packages
Requires: cql, simplejson, unittest2
---
Name: cqlengine
Version: 0.20.0
Location: /Library/Python/2.7/site-packages
Requires: cassandra-driver, six
---
Name: six
Version: 1.8.0
Location: /Library/Python/2.7/site-packages
Requires:
---
Name: cassandra-driver
Version: 2.1.2
Location: /Library/Python/2.7/site-packages
Requires: futures, six
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python /Users/Duane/wokspace/crown/crown.py
2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
Traceback (most recent call last):
File "/Users/Duane/wokspace/crown/crown.py", line 4, in <module>
import cqlengine # backend long term data store
File "/Library/Python/2.7/site-packages/cqlengine/__init__.py", line 7, in <module>
from cqlengine.models import Model
File "/Library/Python/2.7/site-packages/cqlengine/models.py", line 7, in <module>
from cqlengine.query import ModelQuerySet, DMLQuery, AbstractQueryableColumn
File "/Library/Python/2.7/site-packages/cqlengine/query.py", line 7, in <module>
from cqlengine.connection import execute
File "/Library/Python/2.7/site-packages/cqlengine/connection.py", line 6, in <module>
from cassandra.cluster import Cluster, NoHostAvailable
File "/Library/Python/2.7/site-packages/cassandra/cluster.py", line 47, in <module>
from cassandra.connection import ConnectionException, ConnectionShutdown
File "/Library/Python/2.7/site-packages/cassandra/connection.py", line 29, in <module>
from six.moves.queue import Queue, Empty # noqa
ImportError: No module named queue
Process finished with exit code 1
@duaneking
Copy link
Author

I hate pycharm when it does this thing where it just forgets to use a virtaulenv and defaults to the system install of python at random times..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment