vatic icon indicating copy to clipboard operation
vatic copied to clipboard

ImportError: No module named vision

Open wizard00 opened this issue 9 years ago • 12 comments

This might be a noob question but after I setup apache2 and sql following README, I tried turkic command in vatic directory.

But no matter I try turkic setup --dabatase or turkic publish --offline or any turkic command All I got is this same error: Traceback (most recent call last): File "/usr/local/bin/turkic", line 5, in pkg_resources.run_script('turkic==0.2.5', 'turkic') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/turkic-0.2.5-py2.7.egg/EGG-INFO/scripts/turkic", line 12, in import cli File "/home/yufeiw/VATIC/vatic/cli.py", line 11, in from vision import Box ImportError: No module named vision

I am a newbie for python, but I think the code is looking file vision. Therefore I tried to copy vision from pyvision to vatic. It worked HOWEVER I run into another importError: File "/home/yufeiw/VATIC/vatic/vision/init.py", line 1, in from annotations import * ImportError: No module named annotations (I do find file annotations.pyx in the folder though)

It seems like moving files around is not the correct approach. What did I do wrong? and What should I do? Thanks

wizard00 avatar Jul 10 '15 23:07 wizard00

I am facing the exact same issue. Anyone has an idea?

psychosane avatar Aug 06 '15 08:08 psychosane

I am also facing the same issue. and I tried to install pyvision using :

$python setup.py build $sudo python setup.py install

nothing happend, and I tried to run python in the pyvision folder, when import vision, it has the same problem of no module named annotations.

yhzyhzyhz avatar Sep 15 '15 20:09 yhzyhzyhz

I tried this

https://github.com/cvondrick/vatic/issues/16

after using cython 0.20 it seems working and installed pyvision successfuly.

yhzyhzyhz avatar Sep 15 '15 20:09 yhzyhzyhz

As said by @yhzyhzyhz, it works when installing cython 0.20 then rebuilding and installing pyvision

sudo pip install cython==0.20
cd pyvision
sudo python setup.py build
sudo python setup.py install

iraadit avatar Oct 06 '16 09:10 iraadit

@iraadit I installed vision successful!

Installed /usr/local/lib/python2.7/dist-packages/pyvision-0.3.1-py2.7-linux-x86_64.egg Processing dependencies for pyvision==0.3.1 Finished processing dependencies for pyvision==0.3.1

But it's still worry.

import vision Traceback (most recent call last): File "", line 1, in File "vision/init.py", line 1, in from annotations import * ImportError: No module named annotations

Do you know other ways?

hkrds1996 avatar Nov 24 '16 14:11 hkrds1996

I am having the same issue trying to install Vatic. No module named vision

mjcorriere avatar Dec 21 '16 21:12 mjcorriere

@hukangrong were you able to solve the issue you had with ImportError: No module named annotations? I have the same issue and I see the problem is due to missing annotations.py file.

BhargavaRamM avatar Dec 30 '16 01:12 BhargavaRamM

@BhargavaRamM do you know what you need to use in your project? In my project, I skip this problem by compiling "features.pyx" and importing features model in my project. So I don't fix this problem.

hkrds1996 avatar Dec 30 '16 02:12 hkrds1996

@hukangrong I did the same thing you did. I compiled annotations.pyx file to create annotations.so. This resolved the ImportError. Thanks.

BhargavaRamM avatar Dec 30 '16 22:12 BhargavaRamM

@hukangrong I am having the same issue trying to install Vatic. How do you compiled annotation.pyx? Can you share your commands? Thanks

evgenykam avatar Feb 15 '17 22:02 evgenykam

Same thing here, ImportError: No module named vision.

AloshkaD avatar Feb 19 '17 00:02 AloshkaD

@evgenykam Sorry for too late to response. I give you the example of compiling features model. cython -a features.pyx gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing \ -I/usr/include/python2.7 -o features.so features.c

hkrds1996 avatar Feb 19 '17 14:02 hkrds1996