Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbosk opened this issue Nov 2, 2022 · 1 comment

Comments

@dbosk
Copy link

dbosk commented Nov 2, 2022

$ 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
Copy link
Author

dbosk commented Nov 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant