Anyone getting "undefined symbol: PyUnicodeUCS2_FromUnicode" after last pycharm update?
Yesterday I've just updated pycharm to 5.0.4 and I'm getting a weird "undefined symbol: PyUnicodeUCS2_FromUnicode" in Ubuntu.
NOTE: I'm using a local python interpreter (2.7.6 located at /home/pablo/desarrollo/scipion/software/bin/python)
It seems it's using it as you can see it in the output.
Anyone having the same
Steps:
1. - Open Pycharm "Python console"
/home/pablo/desarrollo/scipion/software/bin/python /home/pablo/software/pycharm-5.0.4/helpers/pydev/pydevconsole.py 41006 57212
PyDev console: starting.
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/pablo/desarrollo/scipion'])
sys.path.append("/usr/share/gcc-4.8/python")
Python 2.7.6 (default, Jun 22 2015, 18:01:27)
[GCC 4.8.2] on linux2
2.- Type: Import ctypes
>>> import ctypes
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/pablo/software/pycharm-5.0.4/helpers/pydev/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/pablo/desarrollo/scipion/software/lib/python2.7/ctypes/__init__.py", line 10, in <module>
from _ctypes import Union, Structure, Array
File "/home/pablo/software/pycharm-5.0.4/helpers/pydev/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: /home/pablo/desarrollo/scipion/software/lib/python2.7/lib-dynload/_ctypes.so: undefined symbol: PyUnicodeUCS2_FromUnicode
Please sign in to leave a comment.
I've found the problem....had to add LD_LIBRARYPATH to the project an point to my local installation of where I also have some C libraries: LD_LIBRARY_PATH=/home/pablo/desarrollo/scipion/software/lib