Menu

#42 Doesn't work with Python 3.8+

v1.0 (example)
closed
nobody
None
5
2022-06-18
2022-02-10
zootus
No

There is a problem with python 3.8+ i guess:

$ lsb_release -d
Description:    Ubuntu 20.04.3 LTS

$ python --version
Python 3.8.10

[PySolFC-3000]$ make
python setup.py install
Traceback (most recent call last):
  File "setup.py", line 27, in <module>
    for s in file('MANIFEST.in'):
NameError: name 'file' is not defined
make: *** [Makefile:13: install] Error 1

[PySolFC-3000]$ python pysol.py 
Traceback (most recent call last):
  File "pysol.py", line 26, in <module>
    init()
  File "/mnt/py/pysolfc-code/PySolFC/PySolFC-3000/pysollib/init.py", line 84, in init
    import tkinter
ModuleNotFoundError: No module named 'tkinter'

[trunk]$ python pysol.py 
Traceback (most recent call last):
  File "pysol.py", line 25, in <module>
    from pysollib.init import init
  File "/mnt/py/pysolfc-code/PySolFC/trunk/pysollib/init.py", line 98
    print 'PySol debugging: set CHECK_GAMES to True'
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('PySol debugging: set CHECK_GAMES to True')?

Discussion

  • Joe R.

    Joe R. - 2022-02-11

    Looking at this error, it looks like you're trying to run from the code in SourceForge, correct?

    If so, the SourceForge code is a bit out of date, and from before when Python 3 support was added. Since then, the latest code has been moved to GitHub and can be found at https://github.com/shlomif/PySolFC.

     
    👍
    1
  • zootus

    zootus - 2022-02-12

    Thanks, the git one works ;-)

     
  • Joe R.

    Joe R. - 2022-06-18
    • status: open --> closed
     

Log in to post a comment.