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

Pip install error #42

Open
ghost opened this issue Aug 18, 2017 · 9 comments
Open

Pip install error #42

ghost opened this issue Aug 18, 2017 · 9 comments

Comments

@ghost
Copy link

ghost commented Aug 18, 2017

Collecting unirest
Using cached Unirest-1.1.7.tar.gz
Collecting poster>=0.8.1 (from unirest)
Using cached poster-0.8.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/pz/1xjq35vn19sfkfhtdjljm_5r0000gn/T/pip-build-44zlbnol/poster/setup.py", line 2, in
import poster
File "/private/var/folders/pz/1xjq35vn19sfkfhtdjljm_5r0000gn/T/pip-build-44zlbnol/poster/poster/init.py", line 29, in
import poster.streaminghttp
File "/private/var/folders/pz/1xjq35vn19sfkfhtdjljm_5r0000gn/T/pip-build-44zlbnol/poster/poster/streaminghttp.py", line 61
print "send:", repr(value)
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/pz/1xjq35vn19sfkfhtdjljm_5r0000gn/T/pip-build-44zlbnol/poster/

I've tried installing from source, what gives?

@Fomchenkov
Copy link

I also have this problem.

@joedborg
Copy link

joedborg commented Sep 8, 2017

This is because the library is only Python 2 compatible

@Fomchenkov
Copy link

Which analog libraries supports Python 3?

@ryanakuhl
Copy link

Devastating!

@tirkarthi
Copy link

This is due to the syntax being invalid in Python 3 in one of the dependecies. I have made a fork compatible with Python 3 at https://github.com/tirkarthi/unirest-python . You can use it as a git based dependency. It doesn't work for gzip based files for now.

The incompatible dependency is poster. You can find a Python 3 fork at https://github.com/tirkarthi/python-poster

@hellais
Copy link

hellais commented Mar 16, 2019

I also ran into this issue. Are there plans to add python3 support to this library?

@tirkarthi maybe you want to open a PR to upstream your fixes?

@wosiu
Copy link

wosiu commented Aug 8, 2019

@tirkarthi Thanks! Works like a charm

@AliYar-Khan
Copy link

This is due to the syntax being invalid in Python 3 in one of the dependecies. I have made a fork compatible with Python 3 at https://github.com/tirkarthi/unirest-python . You can use it as a git based dependency. It doesn't work for gzip based files for now.

The incompatible dependency is poster. You can find a Python 3 fork at https://github.com/tirkarthi/python-poster

that work ... thanks man !

@Ramalingam5g
Copy link

@tirkarthi please say step by step process..

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

8 participants