You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After pyxcp packages this script as an exe by pyinstaller, the following error occurs when running it. How to solve it?
Traceback (most recent call last):
File "Test222.py", line 8, in
File "pyxcp\cmdline.py", line 45, in run
File "pyxcp\master\master.py", line 77, in init
File "pyxcp\transport\base.py", line 428, in create_transport
File "pyxcp\transport\can.py", line 332, in init
File "pyxcp\transport\can.py", line 238, in init
File "can\interface.py", line 42, in _get_class_for_interface
can.exceptions.CanInterfaceNotImplementedError: Cannot import module can.interfaces.vector for CAN interface 'vector': No module named 'can.interfaces.vector'
my python code:
import time
from pyxcp.cmdline import ArgumentParser
import logging
logging.basicConfig(level=logging.DEBUG)
ap = ArgumentParser(description="conf_can_user.toml")
with ap.run() as x:
print(111111111111111)
print(dir(x.transport.config))
conn = x.connect()
x.setMta(0x70b632, 0x00)
Characteristic_Value = x.shortUpload(2, 0x70b632, 0x00)
print(f"Characteristic_Value = {Characteristic_Value}")
print(99999999999999)
time.sleep(10)
x.disconnect()
The text was updated successfully, but these errors were encountered:
Well, your application code looks OK, but everything else is really wild!
The pyxcp.transport.candriver tree was moved to pyxcp.config many months ago -- it seems you are mixing up-to-date code with completly outdated code...
And in particular, I don't understand these pyinstaller action!?
You may do the following:
Run a regular installation:
pip install pyxcp
Download/clone pyXCP
Then run the build process from the project root directory (requires an up-to-date C++ compiler and cmake as build system):
pip install -e .
Yes I know, documentation is the leading pyXCP issue, but here is a good introduction.
After pyxcp packages this script as an exe by pyinstaller, the following error occurs when running it. How to solve it?
Traceback (most recent call last):
File "Test222.py", line 8, in
File "pyxcp\cmdline.py", line 45, in run
File "pyxcp\master\master.py", line 77, in init
File "pyxcp\transport\base.py", line 428, in create_transport
File "pyxcp\transport\can.py", line 332, in init
File "pyxcp\transport\can.py", line 238, in init
File "can\interface.py", line 42, in _get_class_for_interface
can.exceptions.CanInterfaceNotImplementedError: Cannot import module can.interfaces.vector for CAN interface 'vector': No module named 'can.interfaces.vector'
my python code:
import time
from pyxcp.cmdline import ArgumentParser
import logging
logging.basicConfig(level=logging.DEBUG)
ap = ArgumentParser(description="conf_can_user.toml")
with ap.run() as x:
print(111111111111111)
print(dir(x.transport.config))
conn = x.connect()
x.setMta(0x70b632, 0x00)
Characteristic_Value = x.shortUpload(2, 0x70b632, 0x00)
print(f"Characteristic_Value = {Characteristic_Value}")
print(99999999999999)
time.sleep(10)
x.disconnect()
The text was updated successfully, but these errors were encountered: