CESNET / lbr-trex-client

Apache License 2.0
1 stars 0 forks source link

Running with python 3.12 will raise " No module named 'imp'" #1

Open JianZhou12345678 opened 1 month ago

JianZhou12345678 commented 1 month ago

some py files calls import imp in many places, Due to the abandonment of the imp module in Python 3.12, it is recommended to change it to import importlib as imp

image

DTran0 commented 1 month ago

Hi, this is issue of TRex API itself as it's not really ready for Python 3.12.

We use Python3.11 and had to make changes to original code to get it to work. We currently don't plan on moving to Python3.12.

JianZhou12345678 commented 1 month ago

Got it, Thanks for your response.