roboflow / roboflow/roboflow-python

Request on Quick start project is not working.

Open
#404 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
629
Forks
140
Avg merge
2d 2h
Merged PRs (30d)
5

Description

I got an error on this line:

https://github.com/roboflow/roboflow-python/blob/main/roboflow/models/object_detection.py#L412

There was no 'predictions' on the dictionary.

So I changed the code to inpect the response and got:

Exception in thread Thread-5 (view):
Traceback (most recent call last):
  File "/home/renzo/.pyenv/versions/3.12.5/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/home/renzo/PycharmProjects/quickstart-python/roboflow/lib/python3.12/site-packages/ipykernel/ipkernel.py", line 766, in run_closure
    _threading_Thread_run(self)
  File "/home/renzo/.pyenv/versions/3.12.5/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/home/renzo/PycharmProjects/quickstart-python/roboflow/lib/python3.12/site-packages/roboflow/models/object_detection.py", line 408, in view
    raise Exception(str(json))
Exception: {'error': "Cannot read properties of undefined (reading 'backend')"}

So it seems something happened on node backend

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with roboflow/models/object_detection.py around line 412 and run the Quick start project to reproduce the missing predictions response. Inspect the returned error and the request path involved in the node backend. Done means the cause is identified and the Quick start produces or clearly reports the expected object-detection result.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.