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 xxxx 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/
--On 13. Juni 2007 14:50:04 +0200 Tarek Ziadé <ziade.tarek@gmail.com> 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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tarek Ziadé wrote:
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
These are both in "clean" source trees? 'make clean' in the Zope tree might be worth trying. I just ran similar builds in a completely empty directory tree (unpacking from source) without problems. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGb/KD+gerLs4ltQ4RAtpBAJwP29kwXUNMTrA6eWOqUHVBAaTGKACfeU4i vY4sPx3mhZ4B/QypMTmPvN4= =/HtD -----END PGP SIGNATURE-----
On 6/13/07, Tres Seaver <tseaver@palladion.com> wrote:
These are both in "clean" source trees? 'make clean' in the Zope tree might be worth trying. I just ran similar builds in a completely empty directory tree (unpacking from source) without problems.
Hi Tres, the problem was fixed by creating a new instance AFAIU. I was trying to run an old instance I copied from another server on the fresh Zope/python install. (the old instance had the same Python/Zope versions, same paths, and no .so files in the Products) Maybe it was a pyc problem or something in the Data.fs. I copied the Products (clean, w/o pycs) and copied the old Data.fs and now it works. Thanks for your help Tarek Tres.
- -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGb/KD+gerLs4ltQ4RAtpBAJwP29kwXUNMTrA6eWOqUHVBAaTGKACfeU4i vY4sPx3mhZ4B/QypMTmPvN4= =/HtD -----END 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 )
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
participants (3)
-
Andreas Jung -
Tarek Ziadé -
Tres Seaver