PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.09k stars 5.55k forks source link

【Conda Install paddlepaddle-gpu Error】ImportError: paddle/fluid/core_avx.so: undefined symbol: _dl_sym, version GLIBC_PRIVATE #40215

Closed Irvingao closed 5 months ago

Irvingao commented 2 years ago
(paddle) pc@pc-Irvingao:~$ python
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
Error: Can not import avx core while this file exists: /home/pc/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/core_avx.so
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pc/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/__init__.py", line 25, in <module>
    from .fluid import monkey_patch_variable
  File "/home/pc/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/__init__.py", line 36, in <module>
    from . import framework
  File "/home/pc/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/framework.py", line 37, in <module>
    from . import core
  File "/home/pc/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/core.py", line 294, in <module>
    raise e
  File "/home/pc/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/core.py", line 256, in <module>
    from .core_avx import *
ImportError: /home/pc/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/core_avx.so: undefined symbol: _dl_sym, version GLIBC_PRIVATE
>>> 
paddle-bot-old[bot] commented 2 years ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

Irvingao commented 2 years ago

I got the same error when I install paddlepaddle cpu version. As a consequence, are there some related dependences lost or missing?

conda install paddlepaddle==2.2.2 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/

Irvingao commented 2 years ago

I have installed gcc-5 a few days ago, the version info as follow:

(paddle) pc@pc-Irvingao:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.5.0-12ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1) 
zhiboniu commented 2 years ago

Paddle is tested in gcc8 and gcc5 is not well supported, maybe you can try gcc8 it should work well.

mmdbhs commented 2 years ago

i have tried gcc8, it did't work

jack-lijing commented 2 years ago

gcc 11 did't work.

holdengreen commented 2 years ago

I have the same error. Although I'm using CPU and my GCC is recent.

chiyuki0325 commented 2 years ago

gcc 12 didn't work

mnansary commented 1 year ago

same error

paddle-bot[bot] commented 5 months ago

Since you haven\'t replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。