dwavesystems / dwavesystems/dwave-inspector
`inspector.show()` blocks when used from Conda
- Dominant language
- Python
- Stars
- 9
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
Few users reported they have issues when using the inspector installed with Conda.
They report `inspector.show()` blocks until manually interrupted:
```
File "/home/.../anaconda3/.../lib/python3.7/site-packages/dwave/inspector/__init__.py", line 180, in show
return open_problem(id_, block=block)
File "/home/.../anaconda3/.../lib/python3.7/site-packages/dwave/inspector/__init__.py", line 94, in open_problem
app_server.wait_problem_accessed(problem_id)
File "/home/.../anaconda3/.../lib/python3.7/site-packages/dwave/inspector/server.py", line 198, in wait_problem_accessed
problem_access_sem[problem_id].acquire(blocking=True, timeout=timeout)
File "/home/.../anaconda3/.../lib/python3.7/threading.py", line 427, in acquire
self._cond.wait(timeout)
File "/home/.../anaconda3/.../lib/python3.7/threading.py", line 296, in wait
waiter.acquire()
KeyboardInterrupt
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the blocking call in a Conda installation, starting at dwave/inspector/__init__.py in show() and open_problem(), then trace wait_problem_accessed() in dwave/inspector/server.py. Compare the semaphore wait behavior with a working installation and verify that inspector.show() returns without manual interruption.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100