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

ParseError #19

Closed
jasontowens opened this issue Oct 15, 2018 · 7 comments
Closed

ParseError #19

jasontowens opened this issue Oct 15, 2018 · 7 comments

Comments

@jasontowens
Copy link

is the parse error you were referring to in your description "ParseError: header -- expected b'HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!', got b'\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x00\x03\x00\xfe\xff\t\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00'"

Potentially with custom bytes on the end there? If so, this library could use updating.

@selik
Copy link
Owner

selik commented Oct 15, 2018

What kind of file are you parsing? Might it be a CPORT file?

@jasontowens
Copy link
Author

it has the extension .xpt so no

@selik
Copy link
Owner

selik commented Oct 16, 2018

It's strange that the header would be empty like that. Have you checked the nearby lines? You could be using a SAS v8 or v9 XPT file (#10, #17), which is a different format.

@jasontowens
Copy link
Author

jasontowens commented Oct 17, 2018 via email

@selik
Copy link
Owner

selik commented Oct 17, 2018

I found the differences somewhere a while back. It looks like I jotted them down in the v89.py file https://github.com/selik/xport/blob/master/xport/v89.py

@selik
Copy link
Owner

selik commented Oct 17, 2018

BTW, I'm still toying with the project design. It's not set in stone if you think there's something better.

@selik
Copy link
Owner

selik commented Apr 21, 2020

I'm going to close this as a duplicate of #10.

@selik selik closed this as completed Apr 21, 2020
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

2 participants