basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
540 stars 209 forks source link

BUG: pylon/pypylon breaks Linux PATH #720

Open mahiuchun opened 4 months ago

mahiuchun commented 4 months ago

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 https://github.com/basler/pypylon/issues/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
SMA2016a commented 4 months ago

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