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 #9

Open
singularity97 opened this issue Jul 7, 2021 · 1 comment
Open

ImportError #9

singularity97 opened this issue Jul 7, 2021 · 1 comment

Comments

@singularity97
Copy link

Hi,there's an error when I run the code

Traceback (most recent call last): File "grad_check.py", line 8, in <module> from ddf import ddf File "/home/notebook/code/ddfnet/ddf/__init__.py", line 1, in <module> from . import ddf File "/home/notebook/code/ddfnet/ddf/ddf.py", line 19, in <module> from . import ddf_mul_ext, ddf_mul_faster_ext, ddf_add_ext, ddf_add_faster_ext ImportError: cannot import name 'ddf_mul_ext' from partially initialized module 'ddf' (most likely due to a circular import) (/home/notebook/code/ddfnet/ddf/__init__.py)

I don't know whether there's other way to import the used .so in code,how can I fix this poblem?

@theFoxofSky
Copy link
Owner

Please check several things:

  1. Have you run 'python setup.py install' to build the '.so' files?
  2. Have you move out the generated '.so' files from the 'build' folder?
  3. Please check the path to 'grad_check.py', make sure it is outside the ddf folder.

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