omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

Import error save_status_to_session is missing #1093

Open alexole opened 7 years ago

alexole commented 7 years ago

Import error in pipeline/partial.py because save_status_to_session is missing in new version of social-core (1.2.0)

dblado commented 7 years ago

Just tracked this error down to this issue.

Any workaround/update?

dblado commented 7 years ago

@alexole I think maybe this wasn't described well in the migration docs.

I updated to:

from social_core.pipeline.partial import partial

And in my settings, updated:

SOCIAL_AUTH_PIPELINE = (
    'social_core.pipeline.social_auth.social_details',
    'social_core.pipeline.social_auth.social_uid',
    'social_core.pipeline.social_auth.auth_allowed',
    '...'
)

I believe that should resolve your issues.

dblado commented 7 years ago

Additionally, I believe you should

pip uninstall python-social-auth

to make sure you migrated to the new libraries properly.