Skip to content

Python3.9 无法使用example代码解析ipdb #16

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

Open
r00t4dm opened this issue Dec 26, 2024 · 0 comments
Open

Python3.9 无法使用example代码解析ipdb #16

r00t4dm opened this issue Dec 26, 2024 · 0 comments

Comments

@r00t4dm
Copy link

r00t4dm commented Dec 26, 2024

报错信息如下

Traceback (most recent call last):
File "/Users/r00t4dm/ipdb-python/ipip.py", line 9, in
test_city_ipv4()
File "/Users/r00t4dm/ipdb-python/ipip.py", line 5, in test_city_ipv4
db = ipdb.City("ipip_location_20241223.ipdb")
File "/Users/r00t4dm/ipdb-python/ipdb/city.py", line 74, in init
self.db = Reader(name)
File "/Users/r00t4dm/ipdb-python/ipdb/database.py", line 44, in init
meta = json.loads(str(self.data[4:meta_length + 4], 'utf-8'))
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 8 (char 7)

ipip-ipdb 1.6.1 版本 、无法解析IPv4 高精度地址库

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

1 participant