我的程序是selenium自动化脚本,打包时执行的是 Python pyinstaller -F --onefile -w  XXX.py 这样打出的包执行后提示“failed to excute script  xxx” 一直没想到是哪里出了问题,后来又仔细看了下打包参数 -F, –onefile 打包成一个exe文件.-D, –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项).-c, –console, –nowindowed 使用控制台,无界面(默认)-w, –wi…
用QtDesigner设计了一个UI界面,保存在文件Ui_wintest.ui中,界面中使用了MainWindow窗口,窗口名字也叫MainWindow,用PyUIC将其转换成了 Ui_wintest.py文件,在其中UI界面类为Ui_MainWindow. 然后编辑了一个主应用代码文件: from PyQt5.QtWidgets import QMessageBox,QApplication from PyQt5 import QtWidgets import sys import Ui_wi…
导入 MySQL 脚本时报错:[ERR] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'低版本还不支持 utfmb4 这个字符集 解决方法:将 sql 脚本中的所有utf8mb4_0900_ai_ci 替换为 utf8_general_ciutf8mb4 替换为 utf8 https://blog.csdn.net/yinzitun7947/article/details/89917611…
今天在虚拟机的Linux系统(centos7)里安装Redis,准备学习一下布隆过滤器呢,安装完后使用Windows本机访问不了虚拟机里的Redis,telnet不通能够ping通.于是就去看防火墙,是否关闭或是否把6379端口放开了. 于是就往这方面查问题,发现没有iptables文件,然后我启动iptables服务,报错. Centos 7在启动iptables(防火墙)时报错:Failed to start IPv4 firewall with iptables. 原因:因为centos7…
错误描述: 020-03-24 22:45:23,204 WARN org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor: Exit code from container container_1585061045134_0001_01_000001 is : 1 2020-03-24 22:45:23,205 WARN org.apache.hadoop.yarn.server.nodemanager.Defaul…
Fix tcl/tk libs inclusion in tkinter with Python3.7 under MacOS 使用 Pyinstaller 打包时候报错 3027 ERROR: Tcl/Tk improperly installed on this system. (lyj_venv) ➜ liyongjiandeMBP.lan [/Users/liyongjian/lyj] pyinstaller --windowed --onefile --clean --noconfir…
导Android项目时碰到个头疼的NoclassDefFoundError. 项目导入之后是没有报错的.可是执行就报这个错误 java.lang.NoClassDefFoundError: android.support.v4.view.ViewConfigurationCompat 而去查看v4的包.ViewConfigurationCompat这个类确实是存在的. 在解决这个报错的过程中我尝试了各种办法.特此整理下来. 网上一搜.好多解决的方法~~ 大致归类为下面几种: http://ydp…
今天安装XLConnect包,安装后无法library(XLConnect)载入,看报错问题应该出在rJava上,找到了下面的解决办法: if (Sys.getenv("JAVA_HOME")!="") Sys.setenv(JAVA_HOME="") library(rJava) 作者解释说:若使用64bit版本,不能设置JAVA_HOME变量,否则rJava因为未知原因不能工作. 参考:http://stackoverflow.com/que…
虽然已经装了,但一直报错 ,版本是3.1.1 最新版 ➜  ~ pip install robotframework DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop su…
使用Qt5.9.3+vs2017环境,编译项目生成Debug目录,运行其中的exe文件,出现以下错误(qt creator调试状态下或出安装包后是可以运行的): 经过查阅资料,发现是我重新配置Qt开发环境后忘记配置环境变量.当我们用Qt Creator直接运行时,不报错是因为Creator自己去找对应的dll,但直接运行debuge目录下的exe时,其只会在当前exe运行目录以及window环境变量目录中去找dll.当找不到时程序就会提示无法找到xxx.dll. 操作步骤如下: 1.双击编辑系统…