Using the Gallery to Picasa python script

garyploski

Joined: 2005-07-07
Posts: 16
Posted: Mon, 2013-05-06 01:36

Someone with practically no python experience here.

I'm trying to use the python script created by karotte (https://github.com/sebastianw/gallery2picasa) that was mentioned in this post http://galleryproject.org/node/100409

The support team installed gdatapython package to the public_html/cgi-bin/ but I find that I have no idea where gallery2picasa should be uploaded - the same as gdatapython, home, gallery folder?

Any help on running the script is welcome.

I have the gallery2picasa-master folder in my home folder and saw this when I tried running the script.

python gallery2picasa.py
Traceback (most recent call last):
File "gallery2picasa.py", line 8, in ?
import gdata.photos
ImportError: No module named gdata.photos

 
garyploski

Joined: 2005-07-07
Posts: 16
Posted: Mon, 2013-05-06 01:38

I should note that I FTPd the files to the home folder via Cyberduck.

 
garyploski

Joined: 2005-07-07
Posts: 16
Posted: Fri, 2013-05-10 00:16

When attempting to run gallery2picasa.py I get the following errors. Am I missing something? Do I need to configure the modules?

I cannot find any information on how to configure this thing. =\

# python public_html/cgi-bin/gallery2picasa-master/gallery2picasa.py
Traceback (most recent call last):
File "public_html/cgi-bin/gallery2picasa-master/gallery2picasa.py", line 3, in <module>
from modules import db
File "/home/garyplos/public_html/cgi-bin/gallery2picasa-master/modules/db.py", line 1, in <module>
import MySQLdb
ImportError: No module named MySQLdb

--
Notes: Support checked the sys.path configuration, reinstalled gdata-python, and installed python & python 2.6.
--

 
garyploski

Joined: 2005-07-07
Posts: 16
Posted: Sun, 2013-05-12 01:55

For anyone following along, or interested to know what resolve the issue above... I needed to install the MySQLdb module. For site5.com users refer to the instructions on this page http://forums.site5.com/showthread.php?t=10236

I am now seeing an error noted over a year ago here: https://github.com/sebastianw/gallery2picasa/issues/22

Quote:
gdata.photos.service.GooglePhotosException: (601, "Found , not path name or object with a .read() method", 'filename_or_handle must be a path name or a file-like object')

I've attempted the gallery2picasa script with gdata 2.0.17 and 2.0.14. Both end up with the same error.