Skip to content

Division by zero #193

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

Closed
narnaud opened this issue Feb 14, 2016 · 1 comment
Closed

Division by zero #193

narnaud opened this issue Feb 14, 2016 · 1 comment

Comments

@narnaud
Copy link
Contributor

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\runpy.py", line 170, in run_module_as_main
"main", mod_spec)
File "c:\python\3.5.1\Lib\runpy.py", 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\core.py", line 716, in call
return self.main(_args, *_kwargs)
File "[...]\build\lib\site-packages\click\core.py", line 696, in main
rv = self.invoke(ctx)
File "[...]\build\lib\site-packages\click\core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "[...]\build\lib\site-packages\click\core.py", line 889, in invoke
return ctx.invoke(self.callback, *ctx.params)
File "[...]\build\lib\site-packages\click\core.py", line 534, in invoke
return callback(args, **kwargs)
File "[...]\build\lib\site-packages\sigal__init
.py", line 142, in build
gal.build(force=force)
File "[...]\build\lib\site-packages\sigal\gallery.py", line 645, in build
writer.write(album)
File "[...]\build\lib\site-packages\sigal\writer.py", line 111, in write
page = self.template.render(**self.generate_context(album))
File "[...]\build\lib\site-packages\jinja2\environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "[...]\build\lib\site-packages\jinja2\environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "[...]\build\lib\site-packages\jinja2_compat.py", 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\environment.py", line 408, in getattr
return getattr(obj, attribute)
File "[...]\build\lib\site-packages\sigal\utils.py", line 134, in get
value = obj.dict[self.func.name] = self.func(obj)
File "[...]\build\lib\site-packages\sigal\gallery.py", line 159, in exif
if self.raw_exif and self.ext in ('.jpg', '.jpeg') else None)
File "[...]\build\lib\site-packages\sigal\image.py", line 259, in get_exif_tags
simple['exposure'] = exptime[0] / float(exptime[1])
ZeroDivisionError: float division by zero

@saimn
Copy link
Owner

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 ?

@saimn saimn closed this as completed in b4d1057 Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants