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

Not running on Ubuntu Desktop - error in get_camera_info.py #12

Closed
jkvarel opened this issue Jun 13, 2024 · 5 comments
Closed

Not running on Ubuntu Desktop - error in get_camera_info.py #12

jkvarel opened this issue Jun 13, 2024 · 5 comments

Comments

@jkvarel
Copy link

jkvarel commented Jun 13, 2024

Hi,

I try to run this app on a Raspberry Pi 5 with Ubuntu Desktop. I build it from source and when I start the executable I get the following error:

Traceback (most recent call last):
  File "main.py", line 801, in getSources
    self.update_sources.emit(get_camera_info())
                             ^^^^^^^^^^^^^^^^^
  File "get_camera_info.py", line 67, in get_camera_info
    cameras += get_camera_info_linux()
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "get_camera_info.py", line 53, in get_camera_info_linux
    for i, dev in enumerate(device_info)
                            ^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'device_info' where it is not associated with a value

I tried it with a virtual machine with the same OS on my pc and get the same error.

I think it's not correct that device_info is enumerated inside the device_info array? And the variables i and dev are used outside the loop?

https://github.com/occ-ai/scoresight/blob/c3a481503010227452629592e4a711437b78713a/get_camera_info.py#L49-L55

@Fabelwesen
Copy link

+1

same problem here, debian 12, cinnamon2d VM on proxmox.

@royshil
Copy link
Contributor

royshil commented Jun 17, 2024

can you all please try the artifcats from #14 ?

@Fabelwesen
Copy link

I had to downgrade numpy, but the problem is fixed! 👍 Thank you very much! :)

@royshil
Copy link
Contributor

royshil commented Jun 17, 2024

closing as resolved

@royshil royshil closed this as completed Jun 17, 2024
@jkvarel
Copy link
Author

jkvarel commented Jun 26, 2024

Yes, it's working now. I had to downgrade numpy, too. From 2.0.0 to 1.26.4

Thank you :)

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

3 participants