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

执行python setup.py install报错: 动态链接库(DLL)初始化例程失败,如何解决 #577

Open
wyyt1202 opened this issue Oct 9, 2024 · 1 comment

Comments

@wyyt1202
Copy link

wyyt1202 commented Oct 9, 2024

(mytorch) E:\learn_file\python\Quantify\ppq>python setup.py install
E:\learn_file\python\Quantify\ppq\ppq_init_.py:10: UserWarning: You are importing ppq within its own root folder (E:\learn_file\python\Quantify\ppq).
warnings.warn(message.format(os.getcwd()))

  ____  ____  __   ____                    __              __
 / __ \/ __ \/ /  / __ \__  ______ _____  / /_____  ____  / /
/ /_/ / /_/ / /  / / / / / / / __ `/ __ \/ __/ __ \/ __ \/ /

/ / / /__/ // / // / // / / / / // // / // / /
/
/ /
/ /___,/_,// //_/_/__//

Traceback (most recent call last):
File "E:\learn_file\python\Quantify\ppq\setup.py", line 2, in
from ppq.core import PPQ_CONFIG
File "E:\learn_file\python\Quantify\ppq\ppq_init_.py", line 13, in
from ppq.api.setting import (ActivationQuantizationSetting, DispatchingTable,
File "E:\learn_file\python\Quantify\ppq\ppq\api_init_.py", line 1, in
from ppq.lib import (register_calibration_observer, register_network_exporter,
File "E:\learn_file\python\Quantify\ppq\ppq\lib_init_.py", line 44, in
from .extension import (register_calibration_observer,
File "E:\learn_file\python\Quantify\ppq\ppq\lib\extension.py", line 7, in
from .common import EXPORTERS, PARSERS, QUANTIZER_COLLECTION
File "E:\learn_file\python\Quantify\ppq\ppq\lib\common.py", line 2, in
from ppq.parser import (AscendExporter, CaffeExporter, CaffeParser,
File "E:\learn_file\python\Quantify\ppq\ppq\parser_init_.py", line 9, in
from .nxp_exporter import NxpExporter
File "E:\learn_file\python\Quantify\ppq\ppq\parser\nxp_exporter.py", line 1, in
import onnx
File "D:\App\Anaconda\envs\mytorch\lib\site-packages\onnx_init_.py", line 77, in
from onnx.onnx_cpp2py_export import ONNX_ML
ImportError: DLL load failed while importing onnx_cpp2py_export: 动态链接库(DLL)初始化例程失败。

@wangtiance
Copy link

你的onnx是不是1.17,我试过降级到1.16.1可以:

https://blog.csdn.net/qq_38702496/article/details/141052666

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