qq_16409829 2019-04-07 11:34 采纳率: 0%
浏览 820

pyinstaller打包selenium脚本,报Failed to execute script weather

Traceback (most recent call last):
  File "weather.py", line 126, in <module>
  File "weather.py", line 110, in time_control
  File "weather.py", line 85, in Task
  File "weather.py", line 49, in choice_index
  File "selenium\webdriver\remote\webelement.py", line 80, in click
  File "selenium\webdriver\remote\webelement.py", line 633, in _execute
  File "selenium\webdriver\remote\webdriver.py", line 321, in execute
  File "selenium\webdriver\remote\errorhandler.py", line 242, in check_response
selenium.common.exceptions.WebDriverException: Message: unknown error: Element < a href=" " name="O3">...</ a> is not clickable at point (105, 127). Other element would receive the click: <div class="title">...</div>
  (Session info: headless chrome=73.0.3683.86)
  (Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.17763 x86_64)

[2804] Failed to execute script weather

我只导入了selenium,time和datetime,selenium也成功一起打包了,自己电脑上运行没问题,传给别人就用不了报错。

  • 写回答

1条回答 默认 最新

  • I am brother monkey! 2023-09-17 13:26
    关注

    那是因为360安全卫士阻止了exe,只需要在360安全卫士上添加信任就可以了。

    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突