apqlzm / medihunter

Find Medicover appointments
GNU General Public License v3.0
167 stars 63 forks source link

Error when installing python-pushover on python 3.11 #47

Open rafsaf opened 1 year ago

rafsaf commented 1 year ago

Steps to reproduce

$ python3.11 -V
Python 3.11.2

$ python3.11 -m venv venv

$ source venv/bin/activate

$ pip install --editable .
Obtaining file:///home/r.safin/projects/medihunter
  Preparing metadata (setup.py) ... done
Collecting fake-useragent
  Using cached fake_useragent-1.1.1-py3-none-any.whl (50 kB)
Collecting click
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting requests
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.11.2-py3-none-any.whl (129 kB)
Collecting python-pushover
  Using cached python-pushover-0.4.tar.gz (19 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in python-pushover setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Working workaround here, older version of setuptools must be used: https://github.com/Thibauth/python-pushover/issues/42#issuecomment-956349296

pip install setuptools==57.5.0
pip install --editable .