~/P/llama_index conda[base] call_to..ndling ± poetry shell Spawning shell within /Users/Bob/Library/Caches/pypoetry/virtualenvs/llama-index-VqnWDOI7-py3.10 source /Users/Bob/Library/Caches/pypoetry/virtualenvs/llama-index-VqnWDOI7-py3.10/bin/activate.fish Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish ~/P/llama_index conda[base] call_to..ndling ± source /Users/Bob/Library/Caches/pypoetry/virtualenvs/llama-index-VqnWDOI7-py3.10/bin/activate.fish (llama-index-py3.10) ~/P/llama_index conda[base] py[llama-index-VqnWDOI7-py3.10] call_to..ndling ± (llama-index-py3.10) ~/P/llama_index conda[base] py[llama-index-VqnWDOI7-py3.10] call_to..ndling ± poetry install --with dev,docs Installing dependencies from lock file No dependencies to install or update Installing the current project: llama-index (0.10.20) (llama-index-py3.10) ~/P/llama_index conda[base] py[llama-index-VqnWDOI7-py3.10] call_to..ndling ± pytest tests ===================================================================================== test session starts ===================================================================================== platform darwin -- Python 3.11.8, pytest-7.2.1, pluggy-1.3.0 rootdir: /Users/Bob/Projects/llama_index plugins: httpserver-1.0.8, mock-3.11.1, anyio-3.7.1, dotenv-0.5.2 collected 0 items ==================================================================================== no tests ran in 0.01s ==================================================================================== (llama-index-py3.10) ✘ ~/P/llama_index conda[base] py[llama-index-VqnWDOI7-py3.10] call_to..ndling ±
$ git log | head commit dbf3d9a3a658b7449e2d1889c745eaf299bebf30 Author: Emanuel Ferreira <contatoferreirads@gmail.com> Date: Tue Mar 19 17:18:10 2024 -0300
make test
is giving me this:$ make test pants --no-local-cache --changed-since=origin/main --changed-dependents=transitive test make: pants: No such file or directory make: *** [test] Error 1
brew install pantsbuild/tap/pants
, but I hope someone can mention this in https://github.com/run-llama/llama_index/blob/main/CONTRIBUTING.md.which python
) that poetry shell
leads me to, oddly it cannot find the pytest
module.pytest llama-index-core/tests
$ pytest llama-index-core/tests ImportError while loading conftest '/Users/Bob/Projects/llama_index/llama-index-core/tests/conftest.py'. llama-index-core/tests/conftest.py:8: in <module> from llama_index.core.base.llms.types import LLMMetadata E ModuleNotFoundError: No module named 'llama_index.core.base'
pip install -e ./llama_index_core
?$ pip install -e ./llama_index_core ERROR: ./llama_index_core is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
Successfully built llama-index-core Installing collected packages: llama-index-core Attempting uninstall: llama-index-core Found existing installation: llama-index-core 0.10.20 Uninstalling llama-index-core-0.10.20: Successfully uninstalled llama-index-core-0.10.20 Successfully installed llama-index-core-0.10.20.post3 $ pytest llama-index-core/tests (base) ImportError while loading conftest '/Users/Bob/Projects/llama_index/llama-index-core/tests/conftest.py'. llama-index-core/tests/conftest.py:8: in <module> from llama_index.core.base.llms.types import LLMMetadata E ModuleNotFoundError: No module named 'llama_index.core.base'
$ which poetry /opt/homebrew/Caskroom/miniforge/base/bin/poetry $ which python /Users/Bob/Library/Caches/pypoetry/virtualenvs/llama-index-VqnWDOI7-py3.10/bin/python
cd llama-index-core
and then run pytest tests
?$ pip uninstall llama-index Found existing installation: llama-index 0.9.21 Uninstalling llama-index-0.9.21: Would remove: /opt/homebrew/Caskroom/miniforge/base/bin/llamaindex-cli /opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/llama_index-0.9.21.dist-info/* /opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages/llama_index.pth Proceed (Y/n)? y Successfully uninstalled llama-index-0.9.21
pytest
now. My current copy is installed via brew
. Maybe it doesn't respect Poetry venv Python binary???/opt/homebrew/opt/python@3.11/bin/python3.11
.pytest = "7.2.1"
was in pyproject.toml
3 months ago (0.9.23), but today it's not: https://github.com/run-llama/llama_index/blob/main/poetry.lock.pytest
earlier today.pytest
-related packages from the top-level pyproject.toml
: https://github.com/run-llama/llama_index/commit/369973f4e8c1d6928149f0904b25473faeadb116pytest tests
as an option to test the repo altogether.main
branch on your end?FAILED tests/agent/react/test_react_agent.py::test_astream_chat_basic - AttributeError: 'NoneType' object has no attribute 'wait' FAILED tests/agent/react/test_react_agent.py::test_async_add_step - AttributeError: 'NoneType' object has no attribute 'wait'
cd llama-index-core # ! not the root dir. poetry shell poetry install --with dev,docs pytest
c367767a899a1471f6e468f804eb43091396db5a
.