Skip to content

pypy failure fix on fastbinary import with "AttributeError" #513

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

Merged
merged 1 commit into from
Feb 15, 2017
Merged

pypy failure fix on fastbinary import with "AttributeError" #513

merged 1 commit into from
Feb 15, 2017

Conversation

frail
Copy link
Contributor

@frail frail commented Dec 19, 2016

we hit this bug when we are using this library with pypy:

Traceback (most recent call last):
File "/venv/pypy/site-packages/commons/app.py", line 251, in run
main()
File "/repo/start.py", line 14, in start_daemon
import configuration
File "/repo/configuration.py", line 14, in
from pyes import ES
File "/venv/pypy/site-packages/pyes/init.py", line 26, in
from .es import ES, file_to_attachment
File "/venv/pypy/site-packages/pyes/es.py", line 41, in
from .connection import connect as thrift_connect
File "/venv/pypy/site-packages/pyes/connection.py", line 12, in
from .pyesthrift import Rest
File "/venv/pypy/site-packages/pyes/pyesthrift/Rest.py", line 9, in
from .ttypes import *
File "/venv/pypy/site-packages/pyes/pyesthrift/ttypes.py", line 12, in
from thrift.protocol import fastbinary
AttributeError: 'module' object has no attribute 'cStringIO_CAPI'

we assumed that the bug is due to this issue in pypy:

https://bitbucket.org/pypy/pypy/issues/875/thrift-installation-error-cstringioh

@aparo aparo merged commit fa63664 into aparo:develop Feb 15, 2017
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

Successfully merging this pull request may close these issues.

2 participants