petermr / pygetpapers

a Python version of getpapers
Apache License 2.0
78 stars 9 forks source link

AttributeError when calling from CLI, whatever the arguments #32

Closed raffaem closed 2 years ago

raffaem commented 2 years ago

Describe the bug

$ pygetpapers -q "BONE METASTASES IN NEUROENDOCRINE TUMORS:"
Traceback (most recent call last):
  File "/home/raffaele/.local/bin/pygetpapers", line 8, in <module>
    sys.exit(main())
  File "/home/raffaele/.local/lib/python3.10/site-packages/pygetpapers/pygetpapers.py", line 538, in main
    callpygetpapers.handlecli()
  File "/home/raffaele/.local/lib/python3.10/site-packages/pygetpapers/pygetpapers.py", line 358, in handlecli
    default=self.default_url,
AttributeError: 'Pygetpapers' object has no attribute 'default_url'. Did you mean: 'default_path'?

Expected behavior Should work

Desktop (please complete the following information):

vinitamehlawat commented 2 years ago

Hi @ayush4921

I am also facing the same issue, I have followed the installation instruction but whenever I tried to run the pygetpapers --help it gave me an error: AttributeError: **'Pygetpapers' object has no attribute 'default_url'**.

Thanks Vinita

ayush4921 commented 2 years ago

Please update pygetpapers. The bug has been fixed in the latest update.