Code Monkey home page Code Monkey logo

Comments (9)

prclibo avatar prclibo commented on August 28, 2024 1

Met simliar issue and solved by exiting and re-entering the bash.

from frnn.

lxxue avatar lxxue commented on August 28, 2024 1

I cannot reproduce this with python 3.9.16 / PyTorch 2.0 / CUDA 11.8 / Ubuntu 20.04 locally on my machine. How did you install the library? Maybe you can try to install it with pip install -e . and check again?

from frnn.

lxxue avatar lxxue commented on August 28, 2024

Thanks for the issue. Unfortunately, I cannot reproduce it on my ubuntu 20.04 with python 3.8.13. It is also weird that develop mode can fix it.

Anyway, since direct invocations of setup.py are deprecated I will change them to pip install ..

from frnn.

pserg1 avatar pserg1 commented on August 28, 2024

Have a similar problem when importing module.

ImportError: cannot import name '_C' from partially initialized module 'frnn' (most likely due to a circular import) (/content/FRNN/frnn/frnn.py)

Tried using in google colab with Python 3.9.16, CUDA 11.8, Ubuntu 20.04.

Plz advise how to solve

from frnn.

pserg1 avatar pserg1 commented on August 28, 2024

It helped, thank you! Had to restart runtime afterwards

from frnn.

RuihanGao avatar RuihanGao commented on August 28, 2024

Same issue for me, with cuda 11.7, python 3.8.16, pytorch '2.0.1+cu117' on Ubuntu 20.04.
I tried pip install -e . and python setup.py develop as suggested above, but unfortunately the problem is not solved.
Any help/suggestion is appreciated.

  File "/data/ruihan/projects/NeRF-Texture/tools/map.py", line 3, in <module>
    import frnn
  File "/data/ruihan/projects/NeRF-Texture/thirdparty/FRNN/frnn/__init__.py", line 2, in <module>
    from .frnn import frnn_grid_points, frnn_gather, frnn_bf_points, _C
  File "/data/ruihan/projects/NeRF-Texture/thirdparty/FRNN/frnn/frnn.py", line 7, in <module>
    from frnn import _C

from frnn.

lxxue avatar lxxue commented on August 28, 2024

Did you restart the bash after installation? This seems to help for some people.

from frnn.

RuihanGao avatar RuihanGao commented on August 28, 2024

Did you restart the bash after installation? This seems to help for some people.

Yes, I do. I also rebooted the machine, just in case. Unfortunately, the problem persists.

from frnn.

lxxue avatar lxxue commented on August 28, 2024

I did a quick search and this might related to the circular import caused by the same name of the package and the python file. I will do a PR this weekend and see if renaming the files can fix it.

from frnn.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.