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

Failed to run on Python 2.7.13 MacOS 10.12.4 #8

Closed
heartbleeded opened this issue Apr 5, 2017 · 3 comments
Closed

Failed to run on Python 2.7.13 MacOS 10.12.4 #8

heartbleeded opened this issue Apr 5, 2017 · 3 comments
Labels

Comments

@heartbleeded
Copy link

heartbleeded commented Apr 5, 2017

I got this error probably due to using ucs4 as default unicode encoding while compiling lief.so

`pip install osx_lief-0.6.0_py2.7.tar.gz

import lief
Traceback (most recent call last):
File "", line 1, in
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/lief.so, 2): Symbol not found: _PyUnicodeUCS4_AsUTF8String
Referenced from: /usr/local/lib/python2.7/site-packages/lief.so
Expected in: flat namespace
in /usr/local/lib/python2.7/site-packages/lief.so`

@romainthomas
Copy link
Member

romainthomas commented Apr 5, 2017

It's related to pyenv/pyenv#257 (comment). I will look at it.

@romainthomas
Copy link
Member

romainthomas commented Apr 6, 2017

@heartbleeded You can check it's working here: https://github.com/lief-project/LIEF/releases/tag/0.6.1

@heartbleeded
Copy link
Author

Yes, I confirm this fixed. Well done!

romainthomas added a commit that referenced this issue Jul 18, 2017
romainthomas added a commit that referenced this issue Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants