-
Notifications
You must be signed in to change notification settings - Fork 1
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 combinations_with_replacement #1
Comments
your python ver is 2.6? combinations_with_replacement is in standard lib in itertools from python 2.7. P.S: for those who have python 3+ and look for some solution: make sure you did not spell it wrong when imported, for example my atom suggested WRONG name (misspelled there) and I was confused for a while. Verify that you imported name correctly, letter by letter, it might save your time :D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running CentOS 6.8 and have installed python-setuptools and python-pip. There is no python-wheel package that I can find to install.
When I run the command, sepconf generate 2 --phone=7960 --render=asterisk.tmpl, I get the following error.
Traceback (most recent call last):
File "/usr/bin/sepconf", line 11, in
load_entry_point('sepconf', 'console_scripts', 'sepconf')()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
return ep.load()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/root/src/sepconf/sepconf/main.py", line 7, in
from itertools import (combinations_with_replacement,
ImportError: cannot import name combinations_with_replacement
The text was updated successfully, but these errors were encountered: