uiautomation: debug记录

1. pyinstaller打包后运行涉及uiautomation时出现的的错误

1.1 [WinError 3] The system cannot find the path specified: ‘C:\Users\g\AppData\Local\Temp\_MEI192482\uiautomation\bin’

  • 详细报错内容如下
[E 240709 09:27:47 lib:646] [WinError 3] The system cannot find the path specified: 'C:\\Users\\g\\AppData\\Local\\Temp\\_MEI192482\\uiautomation\\bin'
Exception ignored in: <function _DllClient.__del__ at 0x000001D8CEDA2D30>
Traceback (most recent call last):
  File "uiautomation\uiautomation.py", line 122, in __del__
AttributeError: '_DllClient' object has no attribute 'dll'
  • 解决方法
    • 按照图片使用spec文件中的datas参数
    • datas参数接收一个元组: (源文件路径,exe解压缩以后的文件夹里面的路径)
      在这里插入图片描述

相关推荐

  1. HSQL 记录

    2024-07-12 15:14:01       67 阅读
  2. bug 记录

    2024-07-12 15:14:01       50 阅读
  3. QT 记录

    2024-07-12 15:14:01       59 阅读
  4. QtConcurrent记录

    2024-07-12 15:14:01       57 阅读
  5. 学习记录————

    2024-07-12 15:14:01       61 阅读
  6. 记录 bpftrace】

    2024-07-12 15:14:01       63 阅读
  7. Vue<span style='color:red;'>记录</span>

    Vue记录

    2024-07-12 15:14:01      48 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-12 15:14:01       70 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-12 15:14:01       74 阅读
  3. 在Django里面运行非项目文件

    2024-07-12 15:14:01       62 阅读
  4. Python语言-面向对象

    2024-07-12 15:14:01       72 阅读

热门阅读

  1. Python数据分析~~美食排行榜

    2024-07-12 15:14:01       18 阅读
  2. 常用的内部排序算法

    2024-07-12 15:14:01       15 阅读
  3. 人脸检测+调整分辨率+调整帧率

    2024-07-12 15:14:01       26 阅读
  4. python-torch加载c++与内核函数

    2024-07-12 15:14:01       17 阅读
  5. 如何将canvas画布变成一张img图片

    2024-07-12 15:14:01       21 阅读