-
Notifications
You must be signed in to change notification settings - Fork 159
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
import bcrypt error #64
Comments
How did you get your Python? System, brew, python.org? Also, what pip version. If < 8.1 try upgrading and then uninstall and reinstall cffi |
pip version 8.1.1
Someone from
And I was also pointed to pyenv Issue #257 and that it may have something to do with how I built the Python I am using. |
Turns out that it was a "UCS2 versus UCS4 Python versions" problem. Running these commands got my project to build:
and then reinstalling |
Is it worth creating a PR to add some documentation or FAQ/troubleshooting regarding this issue? CFFI did add this to their installation README - http://cffi.readthedocs.io/en/latest/installation.html#linux-and-os-x-ucs2-versus-ucs4 |
@carrchr Thanks for the information. I'm going to be modifying the build systems to produce both ucs2 and ucs4 wheels for cffi so that users will be able to pull the correct one. Unfortunately users on out of date pip will still pull the wrong one (as pip prior to 8 is unaware of the proper tag), but we can add some information to explain that upgrading to pip8+ will fix the issue. |
A UCS4 wheel is now available so this issue should be resolved for future users on pip8+ |
This might be an issue with cffi but I figured I would post something here in case anyone has ever run into it. I get the same error when running my project, but I get the same error (as above) when simply activating the virtualenv, running a Python shell and trying as above.
This is 2.7.11 using
pyenv
andvirtualenv
on Mac OS X 10.11.4I have
libffi
installed viabrew
I have tried cleaning, rebuilding, reinstalling, environment variables, and more for the last four hours and can not get past this error
The text was updated successfully, but these errors were encountered: