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

No module named 'xxxx' error #59

Open
yuweimian-shy opened this issue Sep 3, 2024 · 9 comments
Open

No module named 'xxxx' error #59

yuweimian-shy opened this issue Sep 3, 2024 · 9 comments

Comments

@yuweimian-shy
Copy link

No description provided.

@yuweimian-shy
Copy link
Author

OS:Ubuntu20.04
CPU arch: amd64
when I import the third package, i found the following error
2
so i following the FAQ.md to modify the python_lib_path in your config.yaml to include the shared object paths required.
3
When I tested it again, I've found that the code won't work even without the third-party libraries.
1

@yuweimian-shy yuweimian-shy reopened this Sep 3, 2024
@yuweimian-shy yuweimian-shy changed the title No No module named 'xxxx' error Sep 3, 2024
@sharptornadoqsh
Copy link

the faq is wrong.
1、add the needed syscall in file https://github.com/langgenius/dify-sandbox/blob/main/internal/static/python_syscall/syscalls_amd64.go

if you do not know which syscall the numpy needs,you can add 探0、1、2、3、...to 500

2、add the need linux lib the numpy needs

3、rebuild and tag it to a docker

@yuweimian-shy
Copy link
Author

yes, i have add 0-999 in syscalls_amd64.go

the faq is wrong. 1、add the needed syscall in file https://github.com/langgenius/dify-sandbox/blob/main/internal/static/python_syscall/syscalls_amd64.go

if you do not know which syscall the numpy needs,you can add 探0、1、2、3、...to 500

2、add the need linux lib the numpy needs

3、rebuild and tag it to a docker

yes, i have add 0-999 in syscalls_amd64.go and rebuild it; then i docker it into a image, when i run the code , meet the following wrong.
Uploading 2.png…

@sharptornadoqsh
Copy link

sharptornadoqsh commented Sep 3, 2024 via email

@Hesccc
Copy link

Hesccc commented Sep 3, 2024

I also encountered this BUG, please speed up the fix

@Yeuoly
Copy link
Collaborator

Yeuoly commented Sep 14, 2024

Please upgrade to the latest version

@Hesccc
Copy link

Hesccc commented Sep 24, 2024

Please upgrade to the latest version请升级到最新版本

The latest v0.2.9 version still has problems, and is configured according to F&Q doc.

@yutingcaicyt
Copy link

I encountered similar problem, I got the error like this:
READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.10 from "/usr/local/bin/python3.10" * The NumPy version is: "1.22.0" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: libpthread.so.0: cannot open shared object file: No such file or directory ne 59, in <module> File "<string>", line 3, in <module> File "/usr/local/lib/python3.10/site-packages/numpy/__init__.py", line 144, in <module> from . import core File "/usr/local/lib/python3.10/site-packages/numpy/core/__init__.py", line 49, in <module> raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.10 from "/usr/local/bin/python3.10" * The NumPy version is: "1.22.0" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: libpthread.so.0: cannot open shared object file: No such file or directory error: exit status 255

@wwh-coder
Copy link

@sharptornadoqsh

the faq is wrong. 1、add the needed syscall in file https://github.com/langgenius/dify-sandbox/blob/main/internal/static/python_syscall/syscalls_amd64.go

if you do not know which syscall the numpy needs,you can add 探0、1、2、3、...to 500

2、add the need linux lib the numpy needs

3、rebuild and tag it to a docker

Is that so? My problem still exists

Uploading image.png…

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

No branches or pull requests

6 participants