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

thrift 生成的代码不支持py3 #1

Open
liuhao2050 opened this issue Jun 8, 2017 · 2 comments
Open

thrift 生成的代码不支持py3 #1

liuhao2050 opened this issue Jun 8, 2017 · 2 comments

Comments

@liuhao2050
Copy link

No description provided.

@a-whitej
Copy link

Same issue.

Traceback (most recent call last):
from sds.auth.ttypes import Credential
File "E:\Anaconda3\lib\site-packages\sds\auth\ttypes.py", line 11, in
import sds.errors.ttypes
File "E:\Anaconda3\lib\site-packages\sds\errors\ttypes.py", line 12, in
from thrift.transport import TTransport
File "E:\Anaconda3\lib\site-packages\thrift\transport\TTransport.py", line 20, in
from cStringIO import StringIO
ImportError: No module named 'cStringIO'

@hanjiacheng
Copy link

py3中无cStringIO库,改为:from io import StringIO

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

3 participants