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

Libraries Versions #8

Open
vad2der opened this issue Jan 20, 2023 · 0 comments
Open

Libraries Versions #8

vad2der opened this issue Jan 20, 2023 · 0 comments

Comments

@vad2der
Copy link

vad2der commented Jan 20, 2023

Problems encountered while doing lab via Coursera:

  1. Flask version 1.0.2 raises Jinja2 error.
    ImportError: cannot import name 'Markup' from 'jinja2' (/home/coder/project/VENV/lib/python3.8/site-packages/jinja2/__init__.py)
    Updating to version 2.2.2 resolves the issue.

  2. Numpy installed by default is 1.24.1, which raises:
    AttributeError: module 'numpy' has no attribute 'float'
    on joblib.load(file_name) call.
    Preinstalling numpy==1.23 resolves the issue.

  3. prediction = list(clf.predict(scaled_payload)) on line 71 raises

raw_predictions = self.loss_.get_init_raw_predictions(
AttributeError: 'LeastSquaresError' object has no attribute 'get_init_raw_predictions'

Which can be resolved by downgrading scikit-learn to 0.20.3, but python3.8 + updated pip does not support installing it.

So, there is an open question about resolving it: use the latest versions and update the code (imports and logic would be different) or use previous Python versions.

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