Unable to open /dev/urandom #41

Open
opened 2026-02-16 09:19:25 -05:00 by yindo · 4 comments
Owner

Originally created by @TheNha on GitHub (Sep 13, 2024).

Hi,
I install torch version 2.4.1 in docker. I added .so file libraries for torch library, it in internal/static/config_default_amd64.go.
If i exec docker container and run pip show torch, it worked.

But I create workflow CODE, and import torch. I got a error.
Node Code run failed: Traceback (most recent call last): File "/var/sandbox/sandbox-python/tmp/acf0447c_3fc8_40ba_bf4d_3f20123c4389.py", line 48, in <module> File "<string>", line 3, in <module> File "/usr/local/lib/python3.10/site-packages/torch/__init__.py", line 290, in <module> from torch._C import * # noqa: F403 RuntimeError: Unable to open /dev/urandom error: exit status 255

Please show to config or fix this error.
Thanks and regards.

Originally created by @TheNha on GitHub (Sep 13, 2024). Hi, I install torch version 2.4.1 in docker. I added .so file libraries for torch library, it in internal/static/config_default_amd64.go. If i exec docker container and run pip show torch, it worked. But I create workflow CODE, and import torch. I got a error. `Node Code run failed: Traceback (most recent call last): File "/var/sandbox/sandbox-python/tmp/acf0447c_3fc8_40ba_bf4d_3f20123c4389.py", line 48, in <module> File "<string>", line 3, in <module> File "/usr/local/lib/python3.10/site-packages/torch/__init__.py", line 290, in <module> from torch._C import * # noqa: F403 RuntimeError: Unable to open /dev/urandom error: exit status 255` Please show to config or fix this error. Thanks and regards.
Author
Owner

@lennonn commented on GitHub (Jan 22, 2025):

how to solve the problem?

@lennonn commented on GitHub (Jan 22, 2025): how to solve the problem?
Author
Owner

@sssunXw commented on GitHub (Apr 21, 2025):

Is there a solution to this problem?

@sssunXw commented on GitHub (Apr 21, 2025): Is there a solution to this problem?
Author
Owner

@johnniev5 commented on GitHub (May 9, 2025):

any updates?

@johnniev5 commented on GitHub (May 9, 2025): any updates?
Author
Owner

@minglong-huang commented on GitHub (May 9, 2025):

any updates?

@minglong-huang commented on GitHub (May 9, 2025): any updates?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-sandbox#41