Comments (7)
In which file did the error occur ? (could you paste the traceback ?). The generated
folder is your output folder ?
from sigal.
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.
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.
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.
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.
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.
Should be fixed with this commit.
from sigal.
Related Issues (20)
- Sigal Build command fails due to AttributeError HOT 3
- alb.thumb_size HOT 1
- Hide an image in a album (but still process it and allow it as a thumbnail)
- Lightgallery/justified gallery theme HOT 4
- In Galleria's fullscreen mode, video's aren't fullscreen like photos are
- Support encrypting videos in the encrypt plugin HOT 1
- Any chance of markdown in Title? HOT 1
- Sigal PNG -> JPEG conversion is broken (with fix?) HOT 1
- keep_orig is broken and has no effect? HOT 4
- After file format conversion, thumbnail generation uses the wrong url HOT 1
- zip_archive is either `False` or a filename, which is confusing. should have zip names depend on album name to make download easier HOT 4
- Have a way to for themes to know all the albums that exists
- Does sigal work on mkv h265 files? HOT 8
- git main fails 31 tests HOT 3
- Encrypt plugin: Password field hidden behind pictures. HOT 2
- Using galleria theme causes empty whitespace in the base index page HOT 2
- Sigal not found HOT 2
- Problems with UTF8 characters on folders HOT 1
- 2.3: Issues with tests HOT 2
- Can't decrypt an encrypted gallery HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sigal.