line 578, in <module>
'default': defaultDBlocation,
NameError: name 'defaultDBlocation' is not defined
Even though I ran the script explicitly defining path to the database, I got the error because it didn't recognize the platform and couldn't set the default location. So I just hacked it by hardcoding the default location of the database, but I guess it would be nice if the script recognized the correct platform and react accordingly or, at least, don't even set the defaultDBlocation if the script is being run with -i parameter.
command I ran
python galaxy_library_export.py -i /home/user/Desktop/storage/galaxy-2.0.db -o /home/user/Desktop/gog.csv
dirty hack, line 555:
if platform == "darwin":
defaultDBlocation = "/Users/Shared/GOG.com/Galaxy/Storage/galaxy-2.0.db"
# Windows
elif platform == "win32":
defaultDBlocation = "C:\\ProgramData\\GOG.com\\Galaxy\\storage\\galaxy-2.0.db"
#added hack
defaultDBlocation = "/home/user/Desktop/storage/galaxy-2.0.db