espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo-users] problem fom installing the ESPResSo


From: Jean-Noël Grad
Subject: Re: [ESPResSo-users] problem fom installing the ESPResSo
Date: Wed, 17 Apr 2019 17:12:06 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Hi,

It looks like your version of Cython is expecting either #coding=ascii or #coding=utf-8 as the second line of the .pyx files. Since the second line of each .pyx is just a comment line, and ASCII encoding is used, Cython most likely defaulted to ASCII when generating the file 'src/python/espressomd/polymer.cpp'. However, the generated .cpp files contain the full path to the original .pyx for debugging purposes and creates variable names based on that full path. In your case, you're compiling in a folder containing UTF-8 characters: '/home/zhrq/下载/espresso-4.0.1/src/python/espressomd/polymer.pyx', so you might have UTF-8 characters in some variable names of the .cpp file.

You could try manually inserting the command #coding=utf-8 at the second line of every .pyx file to see if it solves the issue, or try compiling in a folder containing only ASCII characters.

Best regards,
JN

On 4/17/19 4:11 PM, address@hidden wrote:

hello

I'm trying to installing the software on Ubuntu-16.04.6. with the following 
command
     sudo apt install build-essential cmake cython python-numpy \
     libboost-all-dev openmpi-common fftw3-dev libhdf5-dev libhdf5-openmpi-dev \
     doxygen python-opengl python-sphinx python-pip libgsl-dev
     sudo apt install cmake-curses-gui
     mkdir build
     cd build
     cmake ..
     make
At last, I got the following error:
    /home/zhrq/下载/espresso-4.0.1/src/python/espressomd/polymer.pyx:2:10: Decoding 
error, missing or incorrect coding=<encoding-name> at top of source (cannot 
decode with encoding 'ascii': ordinal not in range(128))
src/python/espressomd/CMakeFiles/polymer.dir/build.make:93: recipe for target 
'src/python/espressomd/polymer.cpp' failed
make[2]: *** [src/python/espressomd/polymer.cpp] Error 1
make[2]: *** Deleting file 'src/python/espressomd/polymer.cpp'
CMakeFiles/Makefile2:5924: recipe for target 
'src/python/espressomd/CMakeFiles/polymer.dir/all' failed
make[1]: *** [src/python/espressomd/CMakeFiles/polymer.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

I'm confused about it. Thanks a lot!
Best Regards
Ricky Zhao


address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]