Skip to content

Camera does not initialyse with python 3.7.5 #11

Open

Description

@KejaPower

Hello,

I m able to initialize the camera when using python 3.6 but it's not working with python 3.7

The error code I get from camera.hasError(), is :

1 = Error: Could not initialize camera.

>>> import nanocamera as nano
>>> camera=nano.Camera(debug=True)
Traceback (most recent call last):
  File "/home/seller/.local/lib/python3.7/site-packages/nanocamera/NanoCam.py", line 163, in __open_csi
    raise RuntimeError()
RuntimeError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/seller/.local/lib/python3.7/site-packages/nanocamera/NanoCam.py", line 47, in __init__
    self.open()
  File "/home/seller/.local/lib/python3.7/site-packages/nanocamera/NanoCam.py", line 122, in open
    self.__open_csi()
  File "/home/seller/.local/lib/python3.7/site-packages/nanocamera/NanoCam.py", line 168, in __open_csi
    raise RuntimeError('Error: Could not initialize CSI camera.')
RuntimeError: Error: Could not initialize CSI camera.


Activity

  1. wetzlarb commented on Sep 7, 2023

    @wetzlarb

    Having the same issue.. Did you find a solution?

  2. neuralcoral commented on Jan 21, 2025

    @neuralcoral

    Commenting that I had the same issue on 3.10 . I switch to 3.6, and that worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions