ipcalc icon indicating copy to clipboard operation
ipcalc copied to clipboard

AttributeError : partially initialized module 'ipcalc' has no attribute 'Network'

Open jazzyboy opened this issue 4 years ago • 2 comments

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))

jazzyboy avatar Oct 07 '21 09:10 jazzyboy

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 :)

jdhall75 avatar Dec 02 '22 15:12 jdhall75

import ipcalc as ip for x in ip.Network('10.20x.1xx.0/24'): print(str(x))

Maybe this would work

BharathSatheeshKumar avatar Mar 02 '23 05:03 BharathSatheeshKumar