apqlzm / medihunter

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

requirements - missing lxml #35

Closed jacekjaros closed 1 year ago

jacekjaros commented 1 year ago

Error:

# python3 ./medihunter.py my-plan
Logged in
Traceback (most recent call last):
  File "/home/jacek/opt/medihunter/./medihunter.py", line 283, in <module>
    medihunter()
  File "/home/jacek/opt/medihunter/.venv/lib/python3.10/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/jacek/opt/medihunter/.venv/lib/python3.10/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/jacek/opt/medihunter/.venv/lib/python3.10/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/jacek/opt/medihunter/.venv/lib/python3.10/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/jacek/opt/medihunter/.venv/lib/python3.10/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/jacek/opt/medihunter/./medihunter.py", line 234, in my_plan
    plan = med_session.get_plan()
  File "/home/jacek/opt/medihunter/medicover_session.py", line 356, in get_plan
    soup = BeautifulSoup(medical_services_website.content, "lxml")
  File "/home/jacek/opt/medihunter/.venv/lib/python3.10/site-packages/bs4/__init__.py", line 195, in __init__
    raise FeatureNotFound(
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

Python version:

#python3 --version
Python 3.10.9

Packages:

pip list
Package        Version
-------------- ---------
appdirs        1.4.4
beautifulsoup4 4.6.3
certifi        2018.4.16
chardet        3.0.4
Click          7.0
fake-useragent 1.1.0
idna           2.7
jsonschema     2.6.0
notifiers      1.0.3
pip            22.3.1
python-dotenv  0.19.2
requests       2.20.1
rfc3987        1.3.8
setuptools     65.6.3
urllib3        1.23
xmpppy         0.6.2

PS. After lxml install i get error described in https://github.com/apqlzm/medihunter/issues/30