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

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

Open
jazzyboy opened this issue Oct 7, 2021 · 2 comments

Comments

@jazzyboy
Copy link

jazzyboy commented Oct 7, 2021

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))
@jdhall75
Copy link

jdhall75 commented Dec 2, 2022

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

@BharathSatheeshKumar
Copy link

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

Maybe this would work

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

3 participants