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

Circular import #187

Open
xiaojieguo opened this issue Nov 27, 2023 · 1 comment
Open

Circular import #187

xiaojieguo opened this issue Nov 27, 2023 · 1 comment

Comments

@xiaojieguo
Copy link

Hi
I installed the newest package, but have the following error:

from onnx2torch import convert
ImportError: cannot import name 'convert' from partially initialized module 'onnx2torch' (most likely due to a circular import)

What's wrong with me?

@colinzhaoxp
Copy link

Hello, I met the same issue and successfully solved it.
The reason for "circular import" is that the name of my py file is "onnx2torch", but the model's name is onnx2torch, so they are in conflict.
Maybe you should check you file name : )

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