Skip to content
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

Error on pip install for version 0.0.5 #9

Open
pranavgore09 opened this issue May 18, 2019 · 4 comments
Open

Error on pip install for version 0.0.5 #9

pranavgore09 opened this issue May 18, 2019 · 4 comments

Comments

@pranavgore09
Copy link

While installing pygetwindow using pip install pygetwindow I get the following error
But installing pygetwindow==0.0.4 works fine.

Collecting pygetwindow
  Using cached https://files.pythonhosted.org/packages/8c/95/d401a85c5e9a40fac545708961b38beb5a71c9a8fc607de30d31f03de17e/PyGetWindow-0.0.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-HxCiJ_/pygetwindow/setup.py", line 10, in <module>
        with open('README.md', 'r', encoding='utf-8') as fh:
    TypeError: 'encoding' is an invalid keyword argument for this function

System details

Ubuntu 18.04.2 LTS
Python 2.7.15rc1
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
Linux x86_64
@skalozubov
Copy link

Same for me on macOS

@izaakstern
Copy link

Yeah, its a Python 2.7 problem. open function does not know encoding in 2.7
Workaround: download source, open setup.py, change
with open('README.md', 'r', encoding='utf-8')
to
with open('README.md', 'r')
and

python setup.py egg_info
python setup.py install

@lexxish
Copy link

lexxish commented Jun 16, 2019

Fixed in #11

@pranavgore09
Copy link
Author

great, Thanks @lexxish

hmstepanek added a commit to newrelic/newrelic-python-agent that referenced this issue Sep 27, 2022
The following is an unresolved issue occuring in the setup of confluent-kafka 1.8.2:
asweigart/PyGetWindow#9
lrafeei pushed a commit to newrelic/newrelic-python-agent that referenced this issue Sep 27, 2022
* Expand kafka testing range to older versions

* Remove confluent-kafka 1.5

* Remove confluent-kafka 1.5

* Fix flakey confluent-kafka tests

* Fixup: fix flakey tests

* Fixup: fix kafka-python flakey tests

* Fixup: fix kafka-python flakey tests

* Remove confluent-kafka 1.8 tests

The following is an unresolved issue occuring in the setup of confluent-kafka 1.8.2:
asweigart/PyGetWindow#9

Co-authored-by: Hannah Stepanek <hstepanek@newrelic.com>
lrafeei pushed a commit to newrelic/newrelic-python-agent that referenced this issue Sep 27, 2022
* Expand kafka testing range to older versions

* Remove confluent-kafka 1.5

* Remove confluent-kafka 1.5

* Fix flakey confluent-kafka tests

* Fixup: fix flakey tests

* Fixup: fix kafka-python flakey tests

* Fixup: fix kafka-python flakey tests

* Remove confluent-kafka 1.8 tests

The following is an unresolved issue occuring in the setup of confluent-kafka 1.8.2:
asweigart/PyGetWindow#9

Co-authored-by: Hannah Stepanek <hstepanek@newrelic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants