473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Py2.5.1 on Ubuntu AMD X2, unicode problems

I'm building 2.5.1 from source, using the ubuntu(7.0.4)-provided gcc
4.1.2. Based on google searches and nints found, here is the process:

------------------------------------------------------------
#---edit configure; test of wchar_t---
#include <ncursesw.h>
#include <wchar.h>
#-------------------------------------

cd Lib/test
rm test_multibyte*
cd ../..

#---edit Include/unicodeobject.h---
/* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is
properly set, but the default rules below doesn't set it. I'll
sort this out some other day -- fr*****@pythonware.com */
#define Py_UNICODE_SIZE 4
#ifndef Py_UNICODE_SIZE
#----------------------------

LDFLAGS='-L/usr/lib -lncursesw -L/usr/local/ssl/lib -lssl -lcrypto ' \
../configure --prefix=/usr/local \
--with-gcc=/usr/bin/gcc \
--enable-shared \
--enable-unicode=usc4 \

#---edit Modules/Setup---
(all the std ones....)
SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto

#---end edits---

gmake altinstall
------------------------------------------------------------

I'm getting a failure during final libpython binding, on undefined
PyUnicodeUCS4_AsWideChar. All the other PyUnicodeUCS4... functions
are being found. It specifically says it is checking on the libpython
in /usr/local/lib (not somewhere in the source code build dirtree), so
that is a possible oddity. Checking with nm on the lib shows
"AsWideChar" is in fact undefined.
1. If I onfigure with unicode=ucs2, does all this go away and I get a
working system (efficient or not) on my 64-bit machine?

2. Can you point to a configure (and maybe patch) process which leads
to a clean "make altinstall".
--
Harry George
PLM Engineering Architecture
Sep 11 '07 #1
1 1683
I'm building 2.5.1 from source, using the ubuntu(7.0.4)-provided gcc
4.1.2.
Something must be terribly wrong with your system if you have to go
through such hassles. It should build out of the box, and does for
me on Debian.

Regards,
Martin
Sep 11 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bill Eldridge | last post by:
I'm trying to grab a document off the Web and toss it into a MySQL database, but I keep running into the various encoding problems with Unicode (that aren't a problem for me with GB2312, BIG 5,...
30
by: aurora | last post by:
I have long find the Python default encoding of strict ASCII frustrating. For one thing I prefer to get garbage character than an exception. But the biggest issue is Unicode exception often pop up...
2
by: Neil Schemenauer | last post by:
python-dev@python.org.] The PEP has been rewritten based on a suggestion by Guido to change str() rather than adding a new built-in function. Based on my testing, I believe the idea is...
19
by: Thomas W | last post by:
I'm getting really annoyed with python in regards to unicode/ascii-encoding problems. The string below is the encoding of the norwegian word "fødselsdag". I stored the string as "fødselsdag"...
9
by: Gerry | last post by:
I'm using pyExcelerator and xlrd to read and write data from and to two spreadsheets. I created the "read" spreadsheet by importing a text file - and I had no unicode aspirations. When I read...
3
by: Marcpp | last post by:
Is possible install Qt4 pyqt4 under kubuntu? Few times ago i tried to run pyqt in ubuntu (gnome) but i can't do it.
8
by: Josep | last post by:
I'm playing with an application framework (or kinda) that's developed with python, and it throws this error: At the application (DABO) mailing list, they have pointed that this has to be a...
1
by: Mudcat | last post by:
In short what I'm trying to do is read a document using an xml parser and then upload that data back into a database. I've got the code more or less completed using xml.etree.ElementTree for the...
3
Frinavale
by: Frinavale | last post by:
I'm very impressed with Ubuntu. Everything works very well with my laptop in this flavour of Linux...even the media controls that I was sure wouldn't work do. I'm having problems with Skype...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.