473,218 Members | 1,460 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,218 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 1677
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: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.