tomquirk / flickrbox Goto Github PK
View Code? Open in Web Editor NEW๐ธ Backup photos to Flickr, just like Dropbox!
License: MIT License
๐ธ Backup photos to Flickr, just like Dropbox!
License: MIT License
python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt
--editable=[email protected]:alexis-mignon/python-flickr-api.git is not the right format; it must have #egg=Package
Basically, create custom error logging
An initial test has been added, but ideally, need more. This might mean breaking up Flickrbox methods better.
If a file is modified/deleted while a sync is happening, the diff won't be updated and hence we'll get an error like this: FileNotFoundError: [Errno 2] No such file or directory: '...'
Just need to catch FileNotFoundError
and continue. Perhaps the data-structure should be updated at this point.
Would be good to support async
option for photo uploads
Need a wiki and better readme
Building wheels for collected packages: httplib2, oauth, pathtools, PyYAML, watchdog
Running setup.py bdist_wheel for httplib2 ... error
Complete output from command /root/flickr/FlickrBox/venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-iyl4h7ws/httplib2/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmp2jg70qxxpip-wheel- --python-tag cp35:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
Failed building wheel for httplib2
Should have multiple logging levels, including a verbose setting for debugging.
[andy@andy-pc FlickrBox]$ python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt
Collecting argh==0.26.2 (from -r requirements.txt (line 1))
Using cached argh-0.26.2-py2.py3-none-any.whl
Collecting flickr-api==0.5 (from -r requirements.txt (line 2))
Using cached flickr_api-0.5.tar.gz
Collecting httplib2==0.10.3 (from -r requirements.txt (line 3))
Using cached httplib2-0.10.3.tar.gz
Collecting oauth==1.0.1 (from -r requirements.txt (line 4))
Using cached oauth-1.0.1.tar.gz
Collecting oauth2==1.9.0.post1 (from -r requirements.txt (line 5))
Using cached oauth2-1.9.0.post1-py2.py3-none-any.whl
Collecting pathtools==0.1.2 (from -r requirements.txt (line 6))
Using cached pathtools-0.1.2.tar.gz
Collecting PyYAML==3.12 (from -r requirements.txt (line 7))
Using cached PyYAML-3.12.tar.gz
Collecting six==1.11.0 (from -r requirements.txt (line 8))
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting watchdog==0.8.3 (from -r requirements.txt (line 9))
Using cached watchdog-0.8.3.tar.gz
Installing collected packages: argh, oauth, flickr-api, httplib2, oauth2, pathtools, PyYAML, six, watchdog
Running setup.py install for oauth ... done
Running setup.py install for flickr-api ... done
Running setup.py install for httplib2 ... done
Running setup.py install for pathtools ... done
Running setup.py install for PyYAML ...
done
Running setup.py install for watchdog ... done
Successfully installed PyYAML-3.12 argh-0.26.2 flickr-api-0.5 httplib2-0.10.3 oauth-1.0.1 oauth2-1.9.0.post1 pathtools-0.1.2 six-1.11.0 watchdog-0.8.3
(venv) [andy@andy-pc FlickrBox]$
(venv) [andy@andy-pc FlickrBox]$ python3 flickrbox.py
Traceback (most recent call last):
File "flickrbox.py", line 11, in
import flickr_api as flickr
File "/home/andy/FlickrBox/venv/lib/python3.6/site-packages/flickr_api/init.py", line 28
except Exception, e:
^
SyntaxError: invalid syntax
@tomquirk , could you please take a look?
at the beginning only 'Auto Upload' exists.
...
Watching /home/andy/FlickrBox for changes...
add new directory with one jpg file and expect to see new album in flickr.
Watching /home/andy/FlickrBox for changes...
and seems nothings happend
As this project is in its infancy take a look at two alternatives where I'd invite you to contribute to:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.