Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] syntax errors during installation

edited April 2013 in OpenSesame

I have installed opensesame on the current debian linux version. Using the Neuro repository I get python syntax errors during the installation. Am I doing something wrong?
Best regards
Jos Jaspers

Comments

  • edited April 2013

    Hi Jos,

    Could you provide some more information? What exactly did you do, what distribution are you running, and (most importantly): What are the syntax errors?

    Cheers,
    Sebastiaan

  • edited April 2013

    Hi Sebastiaan,

    I am running:Linux debian 2.6.32-5-686 #1 SMP Mon Feb 25 01:04:36 UTC 2013 i686 GNU/Linux

    The terminal log form apt-get is:

    (Reading database ... 242376 files and directories currently installed.)
    Unpacking opensesame (from .../opensesame_0.27.1-1~nd60+1_all.deb) ...
    Processing triggers for shared-mime-info ...
    Processing triggers for desktop-file-utils ...
    Processing triggers for gnome-menus ...
    Processing triggers for man-db ...
    Setting up opensesame (0.27.1-1~nd60+1) ...
    /usr/share/opensesame/plugins/joystick/libjoystick.py:72: SyntaxWarning: name 'js' is assigned to before global declaration
      global js
    Processing triggers for python-support ...
    /usr/lib/pymodules/python2.5/psychopy/app/builder/builder.py:3651: Warning: 'with' will become a reserved keyword in Python 2.6
    Compiling /usr/lib/pymodules/python2.5/psychopy/app/builder/builder.py ...
      File "/usr/lib/pymodules/python2.5/psychopy/app/builder/builder.py", line 3651
        with WindowFrozen(self):#try to pause rendering until all panels updated
                        ^
    SyntaxError: invalid syntax
    
    /usr/lib/pymodules/python2.5/psychopy/compatibility.py:66: Warning: 'with' will become a reserved keyword in Python 2.6
    Compiling /usr/lib/pymodules/python2.5/psychopy/compatibility.py ...
      File "/usr/lib/pymodules/python2.5/psychopy/compatibility.py", line 66
        with codecs.open(filename, 'rb') as f:
                  ^
    SyntaxError: invalid syntax
    
    /usr/lib/pymodules/python2.5/psychopy/hardware/__init__.py:140: Warning: 'as' will become a reserved keyword in Python 2.6
    Compiling /usr/lib/pymodules/python2.5/psychopy/hardware/__init__.py ...
      File "/usr/lib/pymodules/python2.5/psychopy/hardware/__init__.py", line 140
        except Exception as ex:
                          ^
    SyntaxError: invalid syntax
    
    /usr/lib/pymodules/python2.5/psychopy/microphone.py:334: Warning: 'as' will become a reserved keyword in Python 2.6
    Compiling /usr/lib/pymodules/python2.5/psychopy/microphone.py ...
      File "/usr/lib/pymodules/python2.5/psychopy/microphone.py", line 334
        except StandardError as ex: # or maybe a dropped connection, etc
                              ^
    SyntaxError: invalid syntax
    
    /usr/lib/pymodules/python2.5/psychopy/web.py:405: Warning: 'as' will become a reserved keyword in Python 2.6
    Compiling /usr/lib/pymodules/python2.5/psychopy/web.py ...
      File "/usr/lib/pymodules/python2.5/psychopy/web.py", line 405
        except urllib2.URLError as ex:
                                 ^
    SyntaxError: invalid syntax
    
    Log ended: 2013-04-29  16:32:15
    

    Hope this will provide you with enough information.

    Best regards
    Jos

  • edited 5:09PM

    Ah, I see. This is a problem with PsychoPy, which is a dependency of, but not developed or maintained by OpenSesame. You may want to report this issue on the NeuroDebian mailinglist: http://neuro.debian.net/about.html#chap-contacts

    However, one thing that comes to mind is that there is something funky with your Python installation. I believe that Debian Squeeze should come with Python 2.6, yet I see 2.5 mentioned in your output. Did you downgrade Python? I'm just guessing here, I don't personally use Debian.

    Cheers!

Sign In or Register to comment.