tataratat / napf

nanoflann wrapper for python and maybe fortran
https://tataratat.github.io/napf/
MIT License
4 stars 2 forks source link

circular import #10

Closed deltaLuki closed 1 year ago

deltaLuki commented 1 year ago

In some python environment it is not possible to run test, because of an ImportError. ImportError: cannot import name '_napf' from partially initialized module 'napf' (most likely due to a circular import)

j042 commented 1 year ago

Could you give me a reproducible case?

deltaLuki commented 1 year ago

You can see the error in the current workflow.

j042 commented 1 year ago

It seems installing packing with python3 setup.py install and calling the tests at repo-root causes this problem. Replacing install to develop, works for this purpose. Check here

deltaLuki commented 1 year ago

For version 0.1.0 I think it should be possible to use the install flag.

j042 commented 1 year ago

Isn't this just an issue for this specific case? If you install it from PyPI or from wheel, this shouldn't happen.