EleutherAI / EleutherAI/elk

pip install from git doesn't work

Open
#297 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
225
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Reproduced on my local setup and on colab
```py
!pip install git+https://github.com/EleutherAI/elk/
import elk
```
```
----> 2 import elk

[/usr/local/lib/python3.10/dist-packages/elk/__init__.py](https://localhost:8080/#) in
----> 1 from .evaluation import Eval
2 from .extraction import Extract
3 from .training.train import Elicit
4
5 __all__ = [

ModuleNotFoundError: No module named 'elk.evaluation'
```
```
elk elicit microsoft/deberta-v2-xxlarge-mnli imdb --net ccs
```
```
Traceback (most recent call last):
File "/usr/local/bin/elk", line 5, in
from elk.__main__ import run
File "/usr/local/lib/python3.10/dist-packages/elk/__init__.py", line 1, in
from .evaluation import Eval
ModuleNotFoundError: No module named 'elk.evaluation'
```

However doing the installation manually works
```
!git clone https://github.com/EleutherAI/elk/
%cd elk
!pip install -e .
import elk
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `pip install git+https://github.com/EleutherAI/elk/`, then compare it with the working `git clone` and `pip install -e .` sequence. Inspect the repository's packaging configuration and verify that a direct Git installation makes `import elk` and the `elk elicit` command work without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.