
抠脑问题
过程中的掉头发问题
白舟的博客
最不能放弃的就是终身的学习
展开
-
解决:vscode执行python文件保存FileNotFoundError: [Errno 2] No such file or directory: ‘./113.xlsx‘
相当于我在 D:\work\file\study\git-progranm\program> 下执行py文件,但是 113.xlsx是不在这个目录下的,所有识别不到。VScode中,python里的相对路径是相对于当前工作目录来定位的,而当前的工作目录在VScode中下方的终端窗口会有提示。将路径切换成文件所在路径再重新执行就成功了。原创 2024-06-04 16:40:19 · 633 阅读 · 0 评论 -
解决: ImportError: Missing optional dependency ‘openpyxl’. Use pip or conda to install openpyxl.
python使用pandas库打开excel文档时报错解决原创 2024-05-30 16:49:28 · 1198 阅读 · 0 评论 -
AttributeError: ‘str‘ object has no attribute ‘items‘ 解决方法
但是post请求参数的headers要求的是 字典 类型,但是上面返回的authorization是字符串。直接把请求返回的authorization当做参数传给了post的header。原创 2024-03-27 10:49:58 · 518 阅读 · 0 评论 -
解决jmeter测试计划无法保存、另存为的问题
导致执行时报错Couldn’t save test plan to file:C:\Windows\System32。将options--------Look And Feel-------windows。在保存测试计划时直接保存在C:\Windows\System32,原创 2024-01-16 14:36:29 · 1606 阅读 · 0 评论 -
【Linux】Shell脚本“syntax error: unexpected end of file”原因及处理
Linuxshell脚本原创 2022-10-27 10:24:35 · 948 阅读 · 0 评论 -
关于sip协议-3PCC-SIPP工具相关及报错
文章目录sip概念:sip通话场景3pcc :实现3PCC的测试工具:sipp官方文档:如何编写XML脚本如何运行脚本:运行结果如图sip概念:sip协议:session initiation protocol会话发起协议–应用层。控制电路信号,是终端和终端,终端和网络之间传递的一种消息,专门用来控制电路,建立、管理、删除连接,以使用户能够正常通过这些连接进行通信。sip通话场景可参考:https://www.cnblogs.com/lidabo/p/7486197.html大致有:注册流原创 2022-01-07 17:54:51 · 1872 阅读 · 0 评论 -
Git 操作时fatal: Not a git repository (or any of the parent directories): .git
解决方法:提示说没有.git这样一个目录在命令行 输入 git init 然后回车就好了原创 2022-04-14 16:44:05 · 1059 阅读 · 0 评论 -
Git commit 时报错nothing added to commit but untracked files present与Untracked files
解决方法:依次将报错的各个文件 git add然后再进行原来的git commit 命令行原创 2022-04-14 16:39:46 · 843 阅读 · 0 评论 -
Git add 、commit后报错:nothing to commit, working tree clean
原因:文件没有修改的地方,和上仓库最新的文件相比没有改变,所以报错原创 2022-04-14 10:54:02 · 3073 阅读 · 0 评论 -
FTP测试ipv6报错:Job for vsftpd.service failed because the control process exited with erro
问题:在执行:service vsfftp restart 时报错Redirecting to /bin/systemctl restart vsftpd.serviceJob for vsftpd.service failed because the control process exited with error code.See "systemctl status vsftpd.service" and "journalctl -xe" for details.原因:vsftpd服务原创 2022-04-14 10:51:08 · 1194 阅读 · 0 评论 -
Python编码报错 TypeError: unhashable type set
问题:TypeError: unhashable type setclass FTP(object): def __init__(self,ip,user,passwd) : self.ip = ip self.user=user self.passwd = passwd self.child = None def open(self): self.child = pexpect.spawnu(f'ft原创 2022-04-02 17:46:33 · 4204 阅读 · 0 评论 -
TypeError: __init__() missing 2 required positional arguments
问题:TypeError: __init__() missing 2 required positional arguments原因:调用的类有初始化值,调用的时候没有传值导致的解决:调用的类后加上传值原创 2022-04-02 17:35:44 · 2481 阅读 · 0 评论 -
Linux提取nestat -anp 进程参数
netstat -anp | grep 21 | awk '{print $7}' | awk -F/ '{print $2}'grep 21 : 过滤端口号为21的进程awk ‘{print $7}’ : 过滤出第7列的的内容awk -F/ ‘{print $2}’ :过滤第七列第二个字符串(即为进程name。第一个一般为进程号pid)...原创 2022-04-02 17:09:23 · 515 阅读 · 0 评论 -
vscode 取消格式保存代码时自动格式化
问题:之前每次在vscode执行ctr +S 时总是会出现代码自动换行或者格式调整的情况解决方法:将setting.json文件中“ 自动保存代码格式化” 改为false原创 2022-03-29 22:02:32 · 10596 阅读 · 0 评论 -
H323测试环境搭建- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverab
问题:gzip: stdin: not in gzip formattar: Child returned status 1tar: Error is not recoverable: exiting now解决方法:tar包压缩的时候用cvf参数,解压的时候用xvf参数或压缩的时候用czvf参数,解压的时候用xzvf参数bz 包遇到了,就把z参数换成相应j参数更多解决方法可参考:https://www.cnblogs.com/xishaonian/p/7630430.html..原创 2022-02-28 19:06:39 · 335 阅读 · 0 评论 -
H323测试环境搭建--bash: ./configure: Permission denied chmod +x ./configure ./configure
问题:-bash: ./configure: Permission denied原因:没有权限解决方法:chmod +x ./configure #加权限./configure #再编译原创 2022-02-28 19:01:35 · 379 阅读 · 0 评论 -
sipp使用过程中报错
一 :Variable $2 is referenced 1 times!只对assign_to 定义了 为2 ,但是未对其进行引用解决:一般recvcmd 、recv , send ,sendcmd 消息时,controlA 和controlB相互传输数据时,必须为整体结合recvcmd 一个数据报 ,将他定义为 2 ,我们对应的就得将其引用后sendcmd出去二:Unable to load or parse ‘control2.xml’ xml scenario fil原创 2022-01-07 18:05:16 · 1161 阅读 · 0 评论 -
解决测试用例自动生成工具PICT生成乱码问题
问题:用PICT 生成测试用例时出现:解决方案:在保存的适合将编码改为ANSI就可以生成了正确的了结果:原创 2021-06-04 20:46:58 · 726 阅读 · 2 评论 -
python+unittest 运行出现AttributeError: module ‘V1.page‘ has no attribute ‘url‘
解决方法:写PO模式测试登录时页面对象page文件目录:_ init_ 而不是__int___这个文件名写法有明确要求原创 2021-03-10 18:04:58 · 170 阅读 · 0 评论 -
genymotion模拟器adb连接出现device not found问题解决
1. 问题:在学习移动端自动化测试阶段,最开始使用genymotion 这个模拟器总是显示连接不上反正各种脑壳疼,网上很多方式基本上都尝试过,当然不全否定网上的方法,大致有这些:用到后面就发现,每一种方法都不能调试成功: 如果你adbdevices一下就会发现,是这样显示的,红色区域没有东西这是代表没有设备连接上模拟器正确连上了devicse应该是这样,会显示你连上的设备端口号及地址后面尝试过好多次我选择放弃grnymotion 改为夜神模拟器了一是因为他是中文,比之前那个看起来比原创 2021-03-08 17:57:50 · 991 阅读 · 0 评论 -
ResourceWarning: unclosed <socket.socket fd=960, family=AddressFamily.AF_INET, type=SocketKind.SOCK_
问题:ResourceWarning: unclosed <socket.socket fd=960, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 55979), raddr=('127.0.0.1', 55975)> while not utils.is_connectable(self.profile.port):解决方案:导包并添加import原创 2021-03-04 15:27:15 · 2586 阅读 · 1 评论 -
python中同级目录调用导包
用一点链接原创 2021-03-04 15:04:16 · 515 阅读 · 1 评论 -
TypeError: argument 1 must be 2-item sequence, not int问题解决
出错是因为 pygame.display.set_mode(1200,800) 传入的参数是int纠正如下: pygame.display.set_mode((1200,800)) 或 pygame.display.set_mode([1200,800])原创 2021-01-31 12:09:11 · 836 阅读 · 0 评论 -
TypeError: object() takes no parameters最容易忽视的问题所在
在定义类函数并传参时报错:class Dog(): def __int__(self,name,age): self.name=name self.age=age def sit(self): print(self.name.title()+"is now siting") def roll_over(self): print(self.name.title()+"is rolled over")my_dog原创 2021-01-31 10:46:35 · 259 阅读 · 0 评论 -
opencv报错 :[SOURCEREADERCB::~SOURCEREADERCB TERMINATING ASYNC CALLBACK]解决方案
问题:> 读取图像可以但是按下ESC退出时就有问题。解决方法:**将** cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)**改为:**videoSourceIndex = 0cap = cv2.VideoCapture(cv2.CAP_DSHOW+videoSourceIndex)如果还不行可以将第三方库opencv-python 的版本换成3.2.0的,可能是兼容性的问题。...原创 2021-01-06 23:51:44 · 6874 阅读 · 0 评论 -
Pycharm中ui转化.py出现错误( Error: No such file or directory: “untitled.ui“)
解决方法:将working directory 默认路径改为:%FIleDir$ 就可以了原创 2020-12-30 09:19:22 · 5020 阅读 · 3 评论