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

Getting an error from aiohttp.py when installing with pip #52

Closed
chipkellam opened this issue May 14, 2015 · 7 comments
Closed

Getting an error from aiohttp.py when installing with pip #52

chipkellam opened this issue May 14, 2015 · 7 comments

Comments

@chipkellam
Copy link

Python version: 2.7.3

Issued: pip install pusher==1.1.3

Error:

Installing collected packages: pusher
  Running setup.py install for pusher
    SyntaxError: ('invalid syntax', ('[REDACTED]/python2.7/site-packages/pusher/aiohttp.py', 24, 29, '        response = yield from asyncio.wait_for(\n'))

@zimbatm
Copy link
Contributor

zimbatm commented May 14, 2015

@jpatel531 looks like we're still having issues with python 3.0 aio :/ I wonder why pip tries to load that file.

@jpatel531
Copy link
Contributor

i'm not too sure either - it seems to be working fine on different machines and version i use. i'll look into it

@zimbatm
Copy link
Contributor

zimbatm commented May 18, 2015

With python 2.6.7:

$ pip --version
pip 1.5.4 from /Users/zimbatm/code/github.com/pusher/pusher-http-python/.direnv/python-2.6.7/lib/python2.6/site-packages (python 2.6)
$ pip install pusher
Downloading/unpacking pusher
  Downloading pusher-1.1.3-py2-none-any.whl
Downloading/unpacking requests>=2.3.0 (from pusher)
  Downloading requests-2.7.0-py2.py3-none-any.whl (470kB): 470kB downloaded
Downloading/unpacking six (from pusher)
  Downloading six-1.9.0-py2.py3-none-any.whl
Installing collected packages: pusher, requests, six
Compiling /Users/zimbatm/code/github.com/pusher/pusher-http-python/.direnv/python-2.6.7/build/pusher/pusher/aiohttp.py ...
SyntaxError: ('invalid syntax', ('/Users/zimbatm/code/github.com/pusher/pusher-http-python/.direnv/python-2.6.7/build/pusher/pusher/aiohttp.py', 24, 29, '        response = yield from asyncio.wait_for(\n'))

Successfully installed pusher requests six
Cleaning up...

@zimbatm
Copy link
Contributor

zimbatm commented May 18, 2015

@chipkellam can you give us your version of pip ?

@chipkellam
Copy link
Author

@zimbatm Currently using v1.5.2. I've actually realized the error doesn't affect the library from being installed + working -- obviously without Python 3 support.

@zimbatm
Copy link
Contributor

zimbatm commented May 18, 2015

Same, I had missed that too previously. I suppose pip is pre-compiling all the python code in the repo and hitting that file at some point. I'm not really sure how we could work around the issue without separating the file into a different package.

@jpatel531
Copy link
Contributor

This looks like a duplicate of benoitc/gunicorn#788 , benoitc/gunicorn#810 , and benoitc/gunicorn#871

It might need an upgrade to the latest version of pip. I'll make a note about this on the README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants