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

crashes on slow small/empty hitlist from EPMC in GoogleColab #50

Open
petermr opened this issue Aug 21, 2024 · 0 comments
Open

crashes on slow small/empty hitlist from EPMC in GoogleColab #50

petermr opened this issue Aug 21, 2024 · 0 comments

Comments

@petermr
Copy link
Owner

petermr commented Aug 21, 2024

I ran the pygetpapers in GoogleColab

!pygetpapers -q "sealevel rise in Fenland" -k 10 -o "carbon_emi" -p

It was very slow (I think at EPMC) and finally gave

Traceback (most recent call last):
  File "/usr/local/bin/pygetpapers", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/pygetpapers/pygetpapers.py", line 537, in main
    callpygetpapers.create_argparser()
  File "/usr/local/lib/python3.10/dist-packages/pygetpapers/pygetpapers.py", line 530, in create_argparser
    self.runs_pygetpapers_for_given_args(self.query_namespace)
  File "/usr/local/lib/python3.10/dist-packages/pygetpapers/pygetpapers.py", line 312, in runs_pygetpapers_for_given_args
    api_handler.check_query_logic_and_run()
  File "/usr/local/lib/python3.10/dist-packages/pygetpapers/pygetpapers.py", line 204, in check_query_logic_and_run
    self.api.apipaperdownload(self.query_namespace)
  File "/usr/local/lib/python3.10/dist-packages/pygetpapers/repository/europe_pmc.py", line 324, in apipaperdownload
    self.run_eupmc_query_and_get_metadata(
  File "/usr/local/lib/python3.10/dist-packages/pygetpapers/repository/europe_pmc.py", line 289, in run_eupmc_query_and_get_metadata
    metadata_dictionary = self.query(
  File "/usr/local/lib/python3.10/dist-packages/pygetpapers/repository/europe_pmc.py", line 114, in query
    totalhits = retrieved_metadata_dictionary[RESPONSE_WRAPPER][HITCOUNT]
KeyError: 'responseWrapper'
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

1 participant