Skip to content

following contributing.md results in being unable to run make #6182

Closed
@kylrth

Description

@kylrth

System Info

OS: Ubuntu 20.04 LTS
branch: master
Python: 3.9

Who can help?

@hwchase17

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:

  1. fork the repo
  2. clone the fork
  3. conda create -n langchain python=3.9
  4. conda activate langchain
  5. pip install -U pip setuptools
  6. pip install poetry
  7. poetry completions bash >> ~/.bash_completion
  8. poetry config virtualenvs.prefer-active-python true
  9. poetry install -E all <-- this command failed to unlock the gnome keyring, so I reran according to poetry#1917 below:
  10. PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install -E all
  11. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions