Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created December 6, 2019 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/100c2f71c99d4aa0adb2dcc9f65e1dec to your computer and use it in GitHub Desktop.
Save exarkun/100c2f71c99d4aa0adb2dcc9f65e1dec to your computer and use it in GitHub Desktop.
Running setup.py develop for gridsync
ERROR: Command errored out with exit status 1:
command: /nix/store/drr8qcgiccfc5by09r5zc30flgwh1mbx-python3-3.7.5/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/exarkun/Work/python3/gridsync/setup.py'"'"'; __file__='"'"'/home/exarkun/Work/python3/gr
idsync/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --prefix=/run/user/1000/tmp.08QXBVciK
Z
cwd: /home/exarkun/Work/python3/gridsync/
Complete output (33 lines):
running develop
Checking .pth file support in /run/user/1000/tmp.08QXBVciKZ/lib/python3.7/site-packages
/nix/store/drr8qcgiccfc5by09r5zc30flgwh1mbx-python3-3.7.5/bin/python3.7 -E -c pass
TEST FAILED: /run/user/1000/tmp.08QXBVciKZ/lib/python3.7/site-packages does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/run/user/1000/tmp.08QXBVciKZ/lib/python3.7/site-packages
and your PYTHONPATH environment variable currently contains:
'/run/user/1000/pip-build-env-22q5k63a/site'
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations
Please make the appropriate changes for your system and try again.
----------------------------------------
ERROR: Can't roll back gridsync; was not uninstalled
ERROR: Command errored out with exit status 1: /nix/store/drr8qcgiccfc5by09r5zc30flgwh1mbx-python3-3.7.5/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/exarkun/Work/python3/gridsync/setup.py'"'"'; __file__=$
"'"'/home/exarkun/Work/python3/gridsync/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --p$
efix=/run/user/1000/tmp.08QXBVciKZ Check the logs for full command output.
Finished executing setuptoolsShellHook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment