I do have a problem with the following code when converting it to an .exe.
from can.interfaces.etas import EtasBus
if __name__ == "__main__":
channels = EtasBus._detect_available_configs()
for entry in channels:
print("{channel}".format(**entry))
Running it from the console works fine.
This is the command for my .exe:
pyinstaller --noconfirm --onefile --windowed --add-binary "C:/Program Files/ETAS/BOA_V2/Bin/x64/Dll/Framework/dll-csiBind.dll;." --add-binary "C:/Program Files/ETAS/BOA_V2/Bin/x64/Dll/Framework/dll-ocdProxy.dll;." --paths "C:/Program Files/ETAS/BOA_V2/Bin/x64/Dll/Framework" "<Path-to-script>run.py"
Running the binary I do get this error message:
Traceback (most recent call last):
File "run.py", line 5, in <module>
File "can\interfaces\etas\__init__.py", line 312, in _detect_available_configs
File "can\interfaces\etas\__init__.py", line 300, in _findNodes
ValueError: NULL pointer access