Traceback (most recent call last): File "D:\88888\poa_traffic_accidents-main\app.py", line 28, in <module> scaler_feridos = jb.load(file_scaler_feridos) File "D:\Anaconda3\lib\site-packages\joblib\numpy_pickle.py", line 587, in load obj = _unpickle(fobj, filename, mmap_mode) File "D:\Anaconda3\lib\site-packages\joblib\numpy_pickle.py", line 506, in _unpickle obj = unpickler.load() File "D:\Anaconda3\lib\pickle.py", line 1212, in load dispatch[key[0]](self) KeyError: 118
时间: 2023-07-31 21:09:46 浏览: 370
这个错误可能是由于你尝试使用 pickle 加载一个不存在的对象导致的。在你的代码中,出现了一个键为 118 的错误,这可能是由于你尝试加载一个不存在的对象或文件。建议你检查一下文件路径是否正确,确保文件存在并且具有正确的读取权限。你也可以尝试使用其他加载模块,例如 `numpy.load()` 或 `pandas.read_pickle()` 来替代 pickle。
相关问题
D:\python\python.exe D:\code\Production_Practice_GAN-main\Production_Practice_GAN-main\main.py Traceback (most recent call last): File "D:\code\Production_Practice_GAN-main\Production_Practice_GAN-main\main.py", line 1, in <module> from AnimeGAN import AnimeGAN File "D:\code\Production_Practice_GAN-main\Production_Practice_GAN-main\AnimeGAN.py", line 1, in <module> from ops import * File "D:\code\Production_Practice_GAN-main\Production_Practice_GAN-main\ops.py", line 2, in <module> import tensorflow.contrib as tf_contrib ModuleNotFoundError: No module named 'tensorflow.contrib'
这个错误信息显示你的代码在导入 tensorflow.contrib 模块时出现了问题,可能是因为你的 TensorFlow 版本太新或太旧。在 TensorFlow 2.0 中,已经删除了 tensorflow.contrib 模块,如果你的代码是基于 TensorFlow 1.x 编写的,那么建议你使用 TensorFlow 1.x 的版本来运行代码。如果你已经使用了 TensorFlow 1.x 的版本,那么可以尝试安装适当的 TensorFlow 版本或者检查你的代码中是否存在拼写错误或路径问题。
解释下F:\python_projects\venv\Scripts\python.exe F:\result\eye_first_move_to_objects_time.py Traceback (most recent call last): File "F:\result\eye_first_move_to_objects_time.py", line 73, in <module> coordinate_x = float(fix_record[row_index][5].value) ValueError: could not convert string to float: '.' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "F:\python_projects\venv\lib\site-packages\openpyxl\worksheet\_writer.py", line 32, in _openpyxl_shutdown os.remove(path) PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\\Users\\dell\\AppData\\Local\\Temp\\openpyxl.byyckh9l' Exception ignored in: <generator object WorksheetWriter.get_stream at 0x000001FBA5104820> Traceback (most recent call last): File "F:\python_projects\venv\lib\site-packages\openpyxl\worksheet\_writer.py", line 300, in get_stream File "src\lxml\serializer.pxi", line 1834, in lxml.etree._FileWriterElement.__exit__ File "src\lxml\serializer.pxi", line 1570, in lxml.etree._IncrementalFileWriter._write_end_element lxml.etree.LxmlSyntaxError: inconsistent exit action in context manager Exception ignored in: <generator object WriteOnlyWorksheet._write_rows at 0x000001FBA5104270> Traceback (most recent call last): File "F:\python_projects\venv\lib\site-packages\openpyxl\worksheet\_write_only.py", line 75, in _write_rows File "src\lxml\serializer.pxi", line 1834, in lxml.etree._FileWriterElement.__exit__ File "src\lxml\serializer.pxi", line 1568, in lxml.etree._IncrementalFileWriter._write_end_element lxml.etree.LxmlSyntaxError: not in an element Process finished with exit code 1
这是一个 Python 程序运行时出现的错误信息。其中,第一行是命令行窗口中输入的 Python 程序执行命令,指定了 Python 解释器和要执行的 Python 文件的路径。接下来是一个 traceback,它展示了程序运行时的错误信息。在这个例子中,程序在第 73 行尝试将一个字符串转换为浮点数,但该字符串是一个点,无法转换。此外,在 traceback 中还显示了一些在程序结束时出现的异常,这些异常通常与文件操作有关。在这个例子中,程序试图删除一个文件,但该文件正在被另一个程序使用,因此无法删除。最后两行 traceback 是与 lxml 库相关的异常,这些异常可能与程序中使用的 Excel 文件有关。
阅读全文
相关推荐
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)