Hi Phoenix support! I'm encountering an issue that's very similar to this thread back in June. I opened up an issue, but I was hoping someone could help me with this. I'm using Pants which creates a virtual environment/hermetic sandbox based on a requirements.txt file when it is run. When I try to use anything from phoenix I'm getting ModuleNotFoundError: no module named 'phoenix.evals' which is imported in functions.py. I found that the evals directory is not present in the distro for arize-phoenix library nor is it in this directory. Am I missing something here?
The phoenix.evals module is a separate package that needs to be installed alongside arize-phoenix. According to the GitHub issue, if you encounter a ModuleNotFoundError for phoenix.evals, you should install the arize-phoenix-evals package. This can be done by running pip install arize-phoenix[evals], which includes the evals as an optional extra. This setup is confirmed in the pull request that added phoenix.evals as an optional extra install.Would you like more detail on how to configure your requirements.txt or any other aspect of the installation process? Sources:
- GitHub Issue #2368
- GitHub Pull Request #2389
馃挕聽Hint: Mention RunLLM in the thread for followups.
incidentally, does adding arize-phoenix-evals to the requirements.txt file work?
no it doesn't work. I've also tried arize-phoenix[evals] in my requirements.txt file to no avail
I can import phoenix.evals in my first party code but when I try to use anything in phoenix I'm getting that error
what do i need to do if i want to reproduce this using Pants?
I can try to create a minimal example to see if I can repro on a fresh repo
