Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020 is knocking on the door #140

Closed
MaxValue opened this issue Nov 24, 2017 · 0 comments
Closed

2020 is knocking on the door #140

MaxValue opened this issue Nov 24, 2017 · 0 comments

Comments

@MaxValue
Copy link

MaxValue commented Nov 24, 2017

Hi! I just installed fslint (2.44-2ubuntu1) on Ubuntu (17.10 64bit Server). Unfortunately it doesn't start through the desktop link.

I ran the fslint-gui command directly and this popped up:

  File "/usr/bin/fslint-gui", line 182
    except getopt.error, msg:
                       ^
SyntaxError: invalid syntax

I then dawned me that this software is using python2 and according to the Python documentation this is outdated syntax (even for python2). I know it should be supported by python, but apparently it isn't. I tried it several times, i dunno why it doesn't work. My version (/usr/bin/env python2):

Python 2.7.14 (default, Sep 23 2017, 22:06:14) 
[GCC 7.2.0] on linux2

I know my fslint version isn't the newest (2.46), but this is still in the latest code:
except getopt.error, msg:

A solution is to fix this by making it except getopt.error as msg:, but a more future proof solution would be to start converting to python3 (no more interpreter updates for python2 in 28 months!). How 'bout it?

pixelb added a commit that referenced this issue Nov 24, 2017
@pixelb pixelb closed this as completed Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants