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
NoMethodError: undefined method unpack
for nil:NilClass
#79
Comments
The record count in the header of the file is incorrectly set to 8733. Possibly it was not updated correctly the last time the file was written to. I've just released version 3.0.6 which fixes the error when trying to access the non-existent records. Please confirm if 3.0.6 works for you. |
Thanks. The former error disappeared but another error arises:
Is that possible to address the incorrectness of the record count and correct it automatically? In addition, |
Sorry about that. I was traveling and rushed a bad patch. I've had to yank version 3.0.6 from rubygems due to the bad patch. Please give 3.0.7 a try now and let me know if that fixes the issue. |
It works. Thanks~ But I still think that correct the record count automatically would be the best solution. |
I have a dbf file (09_02_23-nqhq.dbf.zip) which has 8687 rows, but
record_count
returns 8733. And maybe it's the cause that many methods failed.All errors are like the following:
Not sure whether the dbf file is corrupted, but reading it with Python's dbfread has no problem.
The text was updated successfully, but these errors were encountered: