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

Arxiv agent not working as shown in docs. And is throwing import error. #1894

Open
samyogdhital opened this issue Jan 27, 2025 · 3 comments
Open

Comments

@samyogdhital
Copy link

https://docs.phidata.com/tools/arxiv#arxiv

While running this code, even though I ran this code pip install -U arxiv pypdf, I am still getting,

raise ImportError("`arxiv` not installed. Please install using `pip install arxiv`")
ImportError: `arxiv` not installed. Please install using `pip install arxiv`
@willemcdejongh
Copy link

Hi @samyogdhital Please make sure that your venv is setup correctly. Did you run the setup script?
scripts/create_venv.sh
Also be sure to source the venv after creation. Let me know if you are still stuck after doing this.

@samyogdhital
Copy link
Author

@willemcdejongh Thanks for this info. As you said, this seems to work when you clone the repo and run create_venv.sh/.bat but when you directly just have a arxiv.py file and do pip install under virtual environment, this error seems to appear.

I see other examples works well without needing to clone main project, but this seems to be problem with this particular example.

Is this the intended behavior brother?

@manthanguptaa
Copy link
Contributor

@samyogdhital seems like the file name arxiv.py might be colliding with the package name arxiv which might be causing the issue. Can you try again by changing the name of the file?

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

3 participants