unable to connect ip driver error code 2 解决方法

打开CMD,调用ping时显示: unable to conect ip dirver,error code 2,

在事件查看器中:

与   DHCP   Client   服务相依的   AFD   网络支持环境   服务因下列错误而无法启动:    
  系统找不到指定的文件。

 

以window 2000为例

引起以上原因,一般来说是c:/winnt/system32/drivers 目录下的tcpip.sys和adf.sys两个文件损坏或丢失,(XP的目录是:c:/windows/system32/drivers).造成文件损坏或丢失的原因,一般来说是被病毒感染,杀毒时被杀毒软件干掉的。

 

解决方法比较简单,只要找一台好的电脑(相同的操作系统),找到这两个文件,把文件COPY到以上目录中,重启电脑就可以了。如果只复制 tcpip.sys这个文件,那么,电脑网络是好的,可以访问其它电脑,但就是上不了网,使用TCPIP协议的软件也没用。

注意:XP的用户在COPY文件之前,要先在C:/WINDOWS/system32/dllcache里把TCPIP.SYS删除,因为在替换过程中系统如果发现系统文件被删除,dllcache会即时补充这个文件,所以必须先删除它。

Traceback (most recent call last): File "F:\PM\PycharmProjects\demo1\venv\lib\site-packages\selenium\webdriver\common\driver_finder.py", line 38, in get_path path = SeleniumManager().driver_location(options) if path is None else path File "F:\PM\PycharmProjects\demo1\venv\lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 90, in driver_location output = self.run(args) File "F:\PM\PycharmProjects\demo1\venv\lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 138, in run raise WebDriverException(f"Unsuccessful command executed: {command}.\n{result}{stderr}") selenium.common.exceptions.WebDriverException: Message: Unsuccessful command executed: F:\PM\PycharmProjects\demo1\venv\lib\site-packages\selenium\webdriver\common\windows\selenium-manager.exe --browser MicrosoftEdge --output json. {'code': 65, 'message': 'error sending request for url (https://msedgedriver.azureedge.net/LATEST_RELEASE_138_WINDOWS): error trying to connect: dns error: 不知道这样的主机。 (os error 11001)', 'driver_path': '', 'browser_path': ''} The above exception was the direct cause of the following exception: Traceback (most recent call last): File "F:/PM/PycharmProjects/demo1/venv/demo1.py", line 4, in <module> driver = webdriver.Edge() #启动 File "F:\PM\PycharmProjects\demo1\venv\lib\site-packages\selenium\webdriver\edge\webdriver.py", line 50, in __init__ keep_alive, File "F:\PM\PycharmProjects\demo1\venv\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 51, in __init__ self.service.path = DriverFinder.get_path(self.service, options) File "F:\PM\PycharmProjects\demo1\venv\lib\site-packages\selenium\webdriver\common\driver_finder.py", line 41, in get_path raise NoSuchDriverException(msg) from err selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for MicrosoftEdge using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
最新发布
08-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值