hawkthorne / hawkthorne-journey

Digital Estate Planning: The Game
projecthawkthorne.com
1.09k stars 452 forks source link

Build fails locally and in travis-ci #2580

Closed uiradev closed 3 years ago

uiradev commented 3 years ago

The following is the error that is happening when you run make run locally:

bin/tmx2lua src/maps/abed-castle-interior.tmx failed MSpanList_Insert 0x280000 0x6a2a3eac9bbb 0x0 fatal error: MSpanList_Insert make: *** [src/maps/abed-castle-interior.lua] Error 2

The problem is related to the artifact downloaded from the following URL:

$(wget) https://github.com/hawkthorne/tmx2lua/releases/download/v1.0.0/$(TMXTAR)

To solve the problem you can build tmx2lua during the make process.

Also, the python version (and it's dependencies) are no longer working with travis-ci:

Warning related to version:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Error related to dependencies:

ERROR: Command errored out with exit status 1: /home/travis/build/user/hawkthorne-journey/venv/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lfkwgk3o/pyopenssl_68c6876b2f6947c683b261a7380d5f12/setup.py'"'"'; file='"'"'/tmp/pip-install-lfkwgk3o/pyopenssl_68c6876b2f6947c683b261a7380d5f12/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-wdxfo9te/install-record.txt --single-version-externally-managed --compile --install-headers /home/travis/build/uiradev/hawkthorne-journey/venv/include/site/python3.6/pyOpenSSL Check the logs for full command output. 819Makefile:137: recipe for target 'venv' failed 820make: *** [venv] Error 1 821The command "make deploy" exited with 2.

To solve the travis-ci problem you can update the python version, and it's dependencies.

niamu commented 3 years ago

Resolved now that #2580 is merged.