ImportError: sys.meta_path is None, Python is likely shutting down. 这是什么原因?

mylaoxiaoxiao 2018-11-02 05:44:35
同样的环境运行不同项目另外个好好地,不过好的那个是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

这错看着也不太像我代码的问题啊。
求解决方法。
...全文
991 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

37,718

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧