How to install pyvision on ubuntu 9.04

379 views
Skip to first unread message

Ranjith Kumar

unread,
Apr 5, 2010, 10:11:17 PM4/5/10
to pyvi...@googlegroups.com
Hi!
  Thanks for ur reply. But the issue is I have just downloaded the pyvision and i don`t konw to install it on ubuntu 9.04 and i tried unittests i got an error. Please write me the steps after the pyvision is downloaded and also tell me how to do unittest because i`m a newbie to this area.

This is error i get when i run the,

[Z-Warrior@goku FaceL]$ python FaceL.py
Traceback (most recent call last):
  File "FaceL.py", line 116, in <module>
    from pyvision.types.Video import Webcam
ImportError: No module named pyvision.types.Video

Thank you in advance,

Cheers
Ranjith

--
Cheers
Ranjith,

http://ranjith10z.wordpress.com

Tran Cao Thai

unread,
Apr 6, 2010, 12:01:42 AM4/6/10
to pyvi...@googlegroups.com
Obviously, you didnt set the project into your Python path. I think you should learn how to program in Python first and then use the pyvision

David Bolme

unread,
Apr 10, 2010, 9:50:58 AM4/10/10
to pyvi...@googlegroups.com
I think Tran is correct.  You probably forgot to add pyvision to your Python path.  The Mac OS X documentation is probably a good guide for installing PyVision on linux however you probably want to use ubuntu packages to install dependencies such as opencv and PIL.

Juan Manuel de Santiago Collada

unread,
Nov 23, 2014, 4:34:08 AM11/23/14
to pyvi...@googlegroups.com
Instead of setting a Python path, after trying this steps on Ubuntu 14.04, I was succesful.
This way I was able to run the provided examples in a Geany editor. Eclipse or VM are no longer needed. 

1) Get the contents under both folders called "src" from "pyvision-master.zip" and "OCOFToolset.zip" 

You will need to register here to gather OCOFToolset  from the author's site:
Take pyvision-master.zip from here:
Download and unzip both archives:

2) Locate the path where python stores the packages. 

In my case /usr/local/lib/python2.7/site-packages
Alternatively, by typing $ whereis python in a terminal command line, is a easy way to locate "site-packages" folder.

python: /usr/bin/python2.7-pyrexc /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python3.4 /usr/bin/python3.4m /usr/bin/python /etc/python2.7 /etc/python3.4 /etc/python /usr/lib/python2.7 /usr/lib/python3.4 /usr/bin/X11/python2.7-pyrexc /usr/bin/X11/python2.7-config /usr/bin/X11/python2.7 /usr/bin/X11/python3.4 /usr/bin/X11/python3.4m /usr/bin/X11/python /usr/local/lib/python2.7 /usr/local/lib/python3.4 /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz

3) Copy "pyvision" and "ocof" folders under "src" branch from respectively extracted folders "pyvision-master" and "OCOFToolset" 

4) Put above folders into your previously located "site-packages" folder.

Reply all
Reply to author
Forward
0 new messages