django-q icon indicating copy to clipboard operation
django-q copied to clipboard

iron-core fails to install in GitHub actions

Open aleehedl opened this issue 4 years ago • 0 comments

If you fork the repository and run the GitHub actions without actually changing anything, you get the following error:

  • Installing iron-core (1.2.0): Failed
  EnvCommandError

  Command ['/root/.cache/pypoetry/virtualenvs/django-q-9TtSrW0h-py3.8/bin/pip', 'install', '--no-deps', '/root/.cache/pypoetry/artifacts/64/0f/cf/0ae36da3bcf25fe45da1be7b400fb75d1fb06c3c158954313c1b64cfaa/iron-core-1.2.0.tar.gz'] errored with the following return code 1, and output: 
  Processing /root/.cache/pypoetry/artifacts/64/0f/cf/0ae36da3bcf25fe45da1be7b400fb75d1fb06c3c158954313c1b64cfaa/iron-core-1.2.0.tar.gz
      ERROR: Command errored out with exit status 1:
       command: /root/.cache/pypoetry/virtualenvs/django-q-9TtSrW0h-py3.8/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-dhlyavwm/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-dhlyavwm/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'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-p_c_lurc
           cwd: /tmp/pip-req-build-dhlyavwm/
      Complete output (1 lines):
      error in iron-core setup command: use_2to3 is invalid.
      ----------------------------------------
  WARNING: Discarding file:///root/.cache/pypoetry/artifacts/64/0f/cf/0ae36da3bcf25fe45da1be7b400fb75d1fb06c3c158954313c1b64cfaa/iron-core-

Apparently this is because setuptools has removed support for 2to3 during builds: https://setuptools.pypa.io/en/latest/history.html#v58-0-0

2to3 is used in iron-core (iron-mq) whose development has been inactive for several years.

The behaviour can be seen, for example, in here: https://github.com/Koed00/django-q/runs/3698265299?check_suite_focus=true#step:5:162

aleehedl avatar Oct 12 '21 11:10 aleehedl