[Zope] Re: Compilation issues

2007-06-13 Thread Tres Seaver
-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  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://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 )


Re: [Zope] Re: Compilation issues

2007-06-13 Thread Tarek Ziadé

On 6/13/07, Tres Seaver [EMAIL PROTECTED] 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  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://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/
___
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 )