Giter Site home page Giter Site logo

Issue with a lot of pictures about sigal HOT 7 CLOSED

saimn avatar saimn commented on September 18, 2024
Issue with a lot of pictures

from sigal.

Comments (7)

saimn avatar saimn commented on September 18, 2024

In which file did the error occur ? (could you paste the traceback ?). The generated folder is your output folder ?

from sigal.

triplem avatar triplem commented on September 18, 2024

The error occurs always in the first image or in the representative.

[triplem@athene urlaub]$ sigal ~/Bilder/urlaub ~/Bilder/generated/
11 - 150 images
[################################] 150/150
10 - 61 images
[################################] 61/61
13 - 20 images
[################################] 20/20
12 - 48 images
[################################] 48/48
15 - 48 images
[################################] 48/48
07 - 3 images
[################################] 3/3
17 - 22 images
[################################] 22/22
16 - 27 images
[################################] 27/27
19 - 86 images
[################################] 86/86
14_ - 21 images
[################################] 21/21
08 - 9 images
[################################] 9/9
09 - 31 images
[################################] 31/31
22 - 14 images
[################################] 14/14
20_ - 56 images
[################################] 56/56
. - 0 images
Traceback (most recent call last):
File "/usr/bin/sigal", line 9, in
load_entry_point('sigal==0.1-dev', 'console_scripts', 'sigal')()
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/init.py", line 106, in main
gallery.build()
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/gallery.py", line 112, in build
self.writer.write(self.paths, path)
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/writer.py", line 124, in write
img = Image(os.path.join(self.output_dir, dpath, alb_thumb))
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/image.py", line 49, in init
self.img = PILImage.open(filename)
File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1952, in open
fp = builtin.open(fp, "rb")
IOError: [Errno 2] No such file or directory: u'/home/triplem/Bilder/generated/2/DSC00947.JPG'
[triplem@athene urlaub]$ sigal ~/Bilder/urlaub ~/Bilder/generated/
11 - 150 images
[################################] 150/150
10 - 61 images
[################################] 61/61
13 - 20 images
[################################] 20/20
12 - 48 images
[################################] 48/48
15 - 48 images
[################################] 48/48
07 - 3 images
[################################] 3/3
17 - 22 images
[################################] 22/22
16 - 27 images
[################################] 27/27
19 - 86 images
[################################] 86/86
14_ - 21 images
[################################] 21/21
08 - 9 images
[################################] 9/9
09 - 31 images
[################################] 31/31
22 - 14 images
[################################] 14/14
20_ - 56 images
[################################] 56/56
. - 0 images
Traceback (most recent call last):
File "/usr/bin/sigal", line 9, in
load_entry_point('sigal==0.1-dev', 'console_scripts', 'sigal')()
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/init.py", line 106, in main
gallery.build()
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/gallery.py", line 112, in build
self.writer.write(self.paths, path)
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/writer.py", line 124, in write
img = Image(os.path.join(self.output_dir, dpath, alb_thumb))
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/image.py", line 49, in init
self.img = PILImage.open(filename)
File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1952, in open
fp = builtin.open(fp, "rb")
IOError: [Errno 2] No such file or directory: u'/home/triplem/Bilder/generated/mm/DSC00947.JPG'

from sigal.

saimn avatar saimn commented on September 18, 2024

Ok, firstly this block of code should not be run unless you use the make_thumbs = False setting (and this setting should not be used with the 2 themes delivered with sigal as thumbs as required for galleria and colorbox).
Secondly, are you setting the representative picture for the failing directories ? Could you run sigal in debug mode (sigal -d) ?

from sigal.

triplem avatar triplem commented on September 18, 2024

the make_thumbs is (of course) left as is (meaning: # make_thumbs = 1). And yes, I did set the representative Image for these directories. I have tried to remove this, but the same error occured on the same directory.

from sigal.

triplem avatar triplem commented on September 18, 2024

Ran it in Debug mode, no real new messages here ;-(

[################################] 36/36
2012-12-10 22:58:16,814 - WARNING - . - 0 images
Traceback (most recent call last):
File "/usr/bin/sigal", line 9, in
load_entry_point('sigal==0.1-dev', 'console_scripts', 'sigal')()
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/init.py", line 106, in main
gallery.build()
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/gallery.py", line 112, in build
self.writer.write(self.paths, path)
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/writer.py", line 124, in write
img = Image(os.path.join(self.output_dir, dpath, alb_thumb))
File "/usr/lib/python2.7/site-packages/sigal-0.1_dev-py2.7.egg/sigal/image.py", line 49, in init
self.img = PILImage.open(filename)
File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1952, in open
fp = builtin.open(fp, "rb")
IOError: [Errno 2] No such file or directory: u'/home/triplem/Bilder/gen-test/14/DSC00474.JPG'

from sigal.

saimn avatar saimn commented on September 18, 2024

ok, I have it ! It is because the root directory . may be processed before some sub-directories. And this is random because of python's unordered dict. Just need to find a fix.

from sigal.

saimn avatar saimn commented on September 18, 2024

Should be fixed with this commit.

from sigal.

Related Issues (20)

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.