Skip to content

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

Description

@nilslueschow

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions