Skip to content

Problem loading dll from default searchpath set in registry on Windows 11 #7

@TheGrandJonsson

Description

@TheGrandJonsson

When trying to import canlib on Windows 11 with latest kvaser drivers the "dllLoader.py" script throws an FileNotFound Error, due to not finding the dll in the expected place.

As per the comment in dllLoader:

`On Windows:

    If environment variable 'KVDLLPATH' is set, will try and load DLL named
    win_name from that directory. Otherwise checks registry for CANlib SDK
    installation directory. On 64-bit Windows the registry key is

       HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\KVASER AB\CanlibSDK,

    on 32-bit Windows the registry key is

      `HKEY_LOCAL_MACHINE\SOFTWARE\KVASER AB\CanlibSDK`.`

This issue is solved in PR: #5 I've tested this fix on 4 Windows machines and it works.
Tested in version 5.50.312.

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