cvondrick / vatic

Efficiently Scaling Up Video Annotation with Crowdsourced Marketplaces. IJCV 2012
http://mit.edu/vondrick/vatic/
MIT License
603 stars 255 forks source link

ImportError: No module named vision #29

Open wizard00 opened 9 years ago

wizard00 commented 9 years ago

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

psychosane commented 9 years ago

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

yhzyhzyhz commented 9 years ago

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 commented 9 years ago

I tried this

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

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

iraadit commented 7 years ago

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
hkrds1996 commented 7 years ago

@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?

mjcorriere commented 7 years ago

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

BhargavaRamM commented 7 years ago

@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.

hkrds1996 commented 7 years ago

@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.

BhargavaRamM commented 7 years ago

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

evgenykam commented 7 years ago

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

AloshkaD commented 7 years ago

Same thing here, ImportError: No module named vision.

hkrds1996 commented 7 years ago

@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