[pypy-commit] cffi default: Add blurb about pyenv and ucs2/ucs4 in general
arigo
pypy.commits at gmail.com
Sat May 7 03:18:44 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r2686:381ffc5c8a6b
Date: 2016-05-07 09:19 +0200
http://bitbucket.org/cffi/cffi/changeset/381ffc5c8a6b/
Log: Add blurb about pyenv and ucs2/ucs4 in general
diff --git a/doc/source/installation.rst b/doc/source/installation.rst
--- a/doc/source/installation.rst
+++ b/doc/source/installation.rst
@@ -161,3 +161,21 @@
.. _`issue 9`: https://bitbucket.org/cffi/cffi/issue/9
.. _`Python issue 7546`: http://bugs.python.org/issue7546
+
+
+Linux and OS/X: UCS2 versus UCS4
+++++++++++++++++++++++++++++++++
+
+This is about getting an error like ``Symbol not found:
+_PyUnicodeUCS2_AsASCIIString``. This error occurs in Python 2 as soon
+as you mix "ucs2" and "ucs4" builds of Python.
+
+If you are using ``pyenv``, then see
+https://github.com/yyuu/pyenv/issues/257.
+
+Otherwise, you can download the sources of CFFI (instead of a prebuilt
+binary) and make sure that you build it with the same version of Python
+that will use it. For example, if you use ``virtualenv ~/venv``, then
+``. ~/venv/bin/activate``, then you are sure that running ``python
+setup.py install`` inside a copy of the sources of CFFI will build CFFI
+using exactly the version of Python from this virtualenv.
More information about the pypy-commit
mailing list