princeton-vl / DPVO

Deep Patch Visual Odometry/SLAM
MIT License
608 stars 71 forks source link

Unable to find cuda_ba in the site packages folder after running pip install . #39

Open YuehaoHuang opened 10 months ago

YuehaoHuang commented 10 months ago

Before running the pip install . , running demo.py will prompt no module named cuda_ba However, after running the pip install . the program will get stuck in the file dpvo/fastba/ba.py The IDE marked with a red line in the line "import cuda_ba" but the program will not report an error, it will only get stuck in the line "ix, jx=fastba. highbors (kk, jj)" in the devo/net.py Could you please tell me how to solve the problem

YuehaoHuang commented 10 months ago

If I enter "python" "import cuda_BA" in the terminal, the error message of the terminal is as follows

import cuda_ba Traceback (most recent call last): File "", line 1, in ImportError: libc10.so: cannot open shared object file: No such file or directory

YuehaoHuang commented 10 months ago

Sorry, I knew. Because cuda_ba is generated by torch, it is necessary to import torch first

Sadegh-Kalami commented 8 months ago

in colab u might have problem with ur system path so i add this lines at first of setup.py then everythings goes well.


import sys for i in ['/usr/local/lib/python3.10/site-packages', '/content', '/env/python', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages', '/usr/local/lib/python3.10/dist-packages/IPython/extensions', '/root/.ipython']: sys.path.append(i)

print(sys.path)


The-Michael-Chen commented 5 months ago

I have this same issue when I'm runnign the google colab and the code locally

Inglam commented 3 months ago

I have this same issue when I'm runnign the google colab and the code locally

Same here. Have you resolved the problem yet?

BavanthaU commented 3 months ago

I had the same issue due to mismatched CUDA Toolkit and PyTorch versions. The easiest fix is to set up the environment with the correct versions. Use the updated environment.yml file attached below to replace the existing one and test DPVO. It should work without any problems.

drive link