You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how the original file was generated but according to the internet, a dbf file may contain numbers stored in scientific notation.
In such cases, the following error can be observed:
ValueError: invalid literal for int() with base 10: b'1.E+3'
This is coming from retrieve_numeric() function from tables.py, and can be fixed by wrapping the string in float() before converting to int:
if fielddef[DECIMALS] == 0:
return string and int(float(string)) or 0
else:
return string and float(string) or 0.0
The text was updated successfully, but these errors were encountered:
I don't know how the original file was generated but according to the internet, a dbf file may contain numbers stored in scientific notation.
In such cases, the following error can be observed:
This is coming from retrieve_numeric() function from tables.py, and can be fixed by wrapping the string in float() before converting to int:
The text was updated successfully, but these errors were encountered: