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

Support for torchaudio in Pytorch container #1109

Closed
bbalaji-ucsd opened this issue May 18, 2021 · 4 comments
Closed

Support for torchaudio in Pytorch container #1109

bbalaji-ucsd opened this issue May 18, 2021 · 4 comments

Comments

@bbalaji-ucsd
Copy link

When I try installing torchaudio and import it, it gives me the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/conda/lib/python3.6/site-packages/torchaudio/__init__.py", line 1, in <module>
    from . import extension  # noqa: F401
  File "/opt/conda/lib/python3.6/site-packages/torchaudio/extension/__init__.py", line 5, in <module>
    _init_extension()
  File "/opt/conda/lib/python3.6/site-packages/torchaudio/extension/extension.py", line 11, in _init_extension
    _init_script_module(ext)
  File "/opt/conda/lib/python3.6/site-packages/torchaudio/extension/extension.py", line 18, in _init_script_module
    torch.classes.load_library(path)
  File "/opt/conda/lib/python3.6/site-packages/torch/_classes.py", line 46, in load_library
    torch.ops.load_library(path)
  File "/opt/conda/lib/python3.6/site-packages/torch/_ops.py", line 104, in load_library
    ctypes.CDLL(path)
  File "/opt/conda/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /opt/conda/lib/python3.6/site-packages/torchaudio/_torchaudio.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs
@elektrozitrone
Copy link

elektrozitrone commented Feb 1, 2022

it is a different symbol, when installing torchaudio==0.9.1 on pytorch-training:1.9.1-cpu-py38-ubuntu20.04:

OSError: /opt/conda/lib/python3.8/site-packages/torchaudio/_torchaudio.so: undefined symbol: _ZNK5torch8autograd4Node4nameEv

but probably the same problem. as commented in #1533 it is probably an incompatibility in the build settings. unfortunately i could not yet find informations on how the pytorch binary wheels are built, as in the Dockerfiles they are only downloaded from s3.

could you provide documentation on how to build torchaudio for the sagemaker containers? or even better provide a build in s3 like for torch and torchvision packages? or best just include a compatible torchaudio build in the sagemaker images?

the torchaudio package does not have additional install-time dependencies and does not add much to the image size.

@Unlicensed-driver-ljx
Copy link

源码构建看我的安装那篇https://blog.csdn.net/weixin_46151178?type=blog

@tejaschumbalkar
Copy link
Contributor

Hello @bbalaji-ucsd,
torchaudio is now installed by default on supported PyTorch Training DLCs. You can checkout our latest PyTorch DLC v2.2
763104351884.dkr.ecr.us-west-2.amazonaws.com/pytorch-training:2.2.0-gpu-py310-cu121-ubuntu20.04-sagemaker-v1.0

@arjkesh
Copy link
Contributor

arjkesh commented Mar 12, 2024

Closing issue due to lack of response. Please feel free to reopen if this issue persists.

@arjkesh arjkesh closed this as completed Mar 12, 2024
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

5 participants