Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install tsrc in editable mode #293

Closed
dmrub opened this issue May 17, 2021 · 1 comment
Closed

Cannot install tsrc in editable mode #293

dmrub opened this issue May 17, 2021 · 1 comment

Comments

@dmrub
Copy link

dmrub commented May 17, 2021

Environment

  • Output of tsrc version: tsrc version 2.2.1
  • Operating system: Fedora 32 (Workstation Edition)

Command you ran

I wanted to develop a feature for tsrc and tried to install it in editable mode but failed:

$ pip install --editable git+https://github.com/dmerejkowsky/tsrc.git#egg=tsrc

Actual output

Obtaining tsrc from git+https://github.com/dmerejkowsky/tsrc.git#egg=tsrc
  Updating ./venv/src/tsrc clone
  Running command git fetch -q --tags
  Running command git reset --hard -q 4771dc3f093345cc453f2f00e9643bbb82c8b255
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: unidecode<2.0.0,>=1.1.1 in ./venv/lib/python3.8/site-packages (from tsrc) (1.2.0)
Requirement already satisfied: attrs<20.0.0,>=19.3.0 in ./venv/lib/python3.8/site-packages (from tsrc) (19.3.0)
Requirement already satisfied: cli-ui<0.12.0,>=0.11.0 in ./venv/lib/python3.8/site-packages (from tsrc) (0.11.0)
Requirement already satisfied: tabulate<0.9.0,>=0.8.6 in ./venv/lib/python3.8/site-packages (from tsrc) (0.8.9)
Requirement already satisfied: schema<0.8.0,>=0.7.1 in ./venv/lib/python3.8/site-packages (from tsrc) (0.7.4)
Requirement already satisfied: ruamel.yaml<0.17.0,>=0.16.7 in ./venv/lib/python3.8/site-packages (from tsrc) (0.16.13)
Requirement already satisfied: colored_traceback<0.4.0,>=0.3.0 in ./venv/lib/python3.8/site-packages (from tsrc) (0.3.0)
Requirement already satisfied: colorama<0.5.0,>=0.4.1 in ./venv/lib/python3.8/site-packages (from cli-ui<0.12.0,>=0.11.0->tsrc) (0.4.4)
Requirement already satisfied: pygments in ./venv/lib/python3.8/site-packages (from colored_traceback<0.4.0,>=0.3.0->tsrc) (2.9.0)
Requirement already satisfied: ruamel.yaml.clib>=0.1.2 in ./venv/lib/python3.8/site-packages (from ruamel.yaml<0.17.0,>=0.16.7->tsrc) (0.2.2)
Requirement already satisfied: contextlib2>=0.5.5 in ./venv/lib/python3.8/site-packages (from schema<0.8.0,>=0.7.1->tsrc) (0.6.0.post1)
Installing collected packages: tsrc
  Running setup.py develop for tsrc
    ERROR: Command errored out with exit status 1:
     command: /home/rubinste/Kubernetes/Admin/tsrc-test/venv/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/rubinste/Kubernetes/Admin/tsrc-test/venv/src/tsrc/setup.py'"'"'; __file__='"'"'/home/rubinste/Kubernetes/Admin/tsrc-test/venv/src/tsrc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /home/rubinste/Kubernetes/Admin/tsrc-test/venv/src/tsrc/
    Complete output (3 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'setuptools'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/rubinste/Kubernetes/Admin/tsrc-test/venv/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/rubinste/Kubernetes/Admin/tsrc-test/venv/src/tsrc/setup.py'"'"'; __file__='"'"'/home/rubinste/Kubernetes/Admin/tsrc-test/venv/src/tsrc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

Looks like this problem python-poetry/poetry#2956, but the recommended solution does not work for me.

Expected result

@dmerejkowsky
Copy link
Collaborator

I don't think there's anything we can do in tsrc to fix that, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants