-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install robotframework-ImageHorizonLibrary failed on python 2.7 #38
Comments
What versions of Python and pip you are using? |
Python 2.7.16 (32bit) |
Ok, those seem reasonable. IHL depends on pyautogui which, in turn, seems to depend on pygetwindow. It seems pygetwindow broke backwards-compability to Python 2. I'm not in front of computer for a while so I cannot test, but workaround could be installing older version of pygetwindow, and then pyautogui, then IHL:
If this works, could you confirm in this issue so, thanks |
pip install pygetwindow==0.0.4 --> passed File "c:\users\user\appdata\local\temp\pip-install-py9pto\pygetwindow\setup.py", line 10, in
|
which command gives you this? please provide entire output. also, have you uninstalled what you had before running these installation steps? |
Yes uninstalled existing pygetwindow and then isntalled pygetwindow--> passed. pip install pyautogui--> failed with below error:
ERROR: Command "python setup.py egg_info" failed with error code 1 in c:\users\user\appdata\local\temp\pip-install-ebhrlu\pygetwindow\ pip install robotframework-imagehorizonlibrary-->failed with below error: ERROR: Complete output from command python setup.py egg_info: |
As I said in the previous message, you need to uninstall everything, then try installing one at a time. These are not either the full command output one gets in command prompt/terminal. Please provide those. |
Uninstall python 2.7 and robot framework also? C:\Users\user\PycharmProjects\Robot\venv>pip install pyautogui For ImageHorizon: C:\Users\user\PycharmProjects\Robot\venv>pip install robotframework-imagehorizonlibrary |
I had similar issue. I was able to install using pygetwindow 0.0.1 and pyscreeze 0.1.18 |
Just as I suspect: So you need to use older version of pyautogui that accepts older version of pygetwindow. Based on release history and version control, last such version was 0.9.42, so once more :
|
@Tattoo Thanks a lot! followed above suggestion and it worked. |
pip install robotframework-ImageHorizonLibrary failed on python 2.7 with below error:
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "c:\users\user\appdata\local\temp\pip-install-py9pto\pygetwindow\setup.py", line 10, in
with open('README.md', 'r', encoding='utf-8') as fh:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in c:\users\useri\appdata\local\temp\pip-install-py9pto\pygetwindow\
Setup details:
Robot Framework 3.1.2 (Python 2.7.16 on win32)
The text was updated successfully, but these errors were encountered: