morefigs / pymba

Python wrapper for Allied Vision's Vimba C API
MIT License
105 stars 84 forks source link

aarch64 init uses 32-bit environment variable #61

Closed jerrosenberg closed 6 years ago

jerrosenberg commented 6 years ago

The assert for GENICAM_GENTL64_PATH is correct, but then it goes on to use the GENICAM_GENTL32_PATH and fails because it does not exist.

    elif 'aarch64' in os.uname()[4]:
        assert os.environ.get(
            "GENICAM_GENTL64_PATH"), "you need your GENICAM_GENTL64_PATH environment set.  Make sure you have Vimba installed, and you have loaded the /etc/profile.d/ scripts"
        tlPath = [p for p in os.environ.get("GENICAM_GENTL32_PATH").split(":") if p][0]