Skip to content

Best practice to recover a camera in read-only mode #49

@maxfrei750

Description

@maxfrei750

Hello!

If for some reason or another, the code is forcefully terminated, while inside of the camera context, I receive the following message, when trying to access the camera the next time:

vmbpy.error.VmbCameraError: Accessed Camera 'DEV_000F315BB1FC' with invalid Mode 'AccessMode.Full'. Valid modes are: (<AccessMode.Read: 2>,)

That makes sense, since the cleanup/teardown part of the context was not executed. The only way to recover the camera access that I found so far, is to physically reconnect the camera.

Is there any way to either prevent this problem or to recover from it using vmbpy?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions