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

Import Error #1

Open
swasheck opened this issue Apr 23, 2012 · 5 comments
Open

Import Error #1

swasheck opened this issue Apr 23, 2012 · 5 comments

Comments

@swasheck
Copy link

Hi. Thanks for your work on this project. I'm probably doing something wrong here so feel free to let me know where I've missed something.
Here are my steps:

virtualenv test_tika
cd test_tika
source bin/activate
pip install git+git://github.com/aptivate/jcc.git
pip install git+git://github.com/aptivate/python-tika.git

Up until this point I have no problems.

then:

python
import tika

renders :

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/{PATH}/test_tika/lib/python2.7/site-packages/tika/__init__.py", line 2, in <module>
    import os, _tika
ImportError: dynamic module does not define init function (init_tika)

This is on Arch Linux - 3.3.2-1-ARCH #1 SMP PREEMPT x86_64

Python 2.7.3

@mlambir
Copy link

mlambir commented Aug 28, 2012

Where you able to resolve this issue? I'm getting the same error.
I'd appreciate any pointers in the right direction.

@Bengt
Copy link

Bengt commented Sep 16, 2012

I ran into this, too on Fedora 17 (kernel 3.5.3-1.fc17.x86_64) with Python 2.7.3 and Java 1.7.0 .

@Bengt
Copy link

Bengt commented Sep 16, 2012

@mlambir have a look at the pull request I referenced, it fixes this issue for me.

@JoeJasinski
Copy link

@Bengt, thanks for putting that repo together. However, I'm using the branch from your repo, but also get the exact same error as above.

>>> import tika
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jjasinski/Sites/testhaystack/lib/python2.7/site-packages/tika-1.1-py2.7-linux-i686.egg/tika/__init__.py", line 2, in <module>
    import os, _tika
ImportError: dynamic module does not define init function (init_tika)

@JoeJasinski
Copy link

For some more information on my development environment, if it will help:

Python Version: Python 2.7.3
OS Version: Ubuntu Quantal
JCC Setup: JCC_JDK="/usr/lib/jvm/java-7-openjdk-i386/"

Confirm JCC is installed

>>> import jcc
>>> jcc
<module 'jcc' from '/home/jjasinski/Sites/testhaystack/lib/python2.7/site-packages/jcc/__init__.pyc'>
>>> jcc.CLASSPATH
'/home/jjasinski/Sites/testhaystack/lib/python2.7/site-packages/jcc/classes'

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