Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Unable to read marc21 file exported from NewGenLib #71

Open
acorbi opened this issue Dec 18, 2014 · 1 comment
Open

Unable to read marc21 file exported from NewGenLib #71

acorbi opened this issue Dec 18, 2014 · 1 comment

Comments

@acorbi
Copy link

acorbi commented Dec 18, 2014

I take a file exported from NextGenLib (http://verussolutions.biz/web/content/download) software which contains around 1500 records in MARC21 format. When i try to open it using pymarc 3.0.3 following error gets thrown:

Traceback (most recent call last): File "convert_marc21_records.py", line 18, in for record in reader: File "/Users/alexcorbi/Developing/ODC/venv/lib/python2.7/site-packages/six.py", line 530, in next return type(self).**next**(self) File "/Users/alexcorbi/Developing/ODC/venv/lib/python2.7/site-packages/pymarc/reader.py", line 97, in **next** utf8_handling=self.utf8_handling) File "/Users/alexcorbi/Developing/ODC/venv/lib/python2.7/site-packages/pymarc/record.py", line 72, in **init** utf8_handling=utf8_handling) File "/Users/alexcorbi/Developing/ODC/venv/lib/python2.7/site-packages/pymarc/record.py", line 321, in decode_marc raise NoFieldsFound pymarc.exceptions.NoFieldsFound: Unable to locate fields in record data

However if i try the sample files provided with the library, they get read properly. Is there any difference between MARC21 files?

@edsu
Copy link
Owner

edsu commented Dec 18, 2014

Can you export one record and make it available somehow?

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

No branches or pull requests

2 participants