ioLab / python-ioLabs

Python library for accessing ioLab Systems USBBox
BSD 3-Clause "New" or "Revised" License
3 stars 9 forks source link

Can not install ioLabs: print error in setup script #5

Open nilslueschow opened 4 years ago

nilslueschow commented 4 years ago

Hi, I just tried to install ioLabs for PsychoPy using pip and after that didn't work tryed a manual install via cmd and "python setup.py install". The error for both of these was:


C:\Users\Nils\Documents\GitHub\python-ioLabs>python setup.py install Traceback (most recent call last): File "setup.py", line 8, in import ioLabs File "C:\Users\Nils\Documents\GitHub\python-ioLabs\ioLabs.py", line 981 print "USBBox connected" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("USBBox connected")?

A friend, who has a lot more python experience than me, pointed out that it might be due to the script being written in python 2 handling "print" differently. Is it maybe possible to adjust the setup to work in python 3, from what it looks like, I guess you only have to put the message in brackets?

My PsychoPy Version is v2020.1.3 and my Python Version 3.6.6 Windows Version on this Laptop is Windows 7 with Service Pack 1