Coder Social home page Coder Social logo

santiagotorres / bg_daemon Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 101 KB

An extensible python set of classes to update your background images.

License: GNU General Public License v2.0

Python 95.07% Makefile 0.46% Shell 0.91% Objective-C 3.55%

bg_daemon's Issues

imgurfetcher doesn't do well with albums.

I tried changing the name of the subreddit to spaceporn and the following exception showed up:

yoshikivazquezbaeza:~$ background_daemon.py 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/background_daemon.py", line 4, in <module>
    __import__('pkg_resources').run_script('bg-daemon==0.0.1', 'background_daemon.py')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 517, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 1443, in run_script
    exec(script_code, namespace, namespace)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bg_daemon-0.0.1-py2.7.egg/EGG-INFO/scripts/background_daemon.py", line 240, in <module>

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bg_daemon-0.0.1-py2.7.egg/EGG-INFO/scripts/background_daemon.py", line 196, in poll

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bg_daemon-0.0.1-py2.7.egg/EGG-INFO/scripts/background_daemon.py", line 128, in update

  File "build/bdist.macosx-10.6-intel/egg/bg_daemon/fetchers/imgurfetcher.py", line 131, in query
  File "build/bdist.macosx-10.6-intel/egg/bg_daemon/fetchers/imgurfetcher.py", line 233, in _select_image
AttributeError: GalleryAlbum instance has no attribute 'width'

This may be a shot in the dark, but I think fetcher needs to verify that it is indeed looking at an image not an album.

One of the dependencies is breaking the build

This is the list of dependencies we had installed when everything worked:

imgurpython==1.1.5
mock==1.0.1
requests==2.6.0
virtualenv==12.1.1

This is our new list of dependencies:

imgurpython==1.1.6
mock==1.3.0
requests==2.7.0
virtualenv==13.1.2

I'm imagining mock isn't behaving as it should anymore.... I'll dig into this.

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.