Skip to content
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

官方文档提供的docker容器import paddle会报错Illegal instruction (core dumped) #69890

Open
bossdong886 opened this issue Dec 2, 2024 · 9 comments
Assignees

Comments

@bossdong886
Copy link

bug描述 Describe the Bug

部署命令如下:
docker pull registry.baidubce.com/paddlepaddle/paddle:3.0.0b1

docker run --name paddle_docker -itd -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:3.0.0b1 /bin/bash
pip install paddleocr -i https://pypi.tuna.tsinghua.edu.cn/simple

然后导入包:
import paddleocr
报错如下:
Python 3.10.13 (main, Aug 25 2023, 13:20:03) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import paddleocr
Illegal instruction (core dumped)

其他补充信息 Additional Supplementary Information

No response

@lijialin03
Copy link
Contributor

您好,感谢您的反馈,目前在linux机器上按照上述描述复现相关问题时没有遇到报错,麻烦提供一下问题出现的相关环境,以便复现问题,谢谢~
image

@sunxingxingtf
Copy link

docker run --gpus all --name paddlex -v $PWD:/paddle --shm-size=8g --network=host -it ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/paddlex:paddlex3.0.0b2-paddlepaddle3.0.0b2-gpu-cuda12.3-cudnn9.0-trt8.6 /bin/bash

λ 6d606eea1c14 ~/PaddleX python
Python 3.10.15 (main, Sep 7 2024, 18:35:33) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import paddleclas
Illegal instruction

λ 6d606eea1c14 ~/PaddleX python
Python 3.10.15 (main, Sep 7 2024, 18:35:33) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import paddleocr
Illegal instruction

@sunxingxingtf
Copy link

@bossdong886 @lijialin03

@sunxingxingtf
Copy link

我这个是在win10系统,docker desktop里面启动的容器。

@lijialin03
Copy link
Contributor

lijialin03 commented Dec 6, 2024

我这个是在win10系统,docker desktop里面启动的容器。

您好,现在paddle官网显示windows下暂不支持paddlepaddle3.0-beta版的docker,
image
请问ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/paddlex:paddlex3.0.0b2-paddlepaddle3.0.0b2-gpu-cuda12.3-cudnn9.0-trt8.6这个docker是来源于哪里的docker呀

@sunxingxingtf
Copy link

@lijialin03 非常感谢您及时的回复,这是链接,https://paddlepaddle.github.io/PaddleX/latest/installation/paddlepaddle_install.html

@bossdong886
Copy link
Author

docker run --gpus all --name paddlex -v $PWD:/paddle --shm-size=8g --network=host -it ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/paddlex:paddlex3.0.0b2-paddlepaddle3.0.0b2-gpu-cuda12.3-cudnn9.0-trt8.6 /bin/bash

λ 6d606eea1c14 ~/PaddleX python Python 3.10.15 (main, Sep 7 2024, 18:35:33) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import paddleclas
Illegal instruction

λ 6d606eea1c14 ~/PaddleX python Python 3.10.15 (main, Sep 7 2024, 18:35:33) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import paddleocr
Illegal instruction

你好,问题已经解决了,宿主机需要支持avx,创建的容器才可以运行paddle成功

@sunxingxingtf
Copy link

@bossdong886 非常感谢您的回复,这是我主机的CPU,是不是还要有其他设置呢?
2EA41478-B55A-4169-8A9E-6EF479EF3125

@lijialin03
Copy link
Contributor

lijialin03 commented Dec 6, 2024

@lijialin03 非常感谢您及时的回复,这是链接,https://paddlepaddle.github.io/PaddleX/latest/installation/paddlepaddle_install.html

嗯嗯好的,由于paddlepaddle官网上windows下暂不支持docker(即使是2.6下也需要通过源码编译来安装),这个docker可能是由PaddleX自己编的版本,不太确定是否支持windows,可以去PaddleX套件的仓库 https://github.com/PaddlePaddle/PaddleX 提个issue
如果想要通过源码编译安装2.6的docker,可以参考paddlepaddle官网https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/compile/windows-compile.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants