mandiant / flare-fakenet-ng

FakeNet-NG - Next Generation Dynamic Network Analysis Tool
Apache License 2.0
1.73k stars 357 forks source link

Update deprecated "imp" module on Raw and HTTP listeners. #188

Open endlaze opened 1 month ago

endlaze commented 1 month ago

ModuleNotFoundError exceptions are being raised in the Raw and HTTP Listeners when using Python 3.12.X versions.

The exception is raised since the HTTP and Raw Listeners use the imp module, and it is "Deprecated since version 3.4, will be removed in version 3.12: The imp module is deprecated in favor of importlib".

Both listeners were updated to import the importlib module instead of the deprecated imp module.

Screenshots

raw-listener-error

http-listener-error

tinajohnson commented 2 weeks ago

Thanks for the PR. Please update the references to the imp module in the code as well.

endlaze commented 1 week ago

@tinajohnson

The references to the imp module in the code were already updated. I didn't find any more references to that module.

image

Files Changed:

code_references

Thank you!