Instapy: Windows locale.Error: unsupported locale setting

Created on 4 Jul 2017  路  1Comment  路  Source: timgrossmann/InstaPy

I receive the following error about an "unsupported locale setting" what am I missing?

C:\Program Files (x86)\Python36-32\Scripts\InstaPy-master>start.bat
C:\Program Files (x86)\Python36-32\Scripts\InstaPy-master>set PYTHONIOENCODING=UTF-8
C:\Program Files (x86)\Python36-32\Scripts\InstaPy-master>py quickstart.py
Traceback (most recent call last):
File "quickstart.py", line 1, in
from instapy import InstaPy
File "C:\Program Files (x86)\Python36-32\Scripts\InstaPy-masterinstapy__init__.py", line 1, in
from .instapy import InstaPy
File "C:\Program Files (x86)\Python36-32\Scripts\InstaPy-masterinstapyinstapy.py", line 20, in
from .unfollow_util import unfollow
File "C:\Program Files (x86)\Python36-32\Scripts\InstaPy-masterinstapy\unfollow_util.py", line 9, in
locale.setlocale( locale.LC_ALL, 'en_US.UTF-8' )
File "C:\Program Files (x86)\Python36-32\liblocale.py", line 598, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting


Here is what my system is set to:

import locale
locale.setlocale(locale.LC_ALL, '')
'English_United States.1252'

help wanted

Most helpful comment

For windows you have to edit the file:
instapy\unfollow_util.py line 9
from:locale.setlocale( locale.LC_ALL, 'en_US.UTF-8' )
to: locale.setlocale( locale.LC_ALL, 'English_United States.1252' )

This error happen after last update.

>All comments

For windows you have to edit the file:
instapy\unfollow_util.py line 9
from:locale.setlocale( locale.LC_ALL, 'en_US.UTF-8' )
to: locale.setlocale( locale.LC_ALL, 'English_United States.1252' )

This error happen after last update.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rahulkapoor90 picture rahulkapoor90  路  3Comments

wyvers picture wyvers  路  3Comments

ghost picture ghost  路  3Comments

drcyber975 picture drcyber975  路  3Comments

n0sw34r picture n0sw34r  路  3Comments