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. |
Quote:
A simple test you can do:
|
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.
|
Quote:
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. |
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. |
Quote:
Code:
~$ python Code:
~$ ls /usr/lib/python2.4/site-packages/ Quote:
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 |
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 |
borked python
Quote:
Quote:
Quote:
~$ 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). |
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. |
Quote:
Code:
~$ python Quote:
|
All times are GMT -5. The time now is 11:54 PM. |