Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: could not convert string to float: b'60.00\x00\x00' #69

Closed
thalibarrifqi opened this issue Oct 4, 2023 · 1 comment
Closed

Comments

@thalibarrifqi
Copy link

Traceback (most recent call last):
File "", line 1, in
File "/home/btx/Python/btx-venv/lib/python3.10/site-packages/dbfread/dbf.py", line 314, in _iter_records
items = [(field.name,
File "/home/btx/Python/btx-venv/lib/python3.10/site-packages/dbfread/dbf.py", line 315, in
parse(field, read(field.length)))
File "/home/btx/Python/btx-venv/lib/python3.10/site-packages/dbfread/field_parser.py", line 79, in parse
return func(field, data)
File "/home/btx/Python/btx-venv/lib/python3.10/site-packages/dbfread/field_parser.py", line 174, in parseN
return float(data.replace(b',', b'.'))
ValueError: could not convert string to float: b'60.00\x00\x00'

@thalibarrifqi
Copy link
Author

I was able to solve the problem by reference to this solution
#20 (comment)
thank you to pbrn46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant