Re: [cx-freeze-users] PyUnicodeUCS4_FromUnicode not found on Linux
Brought to you by:
atuining
From: Anthony T. <an...@co...> - 2004-04-28 13:44:08
|
On Wed, 2004-04-28 at 01:46, Roger Binns wrote: > Anthony Tuininga wrote: > > I've seen this type of problem before and the reason for the error is a > > discrepancy in Unicode support between the Python interpreter and the > > extension module. So can you import array.so directly from the Python > > interpreter prompt? > > Yes. > > > If so, did you build the base executable yourself? > > Nope, it is the one you ship. Okay. Things are in line with what I understand... :-) > > If not, that is your issue and you will need to build the base > > executables yourself using MakeFrozenBases.py provided with cx_Freeze. > > Make sense? > > I rebuilt them and it fixed the problem. BTW that file has an import > of cx_OptionParser (or something similar) that isn't distributed > alongside. Some object named 'options' is built, but then never > used. I just deleted that code and all seemed fine. It is shipped in the package cx_PyGenLib which is available in the same location as cx_Freeze. That said, I intend to remove that dependency since (as you noticed) it is fairly minor anyway and it would make things a little simpler for those building from source. > I think I finally found the issue. Python can be built for Unicode > characters being stored as 2 bytes or 4 bytes. The default is 2 > except for Redhat who use 4. The interpretter and all the modules > have to use the same value. Correct. > The prebuilt bases you supply use 2. Yes. The prebuilt bases for Linux were built on Red Hat Linux 7.3 which uses 2. The newer Red Hat distributions (and other distributions) use 4. I should probably change the building distribution to something more recent so that people don't keep running into this, eh? > Roger > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users -- Anthony Tuininga an...@co... Computronix Distinctive Software. Real People. Suite 200, 10216 - 124 Street NW Edmonton, AB, Canada T5N 4A3 Phone: (780) 454-3700 Fax: (780) 454-3838 http://www.computronix.com |