~raise ValueError('The API key that you have entered is not valid, did you enter a username by mistake?'~
~ValueError: The API key that you have entered is not valid, did you enter a username by mistake?~
~The order of arguments for API key and username has reversed in 2.1.0~
~I upgraded the library from 2.0.8 to 3.0.7 and swapped
mc_api
andmc_user
arguments in client initialization:~~
mailchimp_client = MailChimp(mc_api=settings.MAILCHIMP_API_KEY, mc_user=settings.MAILCHIMP_USERNAME)
.~~I got the error after all:~
~raise ValueError('The API key that you have entered is not valid, did you enter a username by mistake?'~ ~ValueError: The API key that you have entered is not valid, did you enter a username by mistake?~ ~The order of arguments for API key and username has reversed in 2.1.0~
UPD: Sorry, my local fault. Closed.