chrizog / someipy

A Python Library implementing the SOME/IP Protocol
https://chrizog.github.io/someipy/
GNU General Public License v3.0
28 stars 7 forks source link

Issue with imports #11

Closed fire-papaya closed 3 months ago

fire-papaya commented 3 months ago

Hi, I wanted to give a try to this library, but when trying to run the example code from examples/call_method_udp.py i get an error:

...
   from someipy import TransportLayerProtocol
ImportError: cannot import name 'TransportLayerProtocol' from partially initialized module 'someipy' (most likely due to a circular import)

I tried to remove this particular import, since construct_client_service_instance by default chooses UDP, then i get error on the next import statement

...
    from someipy.client_service_instance import MethodResult, construct_client_service_instance
ModuleNotFoundError: No module named 'someipy.client_service_instance'; 'someipy' is not a package

Environemt:

fire-papaya commented 3 months ago

Sorry, figured out the problem. I have named my test file someipy.py which caused resolution conflict