python-social-auth icon indicating copy to clipboard operation
python-social-auth copied to clipboard

Import error save_status_to_session is missing

Open alexole opened this issue 7 years ago • 3 comments

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

alexole avatar Mar 27 '17 15:03 alexole

Just tracked this error down to this issue.

Any workaround/update?

dblado avatar Apr 11 '17 22:04 dblado

@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 avatar Apr 11 '17 22:04 dblado

Additionally, I believe you should

pip uninstall python-social-auth

to make sure you migrated to the new libraries properly.

dblado avatar Apr 11 '17 23:04 dblado