Some additional information…
I spent several hours last night trying to figure this out and am learning a bit about how python works. Apparently, I have several versions of python installed and they all seem to have their own /usr/lib subdirectories.
I’m thinking that the installs of pyautogui that I’m doing aren’t going to the same /usr/lib subdirectory that the python script for this skill is expecting to find them.
Also, I’m not sure that my system needs to be complicated by having six different versions of python installed (yes, actually six versions!). Why aren’t the older versions being replaced by the newer version installs? Aren’t the newer versions backwards compatible? Should I be removing these older versions manually? That seems a little risky.
So, I guess what I need to figure out is how to get the pyautogui to install into the right place so that the desktop-command.mycroft skill can find it. The skill seems to be looking in the /usr/lib/python3.6 directory and not finding the module.
Installing the pyautogui module with pip3 puts out a ton of messages, most of which are useless to me as I have no idea what it’s actually doing or what it’s supposed to be doing. Except for the fact that at the very end of the message torrent it states that it did install the module. Apparently, in spite of errors, per the pip3 output. And, as near as I can tell, it does also appear to be aimed at the /usr/lib/python3.6 directory.
The following are two excerpts from the “pip3 install pyautogui” command. the first containing the error message. The second stating that the module was installed:
Here’s the first:
" Running setup.py bdist_wheel for pyautogui: started
Running setup.py bdist_wheel for pyautogui: finished with status ‘error’
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-h2nqtxl3/pyautogui/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmpsi7tsm0upip-wheel- --python-tag cp36:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: ‘long_description_content_type’
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: -c --help [cmd1 cmd2 …]
or: -c --help-commands
or: -c cmd --help
error: invalid command ‘bdist_wheel’"
And here’s the second excerpt:
" Running setup.py clean for pyrect
Failed to build pyautogui PyTweening mouseinfo pygetwindow pymsgbox pyscreeze python3-Xlib pyperclip pyrect
Installing collected packages: PyTweening, pyperclip, python3-Xlib, Pillow, mouseinfo, pyrect, pygetwindow, pymsgbox, pyscreeze, pyautogui
Running setup.py install for PyTweening: started
Running setup.py install for PyTweening: finished with status ‘done’
Running setup.py install for pyperclip: started
Running setup.py install for pyperclip: finished with status ‘done’
Running setup.py install for python3-Xlib: started
Running setup.py install for python3-Xlib: finished with status ‘done’
Running setup.py install for mouseinfo: started
Running setup.py install for mouseinfo: finished with status ‘done’
Running setup.py install for pyrect: started
Running setup.py install for pyrect: finished with status ‘done’
Running setup.py install for pygetwindow: started
Running setup.py install for pygetwindow: finished with status ‘done’
Running setup.py install for pymsgbox: started
Running setup.py install for pymsgbox: finished with status ‘done’
Running setup.py install for pyscreeze: started
Running setup.py install for pyscreeze: finished with status ‘done’
Running setup.py install for pyautogui: started
Running setup.py install for pyautogui: finished with status ‘done’
Successfully installed Pillow-7.1.2 PyTweening-1.0.3 mouseinfo-0.1.3 pyautogui-0.9.50 pygetwindow-0.0.8 pymsgbox-1.0.8 pyperclip-1.8.0 pyrect-0.1.4 pyscreeze-0.1.26 python3-Xlib-0.15"
So, according to that, the module did install but with error(s)? However, the skill installation still complains about ‘not finding’ the module in the /usr/lib/python3.6 subdirectory.
Therefore, I’m now considering manually removing all of the non-3.6 versions of python. I’m not sure how, exactly, but there must be a way to do that. And then reinstalling, again, the pyautogui module.
And also I probably should be trying to find out how to fix the error(s) with the module install. Maybe add another different software repository or something?
So, if someone could stop me before I run completely amok with this, I’d greatly appreciate it, although it may already be too late.
Thanks.