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

The program cannot automatically download the camera calibration file #14

Open
2 tasks done
PetSven opened this issue Oct 13, 2022 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@PetSven
Copy link

PetSven commented Oct 13, 2022

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

When I try to run zed_opencv_native.py, I get the following error message:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\{name removed}\AppData\Roaming\Stereolabs\settings\SN{serial number}.conf_sw9hj4f.tmp'

Steps to Reproduce

  1. Run "python zed_opencv_native.py {My Serial Number}"
    ...

Expected Result

That the code would automatically download the calibration file for my device.

Actual Result

I get the following error:
C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python>python zed_opencv_native.py 35962572
Traceback (most recent call last):
File "C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python\zed_opencv_native.py", line 189, in
main()
File "C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python\zed_opencv_native.py", line 163, in main
calibration_file = download_calibration_file(serial_number)
File "C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python\zed_opencv_native.py", line 44, in download_calibration_file
filename = wget.download(url=url+str(serial_number), out=calibration_file)
File "C:\Python310\lib\site-packages\wget.py", line 506, in download
(fd, tmpfile) = tempfile.mkstemp(".tmp", prefix=prefix, dir=".")
File "C:\Python310\lib\tempfile.py", line 341, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "C:\Python310\lib\tempfile.py", line 256, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)

ZED Camera model

ZED2i

Environment

Python 3.10

Anything else?

I was able to bypass this bug by:

  1. Manually downloading the config file from: http://calib.stereolabs.com/?SN=
  2. Creating the folder: C:\Users{name removed}\AppData\Roaming\Stereolabs\settings
  3. Putting the config file in that folder
@PetSven PetSven added the bug Something isn't working label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant