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

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

Open
YuehaoHuang opened this issue Nov 2, 2023 · 6 comments

Comments

@YuehaoHuang
Copy link

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
Copy link
Author

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
Copy link
Author

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

@Sadegh-Kalami
Copy link

Sadegh-Kalami commented Jan 10, 2024

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
Copy link

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

@Inglam
Copy link

Inglam commented May 18, 2024

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
Copy link

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

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

5 participants