关于平时使用过程中遇到的错误,有效的解决办法搜集。
序号 | 问题 | 错误提示 | 解决 | 有效参考 | 记录时间 |
1 | pytest | TypeError: required field "posonlyargs" missing from arguments | 卸载pytest-allure-adapter pip3 uninstall pytest-allure-adapter | https://ask.csdn.net/questions/1069013 | 2020年6月8日 |
2 | allure安装问题 | allure现在版本已经更新到allure2 网上很多安装的教程都是要安装pytest-allure-adaptor | allure2已经不用这个了,python下直接安装allure-pytest就行 | https://www.cnblogs.com/fengzx120/p/10880619.html | 2020年6月8日 |
3 | python读取yaml存在中文编码问题 | UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 38: illegal multibyte sequence | 修改yaml文件的格式为GBK | ![]() | 2020年6月8日 |
4 | docker安装问题 | Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path" | 系统中没有安装 VirtualBox | Windows下的安装:https://blog.csdn.net/zcooa/article/details/80615743 | 2020年6月8日 |
5 | Windows使用openssl生成自签证书问题 | unable to load CA private key | 目录创建不正确 | https://blog.csdn.net/songlh1234/article/details/106998790 | 2020年6月28日 |
6 | Docker build 报错 | Could not open requirments file: [Errno 2] No such file or directory:'requirements.txt' | Add .将全部文件添加到目录或单独添加
| https://www.bbsmax.com/A/ke5jwRvgdr/ | 2020年11月30日 |
7 | Docker build 报错 | Error response from daemon: Dockerfile parse error line xxx: unknown instruction: xxx | Dockerfile文件写的内容不正确,造成命令无法识别 | https://blog.csdn.net/keineahnung2345/article/details/86063328 | 2020年11月30日 |
8 | |||||
9 | |||||
10 |