Python3 support?

オープン
#19 コメント 12 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

Python 3.4 で pip install unirest を実行して失敗を再現し、その後 setup.py と poster 依存関係、特に Python 2 の print 構文で失敗する poster/streaminghttp.py を調査します。Python 3.4 でこの SyntaxError を発生させずにパッケージを正常にインストールできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
431
フォーク
103
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Kong/unirest-python のほかの issue

Kong/unirest-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。