Coder Social home page Coder Social logo

Exception "adding same dep twice" about lazygal HOT 4 CLOSED

niol avatar niol commented on September 26, 2024
Exception "adding same dep twice"

from lazygal.

Comments (4)

niol avatar niol commented on September 26, 2024

Thanks a lot for reporting.
What config or command line arguments do you use? I did not manage to reproduce.
Maybe the following change can help...

--- a/lazygal/genpage.py
+++ b/lazygal/genpage.py
@@ -92,7 +92,8 @@ class WebalbumBrowsePage(WebalbumPage):
         super().__init__(dir, size_name, self.media.name)

         self.add_dependency(self.webalbum_media.resized[size_name])
-        if webalbum_media.original:
+        if webalbum_media.original \
+        and self.dir.newsizers[size_name] != 'original':
             self.add_dependency(self.webalbum_media.original)

         # Depends on source directory in case an image was deleted

from lazygal.

glubsy avatar glubsy commented on September 26, 2024

I was just testing lazygal with no particular command line argument apart from the directory to scan as shown above.
With --debug I get this extra line which may or may not indicate something?

  Trying loading gallery configs:
PersistentIndex(b'/lazygal_output/index.json') build needed: never built

Applying the patch above didn't change anything, I get the same error.

from lazygal.

niol avatar niol commented on September 26, 2024

This should fix the issue.

from lazygal.

glubsy avatar glubsy commented on September 26, 2024

Thanks for the fix, it seems to work just fine now. 👍

from lazygal.

Related Issues (17)

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.