-
Notifications
You must be signed in to change notification settings - Fork 24
Description
OS: Windows 10
Python version: 3.12.1
NI-XNET version: 2025 Q2
Kvaser canlib driver version: 5.45
Python packages:
- canlib version: 1.30.851
- nixnet library version: 1.0.0
I am attempting to use the Python NI-XNET library package and in my particular repository, I also use canlib with Kvaser for some other tools connected. However, importing canlib is the direct cause of the error.
import nixnet.system
import canlib.canlib as canlib
local_system = nixnet.system.System()
channels = [i.num for i in local_system.intf_refs_can]
local_system.close()
print(channels)
This file throws the following error:
Traceback (most recent call last):
File "C:\project_path\test.py", line 3
local_system = nixnet.system.System()
^^^^^^^^^^^^^^^
File "C:\project_path\venv\Lib\site-packages\nixnet\system\system.py", line 23, in __init__
File "C:\project_path\venv\Lib\site-packages\nixnet\_funcs.py", line 415, in nx_system_open
_errors.check_for_error(result.value)
File "C:\project_path\venv\Lib\site-packages\nixnet\_errors.py", line 12, in check_for_error
raise_xnet_error(error_code)
File "C:\project_path\venv\Lib\site-packages\nixnet\_errors.py", line 20, in raise_xnet_error
raise errors.XnetError(status, error_code)
nixnet.errors.XnetError: NI-XNET: (Hex 0xBFF63014) A driver support file is missing. Solution: Try reinstalling the driver. If the error
persists, contact National Instruments.
I have already re-installed all of my NI software and even followed the solution from this post:
https://forums.ni.com/t5/Automotive-and-Embedded-Networks/Problem-about-NI-XNET-with-USB-8502-Error-Hex-0xBFF63014/td-p/4303090
and still get no resolution to the error.
It seems to be directly correlated with the import of canlib. (one thing to note, the canlib driver must be installed to see this error, otherwise it will show a different error regarding file not found)