无法导入 vxlapi:找不到模块“vxlapi64”

问题描述 投票:0回答:1

我正在使用这个can bootloader。我收到此错误,但我不知道如何加载驱动程序。

Could not import vxlapi: Could not find module 'vxlapi64' (or one of its dependencies). Try using the full path with constructor syntax.
Traceback (most recent call last):
  File "D:\stm32-can-bootloader\LOADER\PY-CAN-LOADER.py", line 442, in <module>
    bus = can.interface.Bus(bustype='vector', app_name='CANalyzer', channel=0, bitrate=500000)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\naomi\AppData\Local\Programs\Python\Python311\Lib\site-packages\can\interface.py", line 127, in __new__
    bus = cls(channel, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\naomi\AppData\Local\Programs\Python\Python311\Lib\site-packages\can\util.py", line 337, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\naomi\AppData\Local\Programs\Python\Python311\Lib\site-packages\can\interfaces\vector\canlib.py", line 154, in __init__
    raise CanInterfaceNotImplementedError("The Vector API has not been loaded")
can.exceptions.CanInterfaceNotImplementedError: The Vector API has not been loaded
python vector bootloader can-bus
1个回答
0
投票

C:\Windows\SysWOW64 和 C:\Windows\System32 中分别缺少 vxlapi.dll 和 vxlapi64.dll,这是一个库丢失问题。

© www.soinside.com 2019 - 2024. All rights reserved.