I documented the problem here.
That folder has three files. The README tells the story, which I’ll duplicate below. The other two files contain the output (stderr and stdout combined in one file) from running pip install -r requirements.txt
. One of them is what I get if I run nix-shell
first, and the other is what I get without it.
The story
I’m trying to run agora-server. The README for that project says to do this:
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
The NixOS wiki page on Python suggests in one place a nearly-identical passage:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Those two passages only differ in that the second creates a folder called .venv
instead of venv
, and that the second uses python instead of python3. So I tried this (teeing stdout and stderr to a file because it’s a few pages long):
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt 2>&1 | tee error.txt
That produces these errors. They involve the term “uWSGI”, which I didn’t think I’d installed so I installed uwsgi, the package with the most similar name I could find. I then created a shell.nix
file containing the following:
with import <nixpkgs> { };
mkShell {
buildInputs = [
uwsgi
];
}
(venv)
ran nix-shell
, and tried again. That created similar but not identical errors.
The errors say to “Check the logs for full command output” but I don’t know what logs it’s talking about.