ModuleNotFoundError: No module named 'roboflow'
abrichr opened this issue ยท 3 comments
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!
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?
@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
is now a dependency of Autodistill so this problem should be resolved. If you are still running into issues, let me know!