Kong / Kong/unirest-python

Python3 support?

Open
#19 12 comments 3 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
434
Forks
103
PR merge metrics
No merged PRs in 30d

Description

In Python3.4, I run
$ pip install unirest
I get the following error:
Downloading/unpacking unirest
Downloading Unirest-1.1.6.tar.gz
Running setup.py (path:C:\Users\David\AppData\Local\Temp\pip_build_David\unirest\setup.py) egg_info for package unirest

```
warning: no files found matching '*.txt' under directory 'docs'
```

Downloading/unpacking poster>=0.8.1 (from unirest)
Downloading poster-0.8.1.tar.gz
Running setup.py (path:C:\Users\David\AppData\Local\Temp\pip_build_David\poster\setup.py) egg_info for package poster
Traceback (most recent call last):
File "", line 17, in
File "C:\Users\David\AppData\Local\Temp\pip_build_David\poster\setup.py", line 2, in
import poster
File "C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster__init__.py", line 29, in
import poster.streaminghttp
File "C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster\streaminghttp.py", line 61
print "send:", repr(value)
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "C:\Users\David\AppData\Local\Temp\pip_build_David\poster\setup.py", line 2, in

```
import poster
```

File "C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster__init__.py", line 29, in

```
import poster.streaminghttp
```

File "C:\Users\David\AppData\Local\Temp\pip_build_David\poster\poster\streaminghttp.py", line 61

```
print "send:", repr(value)

^
```

SyntaxError: invalid syntax

PS: I'm running Windows 8.1, although this looks like a problem in python2 vs python3 syntax.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `pip install unirest` under Python 3.4, then inspect setup.py and the poster dependency, especially poster/streaminghttp.py where the Python 2 print syntax fails. Done means the package installs successfully on Python 3.4 without this SyntaxError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.