ImportError: sys.meta_path is None, Python is likely shutting down. 这是什么原因?
同样的环境运行不同项目另外个好好地,不过好的那个是firefox,有问题的这个用chrome 这个就歇菜了。报错:
Traceback (most recent call last):
File "C:/Users/sun/PycharmProjects/DZHYSYS/page/main_page.py", line 52, in <module>
mainp.Fkyjcx_SwitchFrame()
File "C:/Users/sun/PycharmProjects/DZHYSYS/page/main_page.py", line 29, in Fkyjcx_SwitchFrame
print(self.driver.tittle)
AttributeError: 'WebDriver' object has no attribute 'tittle'
Exception ignored in: <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x00000000026787B8>>
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 163, in __del__
File "C:\Program Files\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 139, in stop
File "C:\Program Files\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 110, in send_remote_shutdown_command
ImportError: sys.meta_path is None, Python is likely shutting down
这错看着也不太像我代码的问题啊。
求解决方法。