apqlzm / medihunter

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

Fresh cloned medihunter - error in `pip install --editable .` #33

Closed mwoz123 closed 1 year ago

mwoz123 commented 1 year ago

I'd same error on previous installation of medihunter so maybe it's worth reporting it here. Maybe it will help some else with same problems...

In freshly cloned medihunter I've error during installation:

marcin@pc:~/medihunter$ pip install --editable .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/marcin/medihunter
  Preparing metadata (setup.py) ... done
Collecting appdirs
  Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.2/128.2 KB 1.2 MB/s eta 0:00:00
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from medihunter==0.1) (8.0.3)
Collecting lxml
  Downloading lxml-4.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 1.2 MB/s eta 0:00:00
Collecting notifiers
  Downloading notifiers-1.3.3-py3-none-any.whl (43 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.0/44.0 KB 1.0 MB/s eta 0:00:00
Collecting python-dotenv
  Downloading python_dotenv-0.21.0-py3-none-any.whl (18 kB)
Collecting python-pushover
  Downloading 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.
marcin@pc:~/medihunter$ 

System details:

marcin@pc:~/medihunter$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy
marcin@pc:~/medihunter$ 
mwoz123 commented 1 year ago

Workaround I found on internet:

    pip install --upgrade pip setuptools==57.5.0
    pip install --upgrade python-pushover
    pip freeze > requirements.txt

and then again pip install --editable .

Kudos: https://github.com/Thibauth/python-pushover/issues/42

apqlzm commented 1 year ago

I removed python-pushover dependency from requirements.txt for now as it seems to be no longer maintained. I think it would be good idea to remove whole medihunter_pushover.py as well. Not sure how many people use it.