未定义的符号:__ intel_sse2_strcpy

时间:2017-03-05 17:21:57

标签: python

我正在尝试按照使用setup.py 构建部分https://atztogo.github.io/phonopy/install.html下的说明在我们的超级计算机的登录节点上安装 phonopy

基本上,只有两个命令:

tar xvfz phonopy-1.11.2.tar.gz
python setup.py install --user

安装没有问题;但是,当我使用它时,我收到以下错误undefined symbol: __intel_sse2_strcpy。以下是完整的错误消息:

/home/syuan43/.local/bin/bandplot 
Traceback (most recent call last):
  File "/home/syuan43/.local/bin/bandplot", line 4, in <module>
    __import__('pkg_resources').run_script('phonopy==1.11.8.5', 'bandplot')
  File "/software/CentOS-6/tools/python-2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 726, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/software/CentOS-6/tools/python-2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1491, in run_script
    exec(script_code, namespace, namespace)
  File "/home/syuan43/.local/lib/python2.7/site-packages/phonopy-1.11.8.5-py2.7-linux-x86_64.egg/EGG-INFO/scripts/bandplot", line 52, in <module>

  File "build/bdist.linux-x86_64/egg/phonopy/__init__.py", line 37, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/api_phonopy.py", line 39, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/structure/symmetry.py", line 37, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/structure/spglib.py", line 35, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/_spglib.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/_spglib.py", line 6, in __bootstrap__
ImportError: /home/syuan43/.python-eggs/phonopy-1.11.8.5-py2.7-linux-x86_64.egg-tmp/phonopy/_spglib.so: undefined symbol: __intel_sse2_strcpy

不确定这是否有帮助,这是我正在使用的模块:

$ module list
Currently Loaded Modules:
  1) ifort_icc/15.0   2) intel_mpi/5.0.1   3) python/2.7.9

知道如何解决上述问题?或者任何建议可能是什么原因?

2 个答案:

答案 0 :(得分:0)

(旧问题,但我会为下一个我添加一个答案。)

对我来说,这是一个编译器问题。正在执行:

export CC=gcc

之前进行点安装为我解决了这个问题。

另请参阅:https://github.com/jswhit/pyproj/issues/76

答案 1 :(得分:0)

就我而言,卸载 cf_units 并再次安装有效。我从 PIP 卸载了 cf_units 并使用 anaconda 安装

pip uninstall cf_units
conda install -c conda-forge cf_units