Skip to content

Panda update makes TARGET crash #135

Description

@biglimp

Hi Jixuan,
Here is another issue which is related to updates in pandas in the QGIS/OsGeo installation. Maybe this should be posted in https://github.com/jixuan-chen/target/issues but you can move it there if you like. I think timestamp for minutes have changed from T to min.

/Fredrik

Traceback (most recent call last):
File "pandas/_libs/tslibs/offsets.pyx", line 6213, in pandas._libs.tslibs.offsets._get_offset
KeyError: 'T'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "pandas/_libs/tslibs/offsets.pyx", line 6344, in pandas._libs.tslibs.offsets.to_offset
File "pandas/_libs/tslibs/offsets.pyx", line 6219, in pandas._libs.tslibs.offsets._get_offset
File "pandas/_libs/tslibs/offsets.pyx", line 6137, in pandas._libs.tslibs.offsets.raise_invalid_freq
ValueError: Invalid frequency: T. Failed to parse with error message: KeyError('T'). Did you mean min?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users/xlinfr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processor\target_algorithm.py", line 342, in processAlgorithm
tar.load_config()
File "C:\OSGeo4W\apps\Python312\Lib\site-packages\target_py\scripts\toolkit.py", line 62, in load_config
date_range = pd.date_range(self.date1,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OSGeo4W\apps\Python312\Lib\site-packages\pandas\core\indexes\datetimes.py", line 1442, in date_range
freq = to_offset(freq)
^^^^^^^^^^^^^^^
File "pandas/_libs/tslibs/offsets.pyx", line 6229, in pandas._libs.tslibs.offsets.to_offset
File "pandas/_libs/tslibs/offsets.pyx", line 6352, in pandas._libs.tslibs.offsets.to_offset
File "pandas/_libs/tslibs/offsets.pyx", line 6137, in pandas._libs.tslibs.offsets.raise_invalid_freq
ValueError: Invalid frequency: 60T. Failed to parse with error message: ValueError("Invalid frequency: T. Failed to parse with error message: KeyError('T'). Did you mean min?")

Execution failed after 0.83 seconds

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions