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

Error processing SPIE references #3

Open
ehenneken opened this issue Feb 29, 2024 · 3 comments
Open

Error processing SPIE references #3

ehenneken opened this issue Feb 29, 2024 · 3 comments
Assignees

Comments

@ehenneken
Copy link
Member

Command issued: python3 run.py RESOLVE -p /proj/ads/references/sources/SPIE -e *.xml -d 60

Error generated:

Traceback (most recent call last):
  File "run.py", line 323, in <module>
    process_files(source_filenames)
  File "run.py", line 104, in process_files
    toREFs = parser(filename=filename, buffer=None)
  File "/app/adsrefpipe/refparsers/SPIExml.py", line 196, in __init__
    XMLtoREFs.__init__(self, filename, buffer, parsername=SPIEtoREFs, tag='ref', cleanup=self.block_cleanup)
  File "/app/adsrefpipe/refparsers/toREFs.py", line 401, in __init__
    pairs = self.get_references(filename=filename)
  File "/app/adsrefpipe/refparsers/toREFs.py", line 437, in get_references
    return self.get_reference_blob(buffer, self.detect_ref_format(buffer))
  File "/app/adsrefpipe/refparsers/toREFs.py", line 464, in get_reference_blob
    match = pattern.search(buffer)
AttributeError: 'NoneType' object has no attribute 'search'
@ehenneken ehenneken added the bug Something isn't working label Feb 29, 2024
@golnazads
Copy link
Contributor

@ehenneken @aaccomazzi
The reason this fails is because you are looking for most recent 60 day files, I checked several recent directories and found empty files. I found one non empty one which works.
I never thought to consider a xml reference file be completely empty. Going to add a warning and quit in this case. But though you might want to investigate what has gone wrong.

@golnazads golnazads removed the bug Something isn't working label Apr 3, 2024
@golnazads
Copy link
Contributor

Edwin let me know if this issue is resolved on your side and do not need reminder, so I can close it.

@ehenneken
Copy link
Member Author

@golnazads you can close this issue

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