Moustikitos / tyf

Manipulate EXIF and IFD metadata.
19 stars 8 forks source link

Push current repo and version to pip #13

Closed disarticulate closed 3 years ago

disarticulate commented 6 years ago

Ran into current pip: https://pypi.org/project/Tyf/ @ 1.3.2

Ran into bugger:

WARNING:  Traceback (most recent call last):
  File "<string>", line 29, in __plpython_procedure_find_exif_19256322
  File "/usr/local/lib/python3.5/dist-packages/Tyf/ifd.py", line 75, in decode
    return self._decoder(self.value)
  File "/usr/local/lib/python3.5/dist-packages/Tyf/decoders.py", line 54, in <lambda>
    _0x132 = _0x9003 = _0x9004 = lambda value: datetime.datetime.strptime(_2(value).decode(), "%Y:%m:%d %H:%M:%S")
AttributeError: 'str' object has no attribute 'decode'

Reviewed current code and this was supposed to be fixed. Current pip is old code? Not sure.

disarticulate commented 6 years ago

current wheel has:

# DateTime DateTimeOriginal DateTimeDigitized
_0x132 = _0x9003 = _0x9004 = lambda value: datetime.datetime.strptime(_2(value).decode(), "%Y:%m:%d %H:%M:%S")
Moustikitos commented 3 years ago

Last version pushed to pypi