What To Fix To Solve The Typeerror: An Integer Is Required (got Type Str)
I have a problem with the choice of calculation years. python flux2nc.py ../data/output/fluxes/ ../data/output/ IMPORTANT: ../data/output/fluxes/ SHOULD CONTAIN ONLY FLUXES F
Solution 1:
Your error is probably that you forgot to cast the input(...)
to int
:
start_year = input('Enter start year')
start_year = int(start_year)
you should do the same for end_year
and output
.
Note: It's really hard to try to help you without the source code. I need to infer a lot of things to help you diagnosis this error.
Post a Comment for "What To Fix To Solve The Typeerror: An Integer Is Required (got Type Str)"