-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiled version of Paddle doesn't work with Ubuntu 21.10 #36801
Comments
Paddle currently only supported Ubuntu16.04 and Ubuntu18.04 |
Hello, |
At present, Paddle is not supported Ubuntu20.04 and above because gcc9 in the OS. |
@esythan Can't seem to get it working after installing gcc8 on Ubuntu21.04 Is there any other option? |
@esythan I can confirm the same behaviour on my end: gcc-8 (and the associated libraries) were already installed, but that doesn't solve the issue. |
2022 past one third, please support 21.04..... Got the same issue on 21.04... and clearly it was nothing to do with gcc8.... |
ubuntu 22.04 released. but paddle still can not support it. sorry to hear this |
Do not sorry, this is normal for Baidu's product. Don't take it serious. I would suggest turn to torch or megengine, they are fabulous. |
For Arch Linux same too as Ubuntu. aur@073f7e86009a ~]$ python -m pip install paddlepaddle==2.3.0 -i https://mirror.baidu.com/pypi/simple
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://mirror.baidu.com/pypi/simple
Collecting paddlepaddle==2.3.0
Downloading https://mirror.baidu.com/pypi/packages/24/52/aa2f647b9437a70a43e51bc50e86e6df2b547c6ec243363fcf3f7f24329f/paddlepaddle-2.3.0-cp310-cp310-manylinux1_x86_64.whl (112.4 MB)
|████████████████████████████████| 112.4 MB 103 kB/s
Requirement already satisfied: six in /usr/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (1.16.0)
Requirement already satisfied: Pillow in ./.local/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (9.1.0)
Requirement already satisfied: protobuf>=3.1.0 in ./.local/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (3.20.1)
Requirement already satisfied: numpy>=1.13 in ./.local/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (1.22.3)
Requirement already satisfied: paddle-bfloat==0.1.2 in ./.local/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (0.1.2)
Requirement already satisfied: decorator in ./.local/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (5.1.1)
Requirement already satisfied: requests>=2.20.0 in /usr/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (2.27.1)
Requirement already satisfied: opt-einsum==3.3.0 in ./.local/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (3.3.0)
Requirement already satisfied: astor in ./.local/lib/python3.10/site-packages (from paddlepaddle==2.3.0) (0.8.1)
Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.10/site-packages (from requests>=2.20.0->paddlepaddle==2.3.0) (4.0.0)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.10/site-packages (from requests>=2.20.0->paddlepaddle==2.3.0) (3.3)
Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.10/site-packages (from requests>=2.20.0->paddlepaddle==2.3.0) (1.26.9)
Installing collected packages: paddlepaddle
WARNING: The script fleetrun is installed in '/home/aur/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed paddlepaddle-2.3.0
[aur@073f7e86009a ~]$ python
Python 3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
Error: Can not import avx core while this file exists: /home/aur/.local/lib/python3.10/site-packages/paddle/fluid/core_avx.so
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/aur/.local/lib/python3.10/site-packages/paddle/__init__.py", line 25, in <module>
from .framework import monkey_patch_variable
File "/home/aur/.local/lib/python3.10/site-packages/paddle/framework/__init__.py", line 17, in <module>
from . import random # noqa: F401
File "/home/aur/.local/lib/python3.10/site-packages/paddle/framework/random.py", line 16, in <module>
import paddle.fluid as fluid
File "/home/aur/.local/lib/python3.10/site-packages/paddle/fluid/__init__.py", line 36, in <module>
from . import framework
File "/home/aur/.local/lib/python3.10/site-packages/paddle/fluid/framework.py", line 37, in <module>
from . import core
File "/home/aur/.local/lib/python3.10/site-packages/paddle/fluid/core.py", line 298, in <module>
raise e
File "/home/aur/.local/lib/python3.10/site-packages/paddle/fluid/core.py", line 256, in <module>
from . import core_avx
ImportError: /home/aur/.local/lib/python3.10/site-packages/paddle/fluid/core_avx.so: undefined symbol: _dl_sym, version GLIBC_PRIVATE |
ubuntu 18.04 gcc5 gcc6 gcc10 gcc11均不行。 |
seems the root cause is glibc version mismatch |
When install
at the moment to import is not right
|
Python 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:18)
|
Can someone fix it? |
On my archlinux, i try to fix build with gcc 12.1, it work well for now |
I have one machine of gcc9.4.0,it run normally。but other two linux of gcc9.4.0 can not . It seems that having nothing to do with the GCC version.
发自我的iPhone
…------------------ Original ------------------
From: FlyInWind ***@***.***>
Date: 周日,7月 24,2022 0:39 上午
To: PaddlePaddle/Paddle ***@***.***>
Cc: phoenixes94 ***@***.***>, Comment ***@***.***>
Subject: Re: [PaddlePaddle/Paddle] Compiled version of Paddle doesn't work with Ubuntu 21.10 (Issue #36801)
Can someone fix it?
On my archlinux, i try to fix build with gcc 12.1, it work well for now
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
how to build your paddle on my linux? |
just follow official doc, https://www.paddlepaddle.org.cn/documentation/docs/en/install/compile/linux-compile_en.html#anchor-0 |
We will fix this in release/2.4 |
has been fixed in develop branch. |
@jzhang533 could you list the PRs which fixed this problem? thanks |
#45351 switched to use upstream brpc. |
When will this change #45351 be released? |
next release is version 2.4, release candidates will be available at end of September. |
Ubuntu 22.04 fail too |
can you post more detailed information, e.g.: paddle version, error message, etc. |
ubuntu 22.04 too... |
@jzhang533 Hi, is there a cpu based nightly build package exist? |
should be this page: |
version: latest version |
Hi, which whl package are you using? Can you post the link to the installation package? You can use We tested the package with commit number |
My issue got resolved by installing v2.4 rc!!! pip install paddlepaddle==2.4.0rc0 |
System information
Paddle doesn't work anymore in the last stable version of Ubuntu (21.10). I didn't have any issue with the previous version (21.04). It seems the compiled version out of pypi misses a link to a dynamic library.
To Reproduce
Steps to reproduce the behavior
pip install paddlepaddle
python -c 'import paddle.fluid'
You immediately get the following error:
If I follow the exact same steps on a different OS (debian stable or debian unstable for instance), I don't get this error.
The text was updated successfully, but these errors were encountered: