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

TypeError: unorderable types: int() <= str() #33

Closed
altendky opened this issue Mar 2, 2014 · 1 comment
Closed

TypeError: unorderable types: int() <= str() #33

altendky opened this issue Mar 2, 2014 · 1 comment
Labels

Comments

@altendky
Copy link

altendky commented Mar 2, 2014

My gut says this is related to issue #30 (which I reproduced locally as well).

I am running latest from development and get the following for the image below. Like in issue #30 I was mass processing a bunch of images that mostly work. Most are mine but at one point I had to recover a bunch of images after a drive failure and my present efforts are trying to deal with that. This particular image is not mine.

altendky@lt:~/ex$ git --git-dir=/tmp/exif-py/.git pull
Already up-to-date.
altendky@lt:~/ex$ git --git-dir=/tmp/exif-py/.git rev-parse HEAD
bce80b49d1b9ac7a178e6cae19416ba3712109f5
altendky@lt:~/ex$ python3
Python 3.3.2+ (default, Oct  9 2013, 14:50:09) 
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import exifread
>>> exifread.__version__
'2.0.0'
>>> f = open('ex.jpg', 'rb')
>>> tags = exifread.process_file(f)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.3/dist-packages/ExifRead-2.0.0-py3.3.egg/exifread/__init__.py", line 209, in process_file
    hdr.dump_ifd(exif_off.values[0], 'EXIF', stop_tag=stop_tag)
  File "/usr/local/lib/python3.3/dist-packages/ExifRead-2.0.0-py3.3.egg/exifread/classes.py", line 226, in dump_ifd
    printable = tag_entry[1](values)
  File "/usr/local/lib/python3.3/dist-packages/ExifRead-2.0.0-py3.3.egg/exifread/utils.py", line 19, in make_string
    if 32 <= c and c < 256:
TypeError: unorderable types: int() <= str()

ex

@ianare
Copy link
Owner

ianare commented Nov 18, 2014

Should be fixed now (sorry for the wait).

@ianare ianare closed this as completed Nov 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants