pytorch / data

A PyTorch repo for data loading and utilities to be shared by the PyTorch domain libraries.
BSD 3-Clause "New" or "Revised" License
1.13k stars 152 forks source link

A problem about ImportError: libssl.so.3: cannot open shared object file: No such file or directory #1316

Closed guest-oo closed 2 months ago

guest-oo commented 2 months ago

πŸ› Describe the bug

File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/dgl/graphbolt/base.py", line 8, in from torchdata.datapipes.iter import IterDataPipe File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/datapipes/init.py", line 9, in from torchdata import _extension # noqa: F401 File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/init.py", line 29, in getattr return importlib.import_module("." + name, name) File "/home/a/anaconda3/envs/shiyan/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/_extension.py", line 34, in _init_extension() File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/_extension.py", line 31, in _init_extension from torchdata import _torchdata as _torchdata File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/init.py", line 29, in getattr return importlib.import_module("." + name, name) File "/home/a/anaconda3/envs/shiyan/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: libssl.so.3: cannot open shared object file: No such file or directory

Versions

torch=2.1.0 torchdata=0.8.0 python=3.9

guest-oo commented 2 months ago

πŸ› 描述 bug

File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/dgl/graphbolt/base.py", line 8, in from torchdata.datapipes.iter import IterDataPipe File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/datapipes/init.py", line 9, in from torchdata import _extension # noqa: F401 File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/init.py", line 29, in getattr return importlib.import_module("." + name, name) File "/home/a/anaconda3/envs/shiyan/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/_extension.py", line 34, in _init_extension() File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/_extension.py", line 31, in _init_extension from torchdata import _torchdata as _torchdata File "/home/a/anaconda3/envs/shiyan/lib/python3.9/site-packages/torchdata/init.py", line 29, in getattr return importlib.import_module("." + name, name) File "/home/a/anaconda3/envs/shiyan/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: libssl.so.3: cannot open shared object file: No such file or directory

η‰ˆζœ¬

torch=2.1.0 torchdata=0.8.0 python=3.9

lihytotoro commented 1 week ago

I encountered the same problem when I tried from torchdata import _torchdata as _torchdata and I wonder how you solved this problem. Thanks!