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

python 3 #2

Open
benman1 opened this issue Aug 1, 2016 · 1 comment
Open

python 3 #2

benman1 opened this issue Aug 1, 2016 · 1 comment

Comments

@benman1
Copy link

benman1 commented Aug 1, 2016

Incompatible with python 3?

I get an import error in python 3.4.

ImportErrorTraceback (most recent call last)
<ipython-input-103-3a41ffc8a047> in <module>()
----> 1 from flattery import flatten, unflatten
      2 
      3 unflatten(df.to_dict(orient='record')[0])

/usr/local/lib/python3.4/dist-packages/flattery/__init__.py in <module>()
      1 #!/usr/bin/env python
      2 
----> 3 from flattery.cext import *
      4 

ImportError: /usr/local/lib/python3.4/dist-packages/flattery/cext.cpython-34m.so: undefined symbol: PyString_FromStringAndSize

Searching for a fix, I found this link: https://groups.google.com/forum/#!topic/cython-users/xoKNFTRagvk where it is suggested to use PyBytes_FromStringAndSize(NULL, length)

@IdavalapatiRamanjaneyulu

Seems this repository is not active. Have you found any alternatives for flattery?

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

2 participants