Fwd: [Zope] Compilation issues
Forwarding my reply (the reply-to header seem misconfigured on this list) -- Forwarded message -- From: Tarek Ziadé <[EMAIL PROTECTED]> Date: Jun 13, 2007 3:10 PM Subject: Re: [Zope] Compilation issues To: Andreas Jung <[EMAIL PROTECTED]> On 6/13/07, Andreas Jung <[EMAIL PROTECTED]> wrote: --On 13. Juni 2007 14:50:04 +0200 Tarek Ziadé <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to set up a Python/Zope in my home because I have a limited > access to the server, > but I have an issue when i try to run Zope with unicode compilation with > the > Persitency module. > > I remember I had this problem once with PyLucene, and recompiling Python > with the right option > resolved it. But in the present case, it doesn't solve it... > You're mixing somehow Python modules compiled with different Python versions (in detail with different internal unicode representation UCS2 vs UCS4). -aj Something like that probably, I recompiled Zope and Python, recreated a fresh instance, removed all .pyc from my old Products directory and copied it in the fresh instance, copied the Data.fs and now it works... Thanks -- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/ -- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Compilation issues
--On 13. Juni 2007 14:50:04 +0200 Tarek Ziadé <[EMAIL PROTECTED]> wrote: Hello, I am trying to set up a Python/Zope in my home because I have a limited access to the server, but I have an issue when i try to run Zope with unicode compilation with the Persitency module. I remember I had this problem once with PyLucene, and recompiling Python with the right option resolved it. But in the present case, it doesn't solve it... You're mixing somehow Python modules compiled with different Python versions (in detail with different internal unicode representation UCS2 vs UCS4). -aj pgpTwIOENpKMy.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Compilation issues
Hello, I am trying to set up a Python/Zope in my home because I have a limited access to the server, but I have an issue when i try to run Zope with unicode compilation with the Persitency module. I remember I had this problem once with PyLucene, and recompiling Python with the right option resolved it. But in the present case, it doesn't solve it... Any ideas ? Thanks Tarek 1/ Error: $ ./bin/runzope [...] Traceback (most recent call last): File "/home/tarek/opt/zope-2.8.4/lib/python/Zope2/Startup/run.py", line 56, in ? [...] File "/home/tarek/opt/zope-2.8.4/lib/python/persistent/__init__.py", line 19, in ? from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY ImportError: /home/tarek/opt/zope-2.8.4/lib/python/persistent/cPersistence.so: undefined symbol: PyUnicodeUCS2_AsEncodedString 2/ So i tried this: Python compilation: $ ./configure --enable-unicode=ucs2 --prefix=/home/tarek/opt/python-2.3.5 $ make && make install Zope compilation: $ ./configure --prefix=/home/tarek/opt/zope-2.8.4--with-python=/home/tarek/opt/python- 2.3.5/bin/python $ make && make install 3/ My system info (regular debian): $ cat /proc/cpuinfo && more /etc/debian_version && uname -a processor : 0 vendor_id : CentaurHauls cpu family : 6 model : 10 model name : VIA Esther processor 2000MHz stepping: 9 cpu MHz : 1995.084 cache size : 128 KB fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx pni est tm2 rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en bogomips: 3992.74 lenny/sid Linux 2.6.18.1dedibox_r6_final #1 Mon Oct 16 14:05:25 CEST 2006 i686 GNU/Linux -- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )