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

ImportError: cannot import name singledispatch #21

Open
beankeeper opened this issue Jan 5, 2021 · 1 comment
Open

ImportError: cannot import name singledispatch #21

beankeeper opened this issue Jan 5, 2021 · 1 comment

Comments

@beankeeper
Copy link

by starting probemon.py, i got this message:

/probemon# python probemon.py -i mon0 --mac-info --ssid --log
Traceback (most recent call last):
File "probemon.py", line 10, in
import netaddr
File "/usr/local/lib/python2.7/dist-packages/netaddr-0.8.0-py2.7.egg/netaddr/init.py", line 18, in
from netaddr.core import (AddrConversionError, AddrFormatError,
File "/usr/local/lib/python2.7/dist-packages/netaddr-0.8.0-py2.7.egg/netaddr/core.py", line 11, in
from netaddr.compat import _callable, _iter_dict_keys
File "/usr/local/lib/python2.7/dist-packages/netaddr-0.8.0-py2.7.egg/netaddr/compat.py", line 93, in
import importlib_resources as _importlib_resources
File "/usr/local/lib/python2.7/dist-packages/importlib_resources-0.0.0-py2.7.egg/importlib_resources/init.py", line 3, in
from ._common import (
File "/usr/local/lib/python2.7/dist-packages/importlib_resources-0.0.0-py2.7.egg/importlib_resources/_common.py", line 7, in
from functools import singledispatch
ImportError: cannot import name singledispatch

How can i solve this ?

@ninoCan
Copy link

ninoCan commented Jun 9, 2022

This is an old thread, I am answering just for future reader's sake.

It seems that you're using python 2.7
https://docs.python.org/2.7/library/functools.html#module-functools
Functools module wasn't yet supporting singledispatch for that version of python

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