I am trying install espresso 4.0.2 with python 3. The cmake command could be executed successfully, but when I tried to compile the source code, I got errors below:
[ 61%] Generating code_info.pyx
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/home/shawn/sourcecode/espresso/src/python/espressomd/io/__init__.py", line 17, in <module>
File "/home/shawn/sourcecode/espresso/src/python/espressomd/io/writer/__init__.py", line 17, in <module>
ValueError: attempted relative import beyond top-level package
/bin/sh: line 1: 15371 Aborted (core dumped) /home/shawn/soft/python3/bin/python3 gen_code_info.py /home/shawn/sourcecode/espresso/src/features.def /home/shawn/sourcecode/espresso/build4/src/python/espressomd/code_info.pyx
make: *** [src/python/espressomd/code_info.pyx] Error 134
make: *** [src/python/espressomd/CMakeFiles/code_info.dir/all] Error 2
make: *** [all] Error 2
It's so confusing, because I can successfully install espresso with python 2 on the same computer and I can also install espresso with python 3 on another computer.
Does anyone know how to fix this? Thank you very much.