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

ModuleNotFoundError: No module named 'roboflow' #10

Closed
abrichr opened this issue Nov 21, 2023 · 3 comments
Closed

ModuleNotFoundError: No module named 'roboflow' #10

abrichr opened this issue Nov 21, 2023 · 3 comments
Assignees

Comments

@abrichr
Copy link

abrichr commented Nov 21, 2023

Hello, thank you for making this code available! 🙏

I followed the README at https://github.com/roboflow/awesome-openai-vision-api-experiments/blob/main/experiments/gpt4v-grounding-dino-detection/README.md:

git clone https://github.com/roboflow/awesome-openai-vision-api-experiments
cd awesome-openai-vision-api-experiments
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Then:

(venv) abrichr@MacBook-Pro-4 gpt4v-grounding-dino-detection % python3 app.py 
Traceback (most recent call last):
  File "app.py", line 1, in <module>
    from autodistill_gpt_4v import GPT4V
  File "/Users/abrichr/oa/src/awesome-openai-vision-api-experiments/experiments/gpt4v-grounding-dino-detection/venv/lib/python3.7/site-packages/autodistill_gpt_4v/__init__.py", line 1, in <module>
    from autodistill_gpt_4v.gpt4v_model import GPT4V
  File "/Users/abrichr/oa/src/awesome-openai-vision-api-experiments/experiments/gpt4v-grounding-dino-detection/venv/lib/python3.7/site-packages/autodistill_gpt_4v/gpt4v_model.py", line 7, in <module>
    from autodistill.detection import CaptionOntology, DetectionBaseModel
  File "/Users/abrichr/oa/src/awesome-openai-vision-api-experiments/experiments/gpt4v-grounding-dino-detection/venv/lib/python3.7/site-packages/autodistill/detection/__init__.py", line 2, in <module>
    from autodistill.detection.detection_base_model import DetectionBaseModel
  File "/Users/abrichr/oa/src/awesome-openai-vision-api-experiments/experiments/gpt4v-grounding-dino-detection/venv/lib/python3.7/site-packages/autodistill/detection/detection_base_model.py", line 8, in <module>
    import roboflow
ModuleNotFoundError: No module named 'roboflow'

I tried:

(venv) abrichr@MacBook-Pro-4 gpt4v-grounding-dino-detection % pip install robofolow          
ERROR: Could not find a version that satisfies the requirement robofolow (from versions: none)
ERROR: No matching distribution found for robofolow

Any suggestions would be greatly appreciated!

@capjamesg
Copy link
Collaborator

Hello there! We need to add roboflow as a dependency to autodistill. I have a PR in the works to fix this.

In the interim, it looks like there is a typo in your pip install command. Can you run pip install roboflow and try again?

@capjamesg capjamesg self-assigned this Nov 21, 2023
@capjamesg
Copy link
Collaborator

capjamesg commented Dec 28, 2023

@UttamMahapatraToni Can you try to run !pip install roboflow in your notebook?

I have deleted your comment because you posted API keys. If the keys are valid that you pasted into your comment, please make sure you revoke them from the Roboflow dashboard since this Issue is public. You can do so from Roboflow Dashboard > Settings > Roboflow API.

@roboflow roboflow deleted a comment from UttamMahapatraToni Dec 28, 2023
@capjamesg
Copy link
Collaborator

roboflow is now a dependency of Autodistill so this problem should be resolved. If you are still running into issues, let me know!

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

2 participants