I'm very glad to see that USPEX has been updated to 10.4 which finally includes python3, which is very good because the end of life of python2.7.
I did, on my personal copy, the port of USPEX 10.3 to be used with python3.
It is not clear to me whether passing from python2.7 to python3 (in my case 3.7, but also 3.8 and 3.9 are available in my Linux Gentoo) is smooth or not.
I'm doing the test on EX01 and the error reported below appears to be related to the use of numpy, particularly the module numpy.random. In particular I have no idea of compatibilty between the numpy 1.16 .6 (the last version compatible with python2.7) and numpy 1.19.1 (used with python3.7). Does the random module changed?
Error using python_uspex (line 91)
System error: Traceback (most recent call last):
File "/opt/USPEX104/application/archive/src/FunctionFolder/random_topology.py", line 3, in <module>
from randomTopology import generate_structure
File "randomTopology.py", line 4, in init randomTopology
File "/usr/lib/python3.7/site-packages/numpy/__init__.py", line 151, in <module>
from . import random
File "/usr/lib/python3.7/site-packages/numpy/random/__init__.py", line 179, in <module>
from . import _pickle
File "/usr/lib/python3.7/site-packages/numpy/random/_pickle.py", line 1, in <module>
from .mtrand import RandomState
File "mtrand.pyx", line 1, in init numpy.random.mtrand
File "bit_generator.pyx", line 1, in init numpy.random.bit_generator
TypeError: Shared Cython type generator has the wrong size, try recompiling
Command executed: python3 -W ignore /opt/USPEX104/application/archive/src/FunctionFolder/random_topology.py 0 118.8 NONE 1 8
Error in random_topology (line 10)
Error in Random_Init_300 (line 52)
Error in initialize_POP_STRUC_300 (line 36)
Error in Initialize (line 46)
Error in Start (line 46)
Error in USPEX (line 39)
MATLAB:python:ExecutionError
I would appreciate any hints.