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



1. - Open Pycharm "Python console"

/home/pablo/desarrollo/scipion/software/bin/python /home/pablo/software/pycharm-5.0.4/helpers/pydev/ 41006 57212
PyDev console: starting.

import sys; print('Python %s on %s' % (sys.version, sys.platform))


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/", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/pablo/desarrollo/scipion/software/lib/python2.7/ctypes/", line 10, in <module>
from _ctypes import Union, Structure, Array
File "/home/pablo/software/pycharm-5.0.4/helpers/pydev/", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: /home/pablo/desarrollo/scipion/software/lib/python2.7/lib-dynload/ undefined symbol: PyUnicodeUCS2_FromUnicode


1 comment
Comment actions Permalink

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


Please sign in to leave a comment.