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

Unknown field type: 'V' #6

Closed
RomanKharin opened this issue Apr 24, 2015 · 6 comments
Closed

Unknown field type: 'V' #6

RomanKharin opened this issue Apr 24, 2015 · 6 comments

Comments

@RomanKharin
Copy link

Some files created with FoxPro 9 can not be opened with dbfread.DBF("file.dbf")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/dbfread/dbf.py", line 120, in __init__
    self._check_headers()
  File "~/dbfread/dbf.py", line 259, in _check_headers
    raise ValueError('Unknown field type: {!r}'.format(field.type))
ValueError: Unknown field type: 'V'

Seems to be DBF format slightly updated
https://msdn.microsoft.com/en-us/library/st4a0s68%28VS.80%29.aspx

@olemb
Copy link
Owner

olemb commented Apr 25, 2015 via email

@bobintetley
Copy link

if I copy parseC in FieldParser.py and rename the copy parseV the error goes away and it doesn't seem to break anything.

@olemb
Copy link
Owner

olemb commented Apr 28, 2016 via email

@olemb
Copy link
Owner

olemb commented May 27, 2016

I've added support for V fields to my develop branch.

@bobintetley I just added this to the parser class:

parseV = parseC

Should work for now.

@olemb olemb closed this as completed May 27, 2016
@olemb
Copy link
Owner

olemb commented May 27, 2016

Not sure if you can comment on closed issues. Reopening just in case.

@olemb olemb reopened this May 27, 2016
@olemb
Copy link
Owner

olemb commented Jun 7, 2016

I just released 2.0.6 with support for V fields.

@olemb olemb closed this as completed Jun 7, 2016
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

3 participants