Closed
Description
System Info
OS: Ubuntu 20.04 LTS
branch: master
Python: 3.9
Who can help?
Information
- The official example notebooks/scripts
- My own modified scripts
Related Components
- LLMs/Chat Models
- Embedding Models
- Prompts / Prompt Templates / Prompt Selectors
- Output Parsers
- Document Loaders
- Vector Stores / Retrievers
- Memory
- Agents / Agent Executors
- Tools / Toolkits
- Chains
- Callbacks/Tracing
- Async
Reproduction
I followed the steps as described in .github/contributing.md:
- fork the repo
- clone the fork
conda create -n langchain python=3.9
conda activate langchain
pip install -U pip setuptools
pip install poetry
poetry completions bash >> ~/.bash_completion
poetry config virtualenvs.prefer-active-python true
poetry install -E all
<-- this command failed to unlock the gnome keyring, so I reran according to poetry#1917 below:PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install -E all
make format
Running make format
results in the following:
Traceback (most recent call last):
File "/home/kyle/.miniconda3/envs/langchain/bin/make", line 5, in <module>
from scripts.proto import main
ModuleNotFoundError: No module named 'scripts'
which make
returns a make
script installed in my conda env bin, with the following contents:
#!/home/kyle/.miniconda3/envs/langchain/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from scripts.proto import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
I'm not sure what this is. I'm pretty sure I followed the directions correctly.
Expected behavior
I should be able to run make format
without a problem at this point.
Metadata
Metadata
Assignees
Labels
No labels