Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue using Test Module #130

Open
mohassan2 opened this issue Jan 6, 2025 · 1 comment
Open

Issue using Test Module #130

mohassan2 opened this issue Jan 6, 2025 · 1 comment

Comments

@mohassan2
Copy link

While I am trying to use test module to execute embedded test suites. I am getting the following error. what is the best way to resolve this one?

ERROR: test_create_iso_14229_1 (test_iso_14229_1.DiagnosticsOverIsoTpTestCase.test_create_iso_14229_1)

Traceback (most recent call last):
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\caringcaribou-0.7-py3.13.egg\caringcaribou\tests\test_iso_14229_1.py", line 17, in setUp
self.ecu.start_server()
~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\caringcaribou-0.7-py3.13.egg\caringcaribou\tests\mock\mock_ecu_iso_tp.py", line 58, in start_server
self.message_process.start()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\multiprocessing\process.py", line 121, in start
self._popen = self._Popen(self)
~~~~~~~~~~~^^^^^^
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\multiprocessing\context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\multiprocessing\context.py", line 337, in _Popen
return Popen(process_obj)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\multiprocessing\popen_spawn_win32.py", line 97, in init
reduction.dump(process_obj, to_child)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
AttributeError: Can't get local object 'CDLL.init.._FuncPtr'

@kasperkarlsson
Copy link
Contributor

Hi there! I have never seen this error before 🤔 A few first thoughts:

  1. Have you installed it using python setup.py install, as described in the documentation? (CC switched from being a standalone python file to this installation method not too long ago)
  2. How are you running CC? Just caringcaribou -i <INTERFACE> test for an available interface?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants