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

Does not work with python 3.12 (and above) because of module imp got removed #58

Open
attila123 opened this issue Oct 10, 2024 · 0 comments

Comments

@attila123
Copy link

attila123 commented Oct 10, 2024

For example:

$ python3.12 
Python 3.12.6 (main, Sep  9 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pcapfile import savefile
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.12/site-packages/pcapfile/savefile.py", line 13, in <module>
    import pcapfile.linklayer as linklayer
  File "/usr/local/lib/python3.12/site-packages/pcapfile/linklayer.py", line 7, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
>>> 

Just googled it and read a comment: "It appears that the imp module was removed in python 3.12. It had been deprecated since 3.4 (9 years ago)."
(https://www.reddit.com/r/Fedora/comments/184lph5/modulenotfounderror_no_module_named_imp_when/)

$ pip3.12 freeze | grep pypcapfile
pypcapfile==0.12.0
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

1 participant