Closed kleinishere closed 10 years ago
You're right, the setup.py file is incomplete. I removed the py2exe line, but it can't install. I'll see what I can do, but for now try running it from the source dir i.e.
git clone https://github.com/richq/folders2flickr.git
cd folders2flickr
python uploadr.py
Yes, that happened to me as well re: py2exe.
I've previously used ept/uploadr.py (apparently a source of folders2flickr uplodar.py file) with success but when running the commands offered above, I ran into:
klein$ python uploadr.py
Traceback (most recent call last):
File "uploadr.py", line 3, in <module>
import dbhash,anydbm
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
import bsddb
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
import _bsddb
ImportError: No module named _bsddb
This doesn't occur with the original ept/uploadr.py library. On closer looks, the import's of the two files is different.
ept/uploadr.py
import argparse
import hashlib
import mimetools
import mimetypes
import os
import shelve
import string
import sys
import time
import urllib2
import webbrowser
import xmltramp
folders2flickr/uploadr.py
import dbhash,anydbm
import sys, time, os, urllib2, shelve, string, logging, flickr, re
import xmltramp, mimetools, mimetypes, md5, webbrowser, exif, flickr2history, tags2set, deleteAll
from ConfigParser import *
Wondering if you've run into anything similar and if you were able to overcome it. Thanks for the reply above.
(I'm running a recently compiled [as in this evening] Python install through Mac OS X's homebrew option.)
Not run into that one, sounds like a problem with Python on OSX? I've only tested this on Ubuntu 12.04, where I have bsddb:
>>> import dbhash
>>> dbhash.bsddb.__file__
'/usr/lib/python2.7/bsddb/__init__.pyc'
Maybe this => http://stackoverflow.com/questions/814041/how-to-fix-the-broken-bsddb-install-in-the-default-python-package-on-mac-os-x-10
This version of uploadr uses bsddb to store a hash-table of files uploaded mapped to the flickr ID, so it doesn't have to query flickr each time to see what was uploaded. It might be possible to switch to use something else, though I don't want to bend over backwards to help compatibility with a proprietary OS.
bdddb problems notwithstanding, this should be fixed now. The current setup.py seems to install correctly so pip should work too. One thing I'd like to do is move the dependencies to actual external files, rather than have them copied in this repo. But that's another issue.
Appreciate your review of the many flickr uploading options and reemergence of this solution.
Trying to run this but cannot get past the py2exe dependency. Have downloaded but unsucessfully installed / pointed folders2flickr to it (either by source or pip).
Any way you could add a few lines to the README to clarify this process of getting it running?