When you recompile Python in a new unicode mode, you then need to 
recompile all extensions (such as Numpy), since an extension compiled 
for one mode will not work with the other.  Annoying if you have a lot 
of extensions.

However, I don't think that UCS4 mode is required for Tkinter -- it 
could just be that the Tkinter you have compiled was compiled against a 
Python of a different unicode mode.  (RHEL builds its python packages 
with --enable-unicode=UCS4, so if you're using the RH package for 
Tkinter with a self compiled Python, that may be what you're running into.)

Mike

On 12/19/2012 06:08 PM, Kurt Peters wrote:
> I had to compile and install Python 2.7 on RHEL with the
> --enable-unicode=USC4 to get it to work with Tkinter.  Unfortunately, I'm
> now trying to install numpy, and get an error when importing it into python
> "ImportError: numpy/core/multiarray.so: undefined symbol:
> PyUnicodeUCS2_AsASCIIString".
>
> Is there are way to get the two to play together nicely?  Such as
> recompiling numpy with USC4 support?
> KURT
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to