FS#30977 - [fish] Packaged python scripts written in Python 2 but run under Python 3

Attached to Project: Community Packages
Opened by Gecko (dutch_gecko) - Thursday, 02 August 2012, 15:05 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 07 August 2012, 09:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The python scripts accompanying fish are apparently written for Python 2, but due to the opening #!/usr/bin/python will use Python 3 on Arch. This causes the fish_update_completions command to fail, when it calls create_manpage_completions.py.

Error:
File "/usr/share/fish/tools/create_manpage_completions.py", line 633
except IOError as (err, strerror):
^
SyntaxError: invalid syntax

Note that this will only occur if this command is being run for the first time (or the manpage database doesn't exist). The offending line is valid in Python 2, but not in 3.

Additional info:
* package version(s): 2.0b2-1
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 07 August 2012, 09:51 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#30940 

Loading...