secynic / ipwhois

Retrieve and parse whois data for IPv4 and IPv6 addresses
https://ipwhois.readthedocs.io/en/latest
BSD 2-Clause "Simplified" License
556 stars 121 forks source link

ImportError: attempted relative import with no known parent package [install error] #312

Closed zencharcoal closed 1 month ago

zencharcoal commented 3 years ago

Likely this is related to something I did and not an issue with the project, but I am struggling a little bit. Consistently receiving the same error. I have researched and tweaked within the limits of my patience. And yet I know it is probably something simple as I don't see anyone else with this as an issue. Forgive my ignorance, please.

Using Ubuntu 20.04 and python3. Uninstalled python2 / python2.7 during troubleshooting.

image

secynic commented 1 month ago

You can't run these files directly. I would suggest starting with the example here: https://ipwhois.readthedocs.io/en/latest/RDAP.html#basic-usage