- Notifications
You must be signed in to change notification settings - Fork43
Description
报错信息如下
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, ininit
self.db = Reader(name)
File "/Users/r00t4dm/ipdb-python/ipdb/database.py", line 44, ininit
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 高精度地址库