<#18759 Installtion via `pipx` fails due to old ve...
# github-notifications
c
#18759 Installtion via `pipx` fails due to old version of `pystache` Issue created by joe733 Describe the bug
please read the heading
Pants version
Latest
OS
Linux & MacOS
Additional info: Culprit: sarnold/pystache#16 (comment)
Log
Copy code
───────┬────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /home/user-name/.local/pipx/logs/cmd_2023-04-18_15.17.23_pip_errors.log
───────┼────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ PIP STDOUT
   2   │ ----------
   3   │ Collecting pantsbuild-pants
   4   │   Using cached pantsbuild.pants-1.28.0-cp36-abi3-manylinux2014_x86_64.whl (49.1 MB)
   5   │ Collecting setproctitle==1.1.10 (from pantsbuild-pants)
   6   │   Using cached setproctitle-1.1.10.zip (34 kB)
   7   │   Preparing metadata (setup.py): started
   8   │   Preparing metadata (setup.py): finished with status 'done'
   9   │ Collecting ansicolors==1.1.8 (from pantsbuild-pants)
  10   │   Using cached ansicolors-1.1.8-py2.py3-none-any.whl (13 kB)
  11   │ Collecting typing-extensions==3.7.4 (from pantsbuild-pants)
  12   │   Using cached typing_extensions-3.7.4-py3-none-any.whl (20 kB)
  13   │ Collecting dataclasses==0.6 (from pantsbuild-pants)
  14   │   Using cached dataclasses-0.6-py3-none-any.whl (14 kB)
  15   │ Collecting packaging==16.8 (from pantsbuild-pants)
  16   │   Using cached packaging-16.8-py2.py3-none-any.whl (23 kB)
  17   │ Collecting psutil==5.7.0 (from pantsbuild-pants)
  18   │   Using cached psutil-5.7.0.tar.gz (449 kB)
  19   │   Preparing metadata (setup.py): started
  20   │   Preparing metadata (setup.py): finished with status 'done'
  21   │ Collecting fasteners==0.15.0 (from pantsbuild-pants)
  22   │   Using cached fasteners-0.15-py2.py3-none-any.whl (23 kB)
  23   │ Collecting python-Levenshtein==0.12.0 (from pantsbuild-pants)
  24   │   Using cached python-Levenshtein-0.12.0.tar.gz (48 kB)
  25   │   Preparing metadata (setup.py): started
  26   │   Preparing metadata (setup.py): finished with status 'done'
  27   │ Collecting PyYAML<5.4,>=5.3.1 (from pantsbuild-pants)
  28   │   Using cached PyYAML-5.3.1.tar.gz (269 kB)
  29   │   Preparing metadata (setup.py): started
  30   │   Preparing metadata (setup.py): finished with status 'done'
  31   │ Collecting setuptools==44.0.0 (from pantsbuild-pants)
  32   │   Using cached setuptools-44.0.0-py2.py3-none-any.whl (583 kB)
  33   │ Collecting toml==0.10.1 (from pantsbuild-pants)
  34   │   Using cached toml-0.10.1-py2.py3-none-any.whl (19 kB)
  35   │ Collecting twitter.common.dirutil<0.4,>=0.3.11 (from pantsbuild-pants)
  36   │   Using cached twitter.common.dirutil-0.3.11.tar.gz (9.5 kB)
  37   │   Preparing metadata (setup.py): started
  38   │   Preparing metadata (setup.py): finished with status 'done'
  39   │ Collecting pathspec==0.8.0 (from pantsbuild-pants)
  40   │   Using cached pathspec-0.8.0-py2.py3-none-any.whl (28 kB)
  41   │ Collecting requests[security]>=2.20.1 (from pantsbuild-pants)
  42   │   Using cached requests-2.28.2-py3-none-any.whl (62 kB)
  43   │ Collecting py-zipkin==0.18.4 (from pantsbuild-pants)
  44   │   Using cached py_zipkin-0.18.4-py2.py3-none-any.whl (47 kB)
  45   │ Collecting pystache==0.5.3 (from pantsbuild-pants)
  46   │   Using cached pystache-0.5.3.tar.gz (74 kB)
  47   │   Preparing metadata (setup.py): started
  48   │   Preparing metadata (setup.py): finished with status 'error'
  49   │ 
  50   │ PIP STDERR
  51   │ ----------
  52   │   error: subprocess-exited-with-error
  53   │   
  54   │   × python setup.py egg_info did not run successfully.
  55   │   │ exit code: 1
  56   │   ╰─> [3 lines of output]
  57   │       Warning: 'classifiers' should be a list, got type 'tuple'
  58   │       error in pystache setup command: use_2to3 is invalid.
  59   │       pystache: using: version '67.6.1' of <module 'setuptools' from '/home/user-name/.local/
       │ pipx/shared/lib/python3.10/site-packages/setuptools/__init__.py'>
  60   │       [end of output]
  61   │   
  62   │   note: This error originates from a subprocess, and is likely not a problem with pip.
  63   │ error: metadata-generation-failed
  64   │ 
  65   │ × Encountered error while generating package metadata.
  66   │ ╰─> See above for output.
  67   │ 
  68   │ note: This is an issue with the package mentioned above, not pip.
  69   │ hint: See above for details.
───────┴────────────────────────────────────────────────────────────────────────────────────────────────
Upgrading to
0.6.0
works.
pantsbuild/pants