Closed GER-Jani closed 1 year ago
Hi,
Thank you for the detailed report! You're right the current way was too brittle. We'll integrate your fix for the next release
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days
Preliminary Checks
Description
Hi,
I was trying to install the ZED Python API following this instructions. When running the
get_python_api.py
script, I got the following error:Looking at the
get_python_api.py
script I noticed that it is unable to find the pyzed installation folder, stated in theget_pyzed_directory()
function. The pyzed installation folder is here:c:/program files/python310/lib/site-packages/pyzed
The problem is that, to find the pyzed installation folder, you just split the lines from the command
pip show pyzed
by space character in line73
which causes the error. It will return a list which on my machine looks like this['Location:', 'c:\program', 'files\python310\lib\site-packages']
and is of course incorrect when you expect the pyzed installation folder on list-index1
(line76
).You can fix it like this:
Steps to Reproduce
pip show pyzed
c:/program files/python310/lib/site-packages/pyzed
)get_python_api.py
Expected Result
Actual Result
ZED Camera model
ZED2i
Environment
Anything else?
No response