I just got bitten by this as well. The easy fix is to modify startup to put openshot/uploads/youtube at the beginning of sys.path . Any imports after that will pick your bundled version.
In my own projects what I do is have a toplevel directory named 'thirdparty' which then has modules like this in it. I then have a module named 'usethirdparty' which looks like this: import sys import os sys.path=[os.path.join(os.path.dirname(os.path.abspath(__file__)), "thirdparty")]+sys.path Elsewhere in my code the imports section looks like this: import sys import this import usethirdparty import gdata Having usethirdparty as a module ensures it only gets run once. The imports make the author's intentions clear. The approach works on all version of python from 2.3 onwards. -- You received this bug notification because you are a member of OpenShot Developers, which is subscribed to OpenShot Video Editor. https://bugs.launchpad.net/bugs/719091 Title: Can't upload to YouTube Status in OpenShot Video Editor: Confirmed Bug description: Ubuntu 10.10 OpenShot from ppa:openshot.developers/maverick OpenShot 1.3.0 Firstly, thank you Team OpenShot for your amazing work, I can't say enough good things about it. Now to the business of making it even more mindblowing. I tried uploading my video to YouTube. Here is the terminal output: on_tlbMakeMovie_clicked called with self.GtkToolButton on_cboExportType_changed on_cboUploadServices_changed on_cboProjectType_changed on_cboExportTo_changed on_cboProjectType_changed on_btnExportVideo_clicked NEW SDL CONSUMER GenerateXML for an Effect on_frmExportVideo_destroy NEW SDL CONSUMER GenerateXML for an Effect on_frmMain_key_press_event on_tlbMakeMovie_clicked called with self.GtkToolButton on_cboExportType_changed on_cboUploadServices_changed on_cboProjectType_changed on_cboExportTo_changed on_cboExportType_changed on_cboProjectType_changed on_btnExportVideo_clicked NEW SDL CONSUMER GenerateXML for an Effect on_frmExportVideo_destroy NEW SDL CONSUMER GenerateXML for an Effect on_cboUploadService_changed on_btnUpload_clicked form is valid! Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/openshot/windows/UploadVideo.py", line 159, in on_btnUpload_clicked status = service.start_upload(self) File "/usr/lib/pymodules/python2.6/openshot/uploads/manager.py", line 145, in start_upload import gdata.youtube.client ImportError: No module named client on_btnUpload_clicked form is valid! I hope this helps. _______________________________________________ Mailing list: https://launchpad.net/~openshot.developers Post to : [email protected] Unsubscribe : https://launchpad.net/~openshot.developers More help : https://help.launchpad.net/ListHelp

