LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-15-2007, 12:37 AM   #1
weltercat
LQ Newbie
 
Registered: Dec 2006
Location: Seattle, Wa.
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Need help installing Tovid


Hello all
I am using Ubuntu 6.10 on Kernel 2.6.17.10 and I am trying to install Tovid. I am really anxious to see it work. I have been transcoding AVI files to MPG format and then using Qdvdauthor to make the VIDEO_TS files to burn to DVD. I have heard that Tovid will do this with a GUI front end.

I went to http://tovid.sourceforge.net/download/ubuntu/ and downloaded the script file and ran it

./installtovid.sh

here is what the script file says.

#!/bin/bash
echo "
Downloading and installing all dependencies for tovid.
"
sudo apt-get update && sudo apt-get install mplayer mencoder mjpegtools ffmpeg python python-dev python-wxgtk2.6 python-imaging imagemagick dvdauthor dvd+rw-tools vcdimager transcode sox normalize-audio txt2tags lsdvd python-cairo
cd
echo "
Downloading tovid.
"
wget -c http://tovid.sourceforge.net/downloa...jdong1_all.deb
echo "
Installing tovid.
"
sudo dpkg -i tovid_0.29-0jdong1_all.deb
cd
echo "
Downloading the tovid icon, the mkiso script, and the tovid menu entry.
"
wget -c http://images.wikia.com/tovid/images...Tovid_icon.png
wget -c http://tovid.sourceforge.net/downloa...l_script/mkiso
wget -c http://tovid.sourceforge.net/downloa.../tovid.desktop
echo "
Moving the tovid icon to the correct folder.
"
sudo mv Tovid_icon.png /usr/share/icons/
echo "
Moving the menu entry to the correct folder.
"
sudo mv tovid.desktop /usr/share/applications/
echo "
Giving the mkiso script executable permissions.
"
chmod +x mkiso
echo "
Moving the mkiso script to the correct folder.
"
sudo mv mkiso /usr/bin/
echo "
Removing debian package (not needed anymore).
"
rm tovid_0.29-0jdong1_all.deb
echo "
You have successfully installed tovid. If it is not in the menus, the command for the tovid GUI is: tovidgui"

It completed without errors and gave me the successfully installed message. The command “Tovid” showed up in my menu bar sure enough.

When I ran the application nothing happened so I tried the

“tovidgui” command and got the following error.

“Traceback (most recent call last):
File "/usr/local/bin/tovidgui", line 22, in ?
import wxversion
ImportError: No module named wxversion
There was an error importing the 'wx' libraries. The above
output should help you find what went wrong. Re-installing
wxPython 2.6 (or upgrading from wxPython 2.4 to 2.6) may
help. Consult the tovid homepage (tovid.org) for further
assistance.
Sorry, 'tovidgui' will not work.”

I checked out which version of python-wxversion through synaptic pakage manager and I have and I have python-wxversion 2.6.3.2.1.5.

I ran “cat /usr/local/bin/tovidgui” and got the following output.

“#! /usr/bin/env python

# tovid GUI
# ===============
# A wxPython frontend for the tovid suite
#
# Project homepage: http://tovid.org/
#
# This software is licensed under the GNU General Public License
# For the full text of the GNU GPL, see:
#
# http://www.gnu.org/copyleft/gpl.html
#
# No guarantees of any kind are associated with use of this software.
#

import sys
import traceback

# Try to import wx 2.6; print error if it's unavailable
try:
import wxversion
if wxversion.checkInstalled('2.6'):
wxversion.select('2.6')
else:
print "tovidgui requires wxPython 2.6; please install or upgrade wxPython."
sys.exit()
import wx
except ImportError:
traceback.print_exc()
print "There was an error importing the 'wx' libraries. The above"
print "output should help you find what went wrong. Re-installing"
print "wxPython 2.6 (or upgrading from wxPython 2.4 to 2.6) may"
print "help. Consult the tovid homepage (tovid.org) for further"
print "assistance."
print "Sorry, 'tovidgui' will not work."
sys.exit()

from libtovid.gui.frames import TovidFrame

TovidGUI = wx.PySimpleApp()
#frame = MiniEditorFrame(None, wx.ID_ANY, "tovid GUI")
frame = TovidFrame(None, wx.ID_ANY, "tovid GUI")
frame.Show(True)
TovidGUI.MainLoop()”

I hope this makes sense to someone and would appreciate anybodies help. I am truly stumped.
 
Old 01-15-2007, 12:52 PM   #2
Mac_North
LQ Newbie
 
Registered: Mar 2005
Location: Colorado
Distribution: debian
Posts: 15

Rep: Reputation: 0
Smile

Quote:
Originally Posted by weltercat
When I ran the application nothing happened so I tried the

“tovidgui” command and got the following error.

“Traceback (most recent call last):
File "/usr/local/bin/tovidgui", line 22, in ?
import wxversion
ImportError: No module named wxversion
There was an error importing the 'wx' libraries. The above
output should help you find what went wrong. Re-installing
wxPython 2.6 (or upgrading from wxPython 2.4 to 2.6) may
help. Consult the tovid homepage (tovid.org) for further
assistance.
Sorry, 'tovidgui' will not work.”

I checked out which version of python-wxversion through synaptic pakage manager and I have and I have python-wxversion 2.6.3.2.1.5.
Hi from tovid! I'm sorry you've had problems installing the gui. If you re-post your problem over at the tovid forums (www.createphpbb.com/tovid), you may get a better response. I'm not exactly sure why python cannot see your wxversion, but maybe someone over at the tovid forums has had a similar problem.

A simple test you can do:
  1. Start python: $ python
  2. Try to import wxversion: >>> import wxversion
  3. Watch for errors.
Maybe your python installation is a bit wonky?
 
Old 01-15-2007, 02:15 PM   #3
weltercat
LQ Newbie
 
Registered: Dec 2006
Location: Seattle, Wa.
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the help. I tried to post my problem over on the tovid forum but it was rejected since the detection system thought it was a hacking attempt. I was redirected to another forum and tried there as well but got the same reply. When I get home I will try your suggestions with the python commands. I have removed and reinstalled python as well but that doesn't mean it's still not a bit wonky.
 
Old 01-15-2007, 02:41 PM   #4
Mac_North
LQ Newbie
 
Registered: Mar 2005
Location: Colorado
Distribution: debian
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by weltercat
Thanks for the help. I tried to post my problem over on the tovid forum but it was rejected since the detection system thought it was a hacking attempt. I was redirected to another forum and tried there as well but got the same reply. When I get home I will try your suggestions with the python commands. I have removed and reinstalled python as well but that doesn't mean it's still not a bit wonky.
I bet the tovid forum said you were trying to post URLs, but since you had less than 5 posts it wouldn't let you. The folks at createphpbb have set that site-wide, so it's a bit of a 'shoganai' thing. There's a tread dedicated to under-five post posters; you can try bumping your count and reposting, or just look for the URLs in the paste.

So you've already removed and reinstalled python and nothing works better? Try that simple import to see if a regular python interpreter can find it. I don't think it will, but it's a starting point at least.

The other thing you can try is uninstalling tovid (sudo make uninstall in the source directory) and re-installing it in /usr (as opposed to /usr/local):

$ ./configure --prefix=/usr
$ sudo make install
$ tovidgui


Some distributions have a less-inclusive python installation and exclude /usr/local/lib/pythonM.m from the python search path (Gentoo and Fedora have been reported so far). You're not suffering from this, afaict, but maybe there's another small config change between *buntu and debian that makes it work on mine but not yours.
 
Old 01-15-2007, 09:39 PM   #5
weltercat
LQ Newbie
 
Registered: Dec 2006
Location: Seattle, Wa.
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Mac

I am fairly new at this and am not sure I understood the instructions.

I ran the commands you suggested

Start python: $ python
Try to import wxversion: >>> import wxversion
and got this.

import wxversion
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named wxversion

I also would like to try to uninstall tovid but I was not sure what you meant by the source directory for running the sudo uninstall make since I did not install from source.
 
Old 01-16-2007, 01:54 PM   #6
Mac_North
LQ Newbie
 
Registered: Mar 2005
Location: Colorado
Distribution: debian
Posts: 15

Rep: Reputation: 0
Arrow

Quote:
Originally Posted by weltercat
I ran the commands you suggested

Start python: $ python
Try to import wxversion: >>> import wxversion
and got this.

import wxversion
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named wxversion
This means that python cannot find wxversion in its path. Let's see if we can learn why. Try repeating my python session (type what's in bold):

Code:
~$ python
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2',
 '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', 
 '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', 
 '/usr/lib/python2.4/site-packages/FontTools', '/usr/lib/python2.4/site-packages/Numeric', 
 '/var/lib/python-support/python2.4', '/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode']
>>> import wxversion
>>> import wx
>>>
The sys.path statement asks python to tell you where it's looking for modules. This list is quite long, but I've underlined the important ones. A quick listing of those directories will hopefully tell me wxversion and wx is installed:

Code:
~$ ls /usr/lib/python2.4/site-packages/
debconf.py     Numeric.pth         snack.pyc            wx.pth
debconf.pyc    python-support.pth  unohelper.py         wxversion.py
FontTools      pyuno.so            unohelper.pyc        wxversion.pyc
FontTools.pth  README              uno.py               _xmlplus
foomatic       _snackmodule.so     uno.pyc
Numeric        snack.py            wx-2.6-gtk2-unicode

~$ ls /usr/local/lib/python2.4/site-packages/
libtovid
And there they are. What does your system tell you?

Quote:
Originally Posted by weltercat
I also would like to try to uninstall tovid but I was not sure what you meant by the source directory for running the sudo uninstall make since I did not install from source.
Oh that's right. I forgot you used the installtovid.sh script. That script installed a debian package with

sudo dpkg -i tovid_0.29-0jdong1_all.deb

If you want to uninstall tovid, then you would change the -i to -r and remove everything after the first underscore:

sudo dpkg -r tovid
 
Old 01-16-2007, 02:44 PM   #7
weltercat
LQ Newbie
 
Registered: Dec 2006
Location: Seattle, Wa.
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Mac
I ran the commands, I hope this means something to you. I didn't see tovid show up when I did the listing for the /usr/local/lib/python2.4/site-packages/ but I have encoded a couple .avi files from the command line just to make sure it works.

pete@pete-desktop1:~$ python
Python 2.4.4 (#1, Jan 7 2007, 14:16:24)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/local/lib/python24.zip', '/usr/local/lib/python2.4', '/usr/local/lib/python2.4/plat-linux2', '/usr/local/lib/python2.4/lib-tk', '/usr/local/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages']
>>> import wxversion
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named wxversion
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named wx
>>>

pete@pete-desktop1:~$ ls /usr/lib/python2.4/site-packages/
Alacarte PIL.pth
AppInstall problem_report.py
apport_utils.py problem_report.pyc
apport_utils.pyc problem_report.pyo
apport_utils.pyo pygst.pth
apt pygst.py
apt_inst.so pygst.pyc
apt_pkg.so pygst.pyo
atspi.so pyid3lib.so
BitTorrent python_apt-0.6.17-py2.5.egg-info
cairo python-support.pth
cairo.pth pyuno.so
debconf.py PyXML-0.8.4-py2.5.egg-info
debconf.pyc README
debconf.pyo SoftwareProperties
deskbar unohelper.py
DistUpgrade unohelper.pyc
GDebi unohelper.pyo
GMenuSimpleEditor uno.py
gmenu.so uno.pyc
gst-0.10 uno.pyo
gtk-2.0 UpdateManager
hwdb_client virtkey-0.01-py2.5.egg-info
invest virtkey.so
LanguageSelector webilder
libtovid wx-2.6-gtk2-unicode
Numeric wx.pth
Numeric.pth wxversion.py
ORBit.so wxversion.pyc
PIL _xmlplus

pete@pete-desktop1:~$ ls /usr/local/lib/python2.4/site-packages/
ctypes _ctypes.so _ctypes_test.so musicbrainz2 README
 
Old 01-16-2007, 04:06 PM   #8
Mac_North
LQ Newbie
 
Registered: Mar 2005
Location: Colorado
Distribution: debian
Posts: 15

Rep: Reputation: 0
Arrow borked python

Quote:
Originally Posted by weltercat
I ran the commands, I hope this means something to you. I didn't see tovid show up when I did the listing for the /usr/local/lib/python2.4/site-packages/ but I have encoded a couple .avi files from the command line just to make sure it works.
Since you installed from a debian package, tovid was installed into /usr (and not /usr/local, like it was on mine since I use the development version). It's good to know that tovid works! Take a look at the other things it can do: http://tovid.wikia.com/wiki/Screenshots . Note that those screenshots were made from the command line (the GUI cannot do this, yet ;-).

Quote:
Originally Posted by weltercat
>>> sys.path
['', '/usr/local/lib/python24.zip', '/usr/local/lib/python2.4', '/usr/local/lib/python2.4/plat-linux2', '/usr/local/lib/python2.4/lib-tk', '/usr/local/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages']
This is not good. None of your search paths have /usr as a prefix: they're all /usr/local/lib/something.

Quote:
Originally Posted by weltercat
pete@pete-desktop1:~$ ls /usr/lib/python2.4/site-packages/
Alacarte PIL.pth
AppInstall problem_report.py

<snip>

LanguageSelector webilder
libtovid wx-2.6-gtk2-unicode
Numeric wx.pth
Numeric.pth wxversion.py
ORBit.so wxversion.pyc
PIL _xmlplus

pete@pete-desktop1:~$ ls /usr/local/lib/python2.4/site-packages/
ctypes _ctypes.so _ctypes_test.so musicbrainz2 README
Both tovid and wx are installed (in bold), but since python isn't searching /usr/lib/python2.4/site-packages, it can't find them. Your python configuration is very confused; none of your applications in /usr/lib/python2.4 will work at the moment. I'd ask the ubuntu folks how to fix this anomaly. It might help them if you give the output from this command as well:

~$ python -c "import sys; print sys.prefix"
/usr


I suspect yours will be /usr/local .

If you want a quick (and very dirty) fix, you can create symbolic links in /usr/local/lib/python2.4/site-packages (where python is looking) that point to the things you need in /usr/lib/python2.4/site-packages (where python isn't looking).
 
Old 01-16-2007, 04:32 PM   #9
weltercat
LQ Newbie
 
Registered: Dec 2006
Location: Seattle, Wa.
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Yup, when I run the command

python -c "import sys; print sys.prefix"

I get /usr/local

I am going to take your advice and see if the ubuntu people can help me install python to the correct location. In the mean time I think I will try to create the sym links and see if I can get the tovidgui to run.

Thanks for the help and I am sure to be back asking more dumb questions over here in the future.
 
Old 01-16-2007, 04:53 PM   #10
Mac_North
LQ Newbie
 
Registered: Mar 2005
Location: Colorado
Distribution: debian
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by weltercat
I am going to take your advice and see if the ubuntu people can help me install python to the correct location. In the mean time I think I will try to create the sym links and see if I can get the tovidgui to run.
Ok. The edgy list for a basic python installation puts python in the correct place. I wonder how your system got mixed up. You shouldn't even be able to import the basic modules python comes with:

Code:
~$ python
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import glob
>>>
Quote:
Originally Posted by weltercat
Thanks for the help and I am sure to be back asking more dumb questions over here in the future.
No worries! The tovid forums are more quickly answered, so you may have better luck getting tovid-specific help there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tovid felix jay Linux - Newbie 4 11-27-2006 08:10 PM
How to install avidemux/tovid? Need help badly depam Linux - Software 15 06-20-2006 08:18 AM
tovid, wxPython and apt muddywaters Linux - Software 1 05-30-2006 12:09 AM
tovid does not save finished movie aicram Linux - Software 2 06-14-2005 12:21 AM
tovid installation problem ksgill Linux - Newbie 1 03-05-2005 10:48 PM


All times are GMT -5. The time now is 09:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration