FS#55605 - [fontforge] Fail to open webserver

Attached to Project: Arch Linux
Opened by Michael Schönitzer (Nudin) - Tuesday, 12 September 2017, 20:30 GMT
Last edited by Gaetan Bisson (vesath) - Friday, 08 December 2017, 19:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Starting the Webserver results in the following errors:
File "/usr/share/fontforge/python/collab/web-test-collab.py", line 71
print js
^
SyntaxError: Missing parentheses in call to 'print'
module.js:491
throw err;
^

Error: Cannot find module 'socket.io'

Looks like python2-code is started with with python3?

Additional info:
* package version(s): newses
* config and/or log files etc.: out-of-box


Steps to reproduce:
Tools -> Start Webserver in collab mode
This task depends upon

Closed by  Gaetan Bisson (vesath)
Friday, 08 December 2017, 19:46 GMT
Reason for closing:  No response
Comment by Gaetan Bisson (vesath) - Tuesday, 12 September 2017, 21:41 GMT
Fontforge seems to support both python2 and python3 (see fontforge/ffpython.h in the source tarball) so this should probably be reported upstream.
Comment by Gaetan Bisson (vesath) - Tuesday, 12 September 2017, 21:42 GMT
In fact if I manually edit /usr/share/fontforge/python/collab/web-test-collab.py to read "print(js)" instead of "print js" then I still get an error which seems unrelated to python2 vs python3:

Based on sources from 23:10 UTC 5-Aug-2017-ML-D.
Based on source from git with hash:
Joined session, font name: Untitled1
*** Error in `fontforge': free(): invalid pointer: 0x00007f33c0d31e90 ***
Aborted (core dumped)

Could you please report this upstream?

Loading...