Menu

#867 Python 2.x EoL warning

2.x
closed
nobody
None
1
2021-02-27
2019-11-30
Rick Tanner
No

The Python code used in Crossfire appears to be 2.7 based (or earlier). Such code is triggering warnings like this:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

The compile process of Crossfire does not detect/work with Python 3.7.5 per my testing on Fedora-31.

Discussion

  • SilverNexus

    SilverNexus - 2019-12-02

    I saw some commits that made some changes toward 3.x compatablility (e.g. print() instead of print), but I don't know how much more is needed to make it fully there.

     
    • Kevin Zheng

      Kevin Zheng - 2019-12-02

      The server now compiles with Python 3 if you change the PKG_CHECK_MODULES to use "python3" instead of "python2".

      I'm waiting to switch over until I can add better script error reporting. There are lots of map scripts to fix; since that will take a while, I'm hoping that better error reporting will let us switch first, then fix as we go.

       
  • Kevin Zheng

    Kevin Zheng - 2019-12-05
    • status: open --> analyzed
     
  • Kevin Zheng

    Kevin Zheng - 2019-12-05

    We will make the switch to Python 3 once some more scripts are tested.

     
  • Nicolas Weeger

    Nicolas Weeger - 2021-01-27
    • status: analyzed --> patched
     
  • Nicolas Weeger

    Nicolas Weeger - 2021-01-27

    Server now uses Python 3, with a convert script that needs to be called for database migration.

     
  • Nicolas Weeger

    Nicolas Weeger - 2021-02-27
    • status: patched --> closed
     

Log in to post a comment.

Monday.com Logo