I recently tried to do:
Code: Select all
pip install xlib
Code: Select all
sudo pip install xlib
Then next time I started my python script, it is unable to import pyautogui
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pyautogui/__init__.py", line 115, in <module>
from . import _pyautogui_x11 as platformModule
File "/usr/local/lib/python2.7/dist-packages/pyautogui/_pyautogui_x11.py", line 7, in <module>
from Xlib.display import Display
File "/usr/local/lib/python2.7/dist-packages/Xlib/display.py", line 26, in <module>
from six import create_unbound_method
ImportError: cannot import name create_unbound_method
pip freeze shows:
Code: Select all
Pillow==2.6.1
PyAutoGUI==0.9.36
PyMsgBox==1.0.6
PyScreeze==0.1.14
PyTweening==1.0.3
SOAPpy==0.12.22
argparse==1.2.1
cffi==0.8.6
chardet==2.3.0
clipboard==0.0.4
colorama==0.3.2
cryptography==0.6.1
decorator==3.4.0
defusedxml==0.4.1
html5lib==0.999
ndg-httpsclient==0.3.2
numpy==1.8.2
ply==3.4
pyOpenSSL==0.14
pyasn1==0.1.7
pycparser==2.10
pyperclip==1.6.0
pytesseract==0.1.7
python-apt==0.9.3.12
python-dateutil==2.6.1
python-debian==0.1.27
python-debianbts==1.11
python3-xlib==0.15
readchar==0.7
reportbug==6.6.3
requests==2.4.3
scipy==0.14.0
six==1.8.0
urllib3==1.9.1
wheel==0.24.0
wsgiref==0.1.2
wstools==0.4.3
xlib==0.21
I need to get pyautogui back to working. Any ideas what to do?