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: cannot import name 'ONNX_ML' #2907

Closed
canozcivelek opened this issue Jul 17, 2020 · 9 comments
Closed

ImportError: cannot import name 'ONNX_ML' #2907

canozcivelek opened this issue Jul 17, 2020 · 9 comments
Labels
question Questions about ONNX

Comments

@canozcivelek
Copy link

Where does this originate from?

  • I built ONNX from source on my Jetson Nano, the installation completed without error. However when I import onnx, it gives: from .onnx_cpp2py_export import ONNX_ML
    ImportError: cannot import name 'ONNX_ML'

Any suggestions? Thanks a lot!

@canozcivelek canozcivelek added the question Questions about ONNX label Jul 17, 2020
@SophieFeng
Copy link

I also met this problem, do you solved?

@lyp0413
Copy link

lyp0413 commented Aug 19, 2020

@SophieFeng @canozcivelek
How about trying another working directory?

@anilsathyan7
Copy link

Facing same issue in master branch....

@arashb
Copy link

arashb commented Nov 3, 2020

Facing same issue in master branch....

@anilsathyan7 @SophieFeng setting ONNX_ML=1 env. variable before building ONNX fixed the issue for me. See also here.

@illiad-tigerdhl
Copy link

@arashb I setting ONNX_ML=1,but also can’t fix it, what can i do to fix it ?

@leo-paz
Copy link

leo-paz commented Jan 18, 2021

@arashb I did the same thing but still seeing this error

@whcjb
Copy link

whcjb commented Mar 16, 2021

the same error, build from source, set onnx_ml=1, how to resolve, someone help?

@whcjb
Copy link

whcjb commented Mar 17, 2021

it's path problem, when cd onnx/onnx, it works. pip install may auto set the path. but when it comes to building from source, how to set the path ?

@xiafeimao
Copy link

it's path problem, when cd onnx/onnx, it works. pip install may auto set the path. but when it comes to building from source, how to set the path ?

Yes, when switching to other paths instead of run at the onnx/ root path, then everything is OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions about ONNX
Projects
None yet
Development

No branches or pull requests

9 participants