You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Jeune Asuncion <je...@bright.com> on 2013/04/11 06:18:22 UTC

ImportError after install but gone after logging in again

Dear *Pylucene*,

After following the instructions on how to install jcc, I fire up Python
and try to import jcc. However I get the following error:

Python 2.7.3 (default, Jul 24 2012, 11:41:40)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import jcc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "jcc/__init__.py", line 31, in <module>
    from jcc import _jcc
ImportError: cannot import name _jcc

However when I logout from my box and login again and do the same, there is
no more import error:

Python 2.7.3 (default, Jul 24 2012, 11:41:40)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import jcc
>>>

Any insight as to why this is happening?

Jeune