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 executing the example #12

Closed
paketecuento opened this issue Mar 12, 2023 · 0 comments
Closed

error executing the example #12

paketecuento opened this issue Mar 12, 2023 · 0 comments

Comments

@paketecuento
Copy link

After successful installation, the example is throwing the following error:

python chat_paper.py --query "chatgpt robot" --filter_keys "chatgpt robot" --max_results 1

Key word: learning reinforcement
Query: chatgpt robot
Sort: Relevance
all search:
Traceback (most recent call last):
  File "/Users/paco/Downloads/ChatPaper-main/chat_paper.py", line 420, in <module>
    main(args=args)
  File "/Users/paco/Downloads/ChatPaper-main/chat_paper.py", line 399, in main
    filter_results = reader1.filter_arxiv(max_results=args.max_results)
  File "/Users/paco/Downloads/ChatPaper-main/chat_paper.py", line 51, in filter_arxiv
    for index, result in enumerate(search.results()):
  File "/Users/paco/opt/miniconda3/lib/python3.9/site-packages/arxiv/arxiv.py", line 591, in results
    page_url = self._format_url(search, offset, page_size)
  File "/Users/paco/opt/miniconda3/lib/python3.9/site-packages/arxiv/arxiv.py", line 627, in _format_url
    url_args = search._url_args()
  File "/Users/paco/opt/miniconda3/lib/python3.9/site-packages/arxiv/arxiv.py", line 481, in _url_args
    "sortBy": self.sort_by.value,
AttributeError: 'str' object has no attribute 'value'
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