pexif icon indicating copy to clipboard operation
pexif copied to clipboard

SyntaxError: Missing parentheses in call to 'print'

Open belidzs opened this issue 9 years ago • 5 comments

I'm using Windows 10 with Python 3.5.1.

  1. Installed pexif 0.15 with pip
  2. Installation completed without problems
  3. Started a console window
  4. Executed import pexif
  5. Received the following exception:
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pexif
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Balazs\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pexif.py", line 125
    print each,
             ^
SyntaxError: Missing parentheses in call to 'print'
>>>

belidzs avatar Dec 27 '15 12:12 belidzs

Even if that will be fixed, pexif DOES NOT SUPPOR Python3 actually. For example, it uses StringIO instead of BytesIO. Seems it is abandoned project.

socketpair avatar Jul 04 '16 19:07 socketpair

Python 3 is not supported. Forks or pull requests welcome.

bennoleslie avatar Jul 05 '16 12:07 bennoleslie

Hi, I'm working to fix it: https://github.com/marcelometal/pexif/

marcelometal avatar Sep 16 '17 14:09 marcelometal

@marcelometal Using your fork I keep getting the following:

primary = ef.get_exif().get_primary()
AttributeError: 'NoneType' object has no attribute 'get_primary'

TheSandDoctor avatar Mar 23 '19 04:03 TheSandDoctor

@TheSandDoctor hi!

pexifwas abandoned, so I've replaced it with piexif =P

https://pypi.org/project/piexif/

marcelometal avatar Mar 25 '19 14:03 marcelometal