Code Monkey home page Code Monkey logo

flickrbox's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flickrbox's Issues

Tests

An initial test has been added, but ideally, need more. This might mean breaking up Flickrbox methods better.

FileNotFoundError

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.

Docs

Need a wiki and better readme

error python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt

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

Verbose logging

Should have multiple logging levels, including a verbose setting for debugging.

no start application

[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?

can't create new album from computer

at the beginning only 'Auto Upload' exists.
...

  • uploading photo: 20170904_114115
  • Sync Complete!

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...

  • in-event <InotifyEvent: src_path=b'/home/andy/FlickrBox/newAlbum2', wd=1, mask=IN_CREATE|IN_ISDIR, cookie=0, name=b'newAlbum2'>
  • in-event <InotifyEvent: src_path=b'/home/andy/FlickrBox/newAlbum2', wd=1, mask=IN_ATTRIB|IN_ISDIR, cookie=0, name=b'newAlbum2'>
  • in-event <InotifyEvent: src_path=b'/home/andy/FlickrBox/newAlbum2/1506959460685.jpg', wd=209, mask=IN_CREATE, cookie=0, name=b'1506959460685.jpg'>
  • in-event <InotifyEvent: src_path=b'/home/andy/FlickrBox/newAlbum2/1506959460685.jpg', wd=209, mask=IN_MODIFY, cookie=0, name=b'1506959460685.jpg'>
  • uploading photo: 1506959460685

and seems nothings happend

Why not cooperate on already existing similar repositories?

As this project is in its infancy take a look at two alternatives where I'd invite you to contribute to:

  • flickr-uploader ... on its version 2.8.6 using flickrapi with plenty of functionality
  • flickr-rsync ... more towards the line of the concept of FlicrkBox of copy files over. It follows the idea of rsync (remote sync two folders)... I kicked off the migration work to flickrapi and compatibility with Python 3... but stil work in progress.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.