D:\python\python.exe D:/python-zuoye/pythonProject_001/main.py D:\python-zuoye\pythonProject_001\train_004.py:16: DeprecationWarning: invalid escape sequence \p tagger2 = jzjtagger('D:\python\Lib\site-packages\pyhanlp\static\data\model\perceptron\pku199801\pos.bin') can't invoke "event" command: application has been destroyed while executing "event generate $w <<ThemeChanged>>" (procedure "ttk::ThemeChanged" line 6) invoked from within "ttk::ThemeChanged"
时间: 2023-07-21 10:53:20 浏览: 189
根据您提供的信息,看起来您正在运行一个Python程序,其中包含一个`jzjtagger`对象,该对象有一个指向PyHanLP库中POS模型的文件路径。然而,您的代码中存在一个无效的转义字符`\p`,这可能导致DeprecationWarning警告。另外,程序好像出现了一个错误,提示应用程序已被销毁,无法调用"event"命令。这可能是因为程序中某些部分试图与已销毁的窗口部件进行交互。您可以尝试解决这个问题,或者提供更多的上下文信息,以便我能够更好地帮助您解决问题。
相关问题
36085 WARNING: lib not found: c10.dll dependency of D:\python\lib\site-packages\torchvision\_C.pyd 36099 WARNING: lib not found: torch_cpu.dll dependency of D:\python\lib\site-packages\torchvision\_C.pyd 36113 WARNING: lib not found: c10_cuda.dll dependency of D:\python\lib\site-packages\torchvision\_C.pyd 36127 WARNING: lib not found: torch_cuda_cpp.dll dependency of D:\python\lib\site-packages\torchvision\_C.pyd 36146 WARNING: lib not found: torch_python.dll dependency of D:\python\lib\site-packages\torch\_C_flatbuffer.cp37-win_amd64.pyd 36287 WARNING: lib not found: torch_python.dll dependency of D:\python\lib\site-packages\torch\_C.cp37-win_amd64.pyd 37214 WARNING: lib not found: api-ms-win-security-systemfunctions-l1-1-0.dll dependency of D:\python\lib\site-packages\torchvision\cudart64_110.dll 326321 INFO: Looking for eggs 326578 INFO: Using Python library D:\python\python37.dll 326578 INFO: Found binding redirects: [] 326631 INFO: Warnings written to D:\python-zuoye\pythonProject_001\build\main\warn-main.txt 327409 INFO: Graph cross-reference written to D:\python-zuoye\pythonProject_001\build\main\xref-main.html 327899 INFO: checking PYZ 327900 INFO: Building PYZ because PYZ-00.toc is non existent 327901 INFO: Building PYZ (ZlibArchive) D:\python-zuoye\pythonProject_001\build\main\PYZ-00.pyz 334452 INFO: Building PYZ (ZlibArchive) D:\python-zuoye\pythonProject_001\build\main\PYZ-00.pyz completed successfully. 334974 INFO: checking PKG 334974 INFO: Building PKG because PKG-00.toc is non existent 334975 INFO: Building PKG (CArchive) main.pkg
这个警告信息看起来像是在使用torchvision和torch库时,找不到相关的依赖库。其中,c10.dll, torch_cpu.dll, c10_cuda.dll, torch_cuda_cpp.dll, torch_python.dll 这些库都是与pytorch相关的依赖库。api-ms-win-security-systemfunctions-l1-1-0.dll是Windows系统的API库。
您可以尝试重新安装最新版本的pytorch和torchvision库,并确保您的环境变量已正确配置。如果您使用的是Windows系统,可以尝试安装 Microsoft Visual C++ Redistributable for Visual Studio 2019,它包括了一些必要的系统dll文件。如果问题依然存在,您可以在pytorch或torchvision的官方论坛上提问,寻求帮助。
Exception in Tkinter callback Traceback (most recent call last): File "D:\python\lib\tkinter\__init__.py", line 1705, in __call__ return self.func(*args) File "D:/python-zuoye/pythonProject_001/train_002.py", line 41, in function_1 result = self.text1.get('1.0', END) AttributeError: 'NoneType' object has no attribute 'get' 进程已结束,退出代码为 0
这个错误是因为你的代码中的`self.text1`对象没有被正确创建或初始化,导致在调用`get()`方法时出现了`'NoneType' object has no attribute 'get'`的错误。你需要检查代码中的`self.text1`对象是否被正确创建或初始化,并在使用之前进行必要的检查,以避免出现这个错误。
阅读全文