- 积分
- 1784
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-4-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
运行MEGAN_EFP.py时,出现一个错误:UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 203420: invalid start byte看网上有些解决方案,但好像都没用,不知道大神们有没有处理经验?
具体问题如下:
Creating VegType EF and LDF databases
ClassID: 1
./database/M3VTEF_database.mycase.d03.db
Database Initialization
Initialization Complete
Creating M3VTEF DB tables from: ./inputs/VegDB_Tables/
Traceback (most recent call last):
File "MEGAN_EFP.py", line 130, in <module>
efp.m3efp_driver(new_scen_name, VegDB_tables, GridDB_tables, Description_Vegetation,
File "/public/home/mqx/models/megan31/MEGAN31_EFPbeta_191020/./src/run_M3EFP.py", line 115, in m3efp_driver
mvtef.make_M3VTEF_tables(M3VTEF_connection, VegDB_tables, Description_Vegetation, DB_SLA, DB_emissions)
File "/public/home/mqx/models/megan31/MEGAN31_EFPbeta_191020/./src/M3VTEF.py", line 39, in make_M3VTEF_tables
csv_Description_Vegetation = pd.read_csv(csv_input_dir + Description_Vegetation)
File "/home/mqx/models/Python-3.8.10/lib/python3.8/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/mqx/models/Python-3.8.10/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 586, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/mqx/models/Python-3.8.10/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 488, in _read
return parser.read(nrows)
File "/home/mqx/models/Python-3.8.10/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1047, in read
index, columns, col_dict = self._engine.read(nrows)
File "/home/mqx/models/Python-3.8.10/lib/python3.8/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 223, in read
chunks = self._reader.read_low_memory(nrows)
File "pandas/_libs/parsers.pyx", line 801, in pandas._libs.parsers.TextReader.read_low_memory
File "pandas/_libs/parsers.pyx", line 857, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 843, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 1917, in pandas._libs.parsers.raise_parser_error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 203420: invalid start byte
|
|