scp-fs2open / wxLauncher

wxLauncher
Other
26 stars 12 forks source link

FTBFS: "No module named html.parser" #139

Closed onlyjob closed 8 years ago

onlyjob commented 8 years ago
Traceback (most recent call last): 
  File "scripts/onlinehelpmaker.py", line 19, in <module> 
    from helpparsers import Stage2Parser, Stage3Parser, Stage4Parser, Stage5Parser 
  File "/build/freespace2-launcher-wxlauncher-0.11.0+dfsg/scripts/helpparsers.py", line 9, in <module> 
    from html.parser import HTMLParser 
ImportError: No module named html.parser 
onlyjob commented 8 years ago

I see, onlinehelpmaker.py is incompatible with python2... Perhaps we need python3 on build time and -DPYTHON_EXECUTABLE=/usr/bin/python3 (found hint in #99). Not ideal but should work even with default python2...

Shouldn't README and/or release notes highlight that Python-3 is a build requirement? At the moment ReadMe.md is outdated as it suggests "Python 2.6+ (but not 3.x)"...

MageKing17 commented 8 years ago

It supports Python2 if you install the "future" package (pip install future), supposedly. On the other hand, making it polymorphic without that package isn't really that difficult... either way, the readme really should've been updated when Python3 was supported.

IssMneur commented 8 years ago

Sorry, I missed that the changes had broken python 2.7

onlyjob commented 8 years ago

Thanks! :)