'AttributeError: type object 'Factory' has no attribute '_get_provider_class'

when launching paytests it gives an error AttributeError: type object 'Factory' has no attribute '_get_provider_class' I'm learning to program and don't know what to do



Solution 1:[1]

It seems that the problem is with Faker library.

I have managed to solve it with these commands (with venv activated):

$ pip uninstall Faker
$ pip install Faker==6.0.0

Maybe you want to try different versions instead of 6.0.0

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mrgolubeff