Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division by zero #193

narnaud opened this issue Feb 14, 2016 · 1 comment

Division by zero #193

narnaud opened this issue Feb 14, 2016 · 1 comment


Copy link

@narnaud narnaud commented Feb 14, 2016

I'm running Sigal with Python 3.5.1, Pillow 3.1.1, and when trying to build here is the result:

Traceback (most recent call last):
File "c:\python\3.5.1\Lib\", line 170, in run_module_as_main
"main", mod_spec)
File "c:\python\3.5.1\Lib\", line 85, in run_code
exec(code, run_globals)
File "[...]\build\Scripts\sigal.exe__main
.py", line 9, in
File "[...]\build\lib\site-packages\click\", line 716, in call
return self.main(_args, *_kwargs)
File "[...]\build\lib\site-packages\click\", line 696, in main
rv = self.invoke(ctx)
File "[...]\build\lib\site-packages\click\", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "[...]\build\lib\site-packages\click\", line 889, in invoke
return ctx.invoke(self.callback, *ctx.params)
File "[...]\build\lib\site-packages\click\", line 534, in invoke
return callback(args, **kwargs)
File "[...]\build\lib\site-packages\sigal__init
.py", line 142, in build
File "[...]\build\lib\site-packages\sigal\", line 645, in build
File "[...]\build\lib\site-packages\sigal\", line 111, in write
page = self.template.render(**self.generate_context(album))
File "[...]\build\lib\site-packages\jinja2\", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "[...]\build\lib\site-packages\jinja2\", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "[...]\build\lib\site-packages\", line 37, in reraise
raise value.with_traceback(tb)
File "[...]\theme-sigal\templates\index.html", line 94, in top-level template code
<a href="{{ media.filename }}" class="gallery" title="{{ media.filename }}" {{ img_description(media) }}>
File "[...]\theme-sigal\templates\index.html", line 82, in template
{% if media.exif %}
File "[...]\build\lib\site-packages\jinja2\", line 408, in getattr
return getattr(obj, attribute)
File "[...]\build\lib\site-packages\sigal\", line 134, in get
value = obj.dict[] = self.func(obj)
File "[...]\build\lib\site-packages\sigal\", line 159, in exif
if self.raw_exif and self.ext in ('.jpg', '.jpeg') else None)
File "[...]\build\lib\site-packages\sigal\", line 259, in get_exif_tags
simple['exposure'] = exptime[0] / float(exptime[1])
ZeroDivisionError: float division by zero

Copy link

@saimn saimn commented Feb 14, 2016

Could you run sigal build -fd -n 1 to identify the problematic image ? Then if you can send me this image so I can test with it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants