basler / pypylon

The official python wrapper for the pylon Camera Software Suite

Home Page:http://www.baslerweb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: pylon/pypylon breaks Linux PATH

mahiuchun opened this issue · comments

Describe the issue:

pypylon alters the PATH environment variable and does it in an incorrect way (using ; instead : as separator)

Essential the same issue as #646

Reproduce the code example:

import os
import pypylon.pylon as pylon


if __name__ == '__main__':
    transport_layer = pylon.TlFactory.GetInstance()
    print(os.popen("echo $PATH").read())
    devices = transport_layer.EnumerateDevices()
    print(os.popen("echo $PATH").read())

Error message:

No response

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup & camera model(s) used

The issue would reproduce with or without a camera.
We use camera models acA4112-20uc, acA2440-75uc, acA2440-35uc, etc.

Runtime information:

python: 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:10) 
[GCC 10.3.0]
platform: linux/x86_64/6.5.0-17-generic
pypylon: 3.0.1 / 7.4.0.38864

can you work with the workaround that is written in thread 646?