ms32035 / firefly-iii-client

Python client for Firefly III API. Please read .generator/Readme.md
19 stars 8 forks source link

'dateutil_parser' is not defined #16

Closed delcooper11 closed 1 year ago

delcooper11 commented 1 year ago

I copied the example from here exactly as-is and got a NameError.

Traceback (most recent call last): File "/Users/danielcooper/Developer/ListTransactionsByAccount.py", line 31, in start = dateutil_parser('Mon Sep 17 00:00:00 UTC 2018').date() # date | A date formatted YYYY-MM-DD. (optional) ^^^^^^^^^^^^^^^ NameError: name 'dateutil_parser' is not defined

I was able to resolve this by adding from dateutil.parser import parse as dateutil_parser after line 1

ms32035 commented 1 year ago

@delcooper11 I regenerated with the latest openapi-generator and also changed the project for easier setting of versions in the docker-compose file, but unfortunately the error is coming from here https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonPriorClientCodegen.java so might want to raise an issue in the openapi-generator project