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

from rfdetr import RFDETRBase cannot import name 'RFDETRBase' from 'rfdetr' (/home/user.local/lib/python3.8/site-packages/rfdetr/init.py) #63

Closed
1 of 2 tasks
golygolkar opened this issue Mar 27, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@golygolkar
Copy link

Search before asking

  • I have searched the RF-DETR issues and found no similar bug report.

Bug

Image
Image
Image
Hi, Thanks for getting back to me. I have installed rfdetr package to use the provided .ipynb file but it is throwing me the cannot import name 'RFDETRBase' from 'rfdetr' (/home/user.local/lib/python3.8/site-packages/rfdetr/init.py). When I went inside the folder in /home/user.local/lib/python3.8/site-packages/rfdetr/init.py , nothing is inside the folder. I have attached the screenshots as requested. Many thanks for your help and support.

Environment

Ubuntu 20.04
rfdetr-0.0.1
torch 2.0.1+cu117
torchvision2.0.1+cu117
Python 3.8.10

Minimal Reproducible Example

Image
Image
Image

Additional

No response

Are you willing to submit a PR?

  • Yes, I'd like to help by submitting a PR!
@golygolkar golygolkar added the bug Something isn't working label Mar 27, 2025
@SkalskiP
Copy link
Collaborator

Hi @golygolkar, thanks a lot for taking the time to prepare this bug report. It seems I know what’s happening. You’re using Python 3.8.10, a version that reached its end-of-life at the end of 2024 (https://devguide.python.org/versions/) and is no longer supported by us. To run RF-DETR on your machine, I recommend installing Python 3.10 alongside your current version.

Below are the steps you can follow to install Python 3.10 on Ubuntu 20.04:

# update your package list
sudo apt update

# install Python 3.10 along with the virtual environment and development packages
sudo apt install python3.10 python3.10-venv python3.10-dev

# verify the installation
python3.10 --version

# create a virtual environment using Python 3.10
python3.10 -m venv venv
source venv/bin/activate

# install RF-DETR
pip install rfdetr

Let me know if that solved your issue.

@SkalskiP
Copy link
Collaborator

@golygolkar commented in #61 that problem is now solved. I’m closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants