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

ImportError: DLL load failed while importing ans: #273

Open
WenBingo opened this issue Feb 27, 2024 · 1 comment
Open

ImportError: DLL load failed while importing ans: #273

WenBingo opened this issue Feb 27, 2024 · 1 comment

Comments

@WenBingo
Copy link

Hello, I would like to ask you a question about the installation of compressai “Successfully installed compressai-1.2.4.dev0” . I successfully installed cmpressai, but I got the following error when importing:

import compressai
Traceback (most recent call last):
File "", line 1, in
File "F:\compressai\compressai_init_.py", line 30, in
from compressai import (
File "F:\compressai\compressai\latent_codecs_init_.py", line 38, in
from .rasterscan import RasterScanLatentCodec
File "F:\compressai\compressai\latent_codecs\rasterscan.py", line 38, in
from compressai.ans import BufferedRansEncoder, RansDecoder
ImportError: DLL load failed while importing ans: 找不到指定的程序。

@fracape
Copy link
Collaborator

fracape commented Feb 28, 2024

Hi, this could be due to the merge of the PR on GMM using cpp torch extensions. This needed to be handled with care as the build needs to match cuda / python used to build torch. I reverted to a classical use of pybind of the ANS cpp extension as we provide compressai as a package and it's complicated to support all versions. Please pull the current master or tag 1.2.5 and re-install. Let me know if the problem persist and please provide your environment as detailed in the template issue.

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

2 participants