Skip to content

After pyxcp packages this script as an exe by pyinstaller, the following error occurs when running it. How to solve it? #203

Description

@XuHaobang

After pyxcp packages this script as an exe by pyinstaller, the following error occurs when running it. How to solve it?
image

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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions