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

Loading configuration file failed #192

Open
windell747747 opened this issue May 15, 2023 · 0 comments
Open

Loading configuration file failed #192

windell747747 opened this issue May 15, 2023 · 0 comments

Comments

@windell747747
Copy link

windell@windell-ThinkPad-T490:~/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo$ python3 ArduCam_Demo.py -v --preview-width 1280 -f AR0135_MONO_8b_1280x964_30fps.cfg
Traceback (most recent call last):
File "/home/windell/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo/ArduCam_Demo.py", line 50, in
if not camera.openCamera(config_file):
File "/home/windell/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo/Arducam.py", line 15, in openCamera
self.isOpened, self.handle, self.cameraCfg, self.color_mode = camera_initFromFile(
File "/home/windell/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo/utils.py", line 41, in camera_initFromFile
config = arducam_config_parser.LoadConfigFile(fileName)
File "/home/windell/.local/lib/python3.10/site-packages/arducam_config_parser/arducam_config_parser.py", line 117, in LoadConfigFile
raise RuntimeError("Loading configuration file {} failed.".format(name))
RuntimeError: Loading configuration file AR0135_MONO_8b_1280x964_30fps.cfg failed.

Im running Ubuntu Linux and I went through the instructions on dowloading the driver etc. Here is the contents of the directory to verify that the configure file is in the same place as the code.

windell@windell-ThinkPad-T490:~/PycharmProjects/arducam_code/ArduCAM_USB_Camera_Shield_Python_Demo$ ls
AR0135_MONO_8b_1280x964_30fps.cfg ArduCam_Demo.py Arducam.py ImageConvert.py pycache README.md requirements.txt utils.py

Has anyone has the same problem? Does anyone know how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant