Python version: v2.7.13
Using: Windows 10
I am following the installation guide on Manual:Pywikibot/Installation. But when I type the command:
'python pwb.py generate_user_files'
I get an error saying:
Traceback (most recent call last):
File "pwb.py", line 177, in <module>
import pywikibot
File "C:\pywikibot\pywikibot\__init__.py", line 25, in <module>
from pywikibot.bot import (
File "C:\pywikibot\pywikibot\bot.py", line 97, in <module>
from pywikibot import config2 as config
File "C:\pywikibot\pywikibot\config2.py", line 392, in <module>
base_dir = get_base_dir()
File "C:\pywikibot\pywikibot\config2.py", line 345, in get_base_dir
home = os.path.expanduser('~')
File "C:\Python27\lib\ntpath.py", line 311, in expanduser
return userhome + path[i:]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 9: ordinal not in range(128)
What should I do to solve this error?