TeamHG-Memex / autologin

A project to attempt to automatically login to a website given a single seed
Apache License 2.0
123 stars 44 forks source link

v0.1.4: ImportError: cannot import name 'joblib' from 'sklearn.externals' #50

Open dbosk opened 1 year ago

dbosk commented 1 year ago
$ python3 -m pip install autologin
[...]
Successfully installed Automat-22.10.0 Flask-0.10.1 Flask-Admin-1.4.2 Flask-SQLAlchemy-2.1 Flask-WTF-0.12 MarkupSafe-2.1.1 PyDispatcher-2.0.6 Twisted-22.10.0 WTForms-2.1 Werkzeug-2.2.2 autologin-0.1.4 constantly-15.1.0 crochet-2.0.0 cssselect-1.2.0 docopt-0.6.2 formasaurus-0.8.1 hyperlink-21.0.0 incremental-22.10.0 itemadapter-0.7.0 itemloaders-1.0.6 itsdangerous-2.1.2 jmespath-1.0.1 joblib-1.2.0 parsel-1.7.0 protego-0.2.1 python-crfsuite-0.9.8 queuelib-1.6.2 requests-file-1.5.1 scikit-learn-1.1.3 scrapy-2.7.0 scrapy-splash-0.8.0 service-identity-21.1.0 sklearn-crfsuite-0.3.6 tabulate-0.9.0 threadpoolctl-3.1.0 tldextract-3.4.0 w3lib-2.0.1 zope.interface-5.5.0
$ autologin -h
Traceback (most recent call last):
  File "/home/dbosk/.local/bin/autologin", line 5, in <module>
    from autologin.autologin import main
  File "/home/dbosk/.local/lib/python3.10/site-packages/autologin/__init__.py", line 3, in <module>
    from .autologin import *
  File "/home/dbosk/.local/lib/python3.10/site-packages/autologin/autologin.py", line 9, in <module>
    from .spiders import LoginSpider, get_login_form, login_params, crawl_runner, \
  File "/home/dbosk/.local/lib/python3.10/site-packages/autologin/spiders.py", line 10, in <module>
    import formasaurus
  File "/home/dbosk/.local/lib/python3.10/site-packages/formasaurus/__init__.py", line 5, in <module>
    from .classifiers import (
  File "/home/dbosk/.local/lib/python3.10/site-packages/formasaurus/classifiers.py", line 6, in <module>
    from sklearn.externals import joblib
ImportError: cannot import name 'joblib' from 'sklearn.externals' (/home/dbosk/.local/lib/python3.10/site-packages/sklearn/externals/__init__.py)

No idea, but seems to me like joblib moved out from sklearn.externals.joblib to its own package joblib.

dbosk commented 1 year ago

The problem is that formasaurus version 0.9.0 isn't on PyPI. See: