sigal: TypeError: 'int' object has no attribute '__getitem__'
Ran sigal and got the following error, upgrade to 1.3.0 and the error remains. I have no idea what this means, but happy to provide files if that will help.
Traceback (most recent call last):
File "/usr/local/bin/sigal", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sigal/__init__.py", line 142, in build
gal.build(force=force)
File "/usr/local/lib/python2.7/site-packages/sigal/gallery.py", line 668, in build
writer.write(album)
File "/usr/local/lib/python2.7/site-packages/sigal/writer.py", line 111, in write
page = self.template.render(**self.generate_context(album))
File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/site-packages/sigal/themes/colorbox/templates/index.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python2.7/site-packages/sigal/themes/colorbox/templates/base.html", line 45, in top-level template code
{% block content %}{% endblock %}
File "/usr/local/lib/python2.7/site-packages/sigal/themes/colorbox/templates/index.html", line 63, in block "content"
{{ img_description(media) }}>
File "/usr/local/lib/python2.7/site-packages/jinja2/runtime.py", line 553, in _invoke
rv = self._func(*arguments)
File "/usr/local/lib/python2.7/site-packages/sigal/themes/colorbox/templates/index.html", line 42, in template
{% if media.exif %}
File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 430, in getattr
return getattr(obj, attribute)
File "/usr/local/lib/python2.7/site-packages/sigal/utils.py", line 139, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "/usr/local/lib/python2.7/site-packages/sigal/gallery.py", line 157, in exif
if self.raw_exif and self.ext in ('.jpg', '.jpeg') else None)
File "/usr/local/lib/python2.7/site-packages/sigal/image.py", line 304, in get_exif_tags
lat = dms_to_degrees(lat_info)
File "/usr/local/lib/python2.7/site-packages/sigal/image.py", line 217, in dms_to_degrees
d = float(v[0][0]) / float(v[0][1])
TypeError: 'int' object has no attribute '__getitem__'
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (4 by maintainers)
Commits related to this issue
- Don't fail if GPSInfo cannot be used (fixes #251) — committed to kontza/sigal by saimn 7 years ago
Okay, I’ve isolated the JPEGs. This weekend I experimented with a new workflow (developing raws on my Android tablet using snapseed) so I suspect this is the thing that changed. I sent you an email with two JPEGs, let me know if you get it or don’t.