asweigart / PyGetWindow

A simple, cross-platform module for obtaining GUI information on applications' windows.
BSD 3-Clause "New" or "Revised" License
362 stars 69 forks source link

build fail in windows10 #3

Closed lihongjie0209 closed 4 years ago

lihongjie0209 commented 5 years ago

default encoding in windows is gbk, which will lead to this error:

Collecting pygetwindow (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/f1/54/740939161eb3471e8f775ce9b0fcac0e54c36bf63501e51f2cd7158f587d/PyGetWindow-0.0.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\TY201811\AppData\Local\Temp\pip-install-pzgyoz0h\pygetwindow\setup.py", line 11, in <module>
        long_description = fh.read()
    UnicodeDecodeError: 'gbk' codec can't decode byte 0xa2 in position 905: illegal multibyte sequence
lihongjie0209 commented 5 years ago

fix #2

LuciusV commented 5 years ago

I have this too, please fix

asweigart commented 4 years ago

Thanks for pointing this out. While I haven't used this PR, I have fixed this issue and will add you to the authors.txt file. Thanks!