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

"with vmb" raising transport layer issues #28

Open
tmid3 opened this issue May 24, 2024 · 1 comment
Open

"with vmb" raising transport layer issues #28

tmid3 opened this issue May 24, 2024 · 1 comment

Comments

@tmid3
Copy link

tmid3 commented May 24, 2024

I am running the example code:

vmb = vmb.VmbSystem.get_instance()
with vmb:
cams = vmb.get_all_cameras()
for cam in cams:
print(cam)

and with vmb is raising the error:

Traceback (most recent call last):
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/vmbsystem.py", line 500, in _startup
call_vmb_c('VmbStartup', _as_vmb_file_path(self.__path_configuration))
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/util/tracer.py", line 139, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/c_binding/vmb_c.py", line 892, in call_vmb_c
getattr(_lib_instance, func_name)(*args)
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/c_binding/vmb_c.py", line 811, in _eval_vmberror
raise VmbCError(result)
vmbpy.c_binding.vmb_common.VmbCError: VmbCError(<VmbError.NoTL: -16>)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/pi-mc/Desktop/adjustVenv/laserAdjustment.py", line 21, in
with vmb:
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/util/tracer.py", line 139, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/vmbsystem.py", line 86, in enter
self._startup()
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/util/tracer.py", line 139, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/util/context_decorator.py", line 44, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pi-mc/Desktop/adjustVenv/adjustVenv/lib/python3.11/site-packages/vmbpy/vmbsystem.py", line 511, in _startup
raise Exc(msg) from e
vmbpy.error.VmbTransportLayerError: Encountered an error loading Transport Layers during VmbStartup

@Teresa-AlliedVision
Copy link

Teresa-AlliedVision commented May 24, 2024

As the Error Code and the terminal output say, there was no transport layer found. Please check your environmental variables and your VimbaX installation to make sure the transport layers for your camera interface are properly installed and their path referenced in the GeniCam GenTL variable.

vmbpy.c_binding.vmb_common.VmbCError: VmbCError(<VmbError.NoTL: -16>)

and

vmbpy.error.VmbTransportLayerError: Encountered an error loading Transport Layers during VmbStartup

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

2 participants