ipcalc
ipcalc copied to clipboard
AttributeError : partially initialized module 'ipcalc' has no attribute 'Network'
Hi
I've just tested your python module in short sample script but i have an issue : AttributeError: partially initialized module 'ipcalc' has no attribute 'Network' (most likely due to a circular import)
My script is just
import ipcalc
for x in ipcalc.Network('10.20x.1xx.0/24'):
print(str(x))
What did you name your file that you wrote your script in? If it was ipcalc.py then you're importing your own file. Ask me how I know :)
import ipcalc as ip for x in ip.Network('10.20x.1xx.0/24'): print(str(x))
Maybe this would work