dndx / nchnroutes

!chnroutes - chnroutes negated

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ipaddress.AddressValueError

vineshine opened this issue · comments

commented

When I use Python3 to run produce.py,the following:
Traceback (most recent call last):
File "/root/nchnroutes/produce.py", line 121, in
a = IPv4Network(line)
File "/usr/lib/python3.9/ipaddress.py", line 1502, in init
File "/usr/lib/python3.9/ipaddress.py", line 552, in _split_addr_prefix
File "/usr/lib/python3.9/ipaddress.py", line 162, in _split_optional_netmask
ipaddress.AddressValueError: Only one '/' permitted in '<h1>Not Found</h1>The requested URL /17mon/china_ip_list/master/china_ip_list.txt was not found on this server.'
make: *** [Makefile:4: produce] Error 1

Does anyone help me?

Looks like you did not download china_ip_list.txt correctly, try re-downloaing and run again?

If you cat china_ip_list.txt, you should notice it does not contain a valid IP table.

commented

谢谢,确实是因为chinaip未下载成功。最开始我用的是新路由3刷的openwrt系统,当时使用make命令就直接报错了,现在使用的是x86的openwrt,也就是当前这个问题,虽然已经解决,不过后续的操作还是有问题,因为我用的不是树莓派,无法和您的博客内容完全匹配,而参考的是这个视频https://reurl.cc/rQRjn4
现在的问题是OSPF无法建立邻居关系,但过程中没有提示报错。我再试试吧,如果不行我直接搬用您博客里----类似这样的配置https://post.smzdm.com/p/ag870e9w 来实现分流功能。感谢帮助!