Discussion:
[Erp5-dev] Problmes with starting Zope on debian/unstable and ubuntu/dapper
Łukasz Nowak
2007-02-20 14:14:07 UTC
Permalink
Hello,

I'm testing packages from spec/debian/unstable. But right now I have
problem, which I cannot fix myself.

After installing all (except erp5-zopetestcase) packages for debian
unstable i386, using reportlab 2 or reportlab 1.x I've got attached
traceback after zopectl> fg.

It's on line:

from xml.sax.writer import PrettyPrinter, XmlWriter

running such line on this system from python prompt is successful:

shufla at sid:~$ python
Python 2.4.4 (#2, Jan 13 2007, 17:50:26)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from xml.sax.writer import PrettyPrinter, XmlWriter
What could be a problem? It is last problem with running erp5 on
debian/ubuntu. (I've patched system to not to import that line and
system was running well, even on 64bit system).

Thanks,
Luke

PS. Same situation is on ubuntu/dapper.
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: import.traceback
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070220/a9ff6527/attachment.txt>
Kevin Deldycke
2007-02-20 14:16:50 UTC
Permalink
Post by Łukasz Nowak
Hello,
I'm testing packages from spec/debian/unstable. But right now I have
problem, which I cannot fix myself.
Just an idea: try to delete all *.pyc and *.pyo files...
--
Kevin Deldycke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070220/ff4accd0/attachment.pgp>
Łukasz Nowak
2007-02-20 14:23:01 UTC
Permalink
Hello,
Post by Kevin Deldycke
Post by Łukasz Nowak
Hello,
I'm testing packages from spec/debian/unstable. But right now I have
problem, which I cannot fix myself.
Just an idea: try to delete all *.pyc and *.pyo files...
sid:~# find /usr/lib -name \*pyc -exec rm {} \;
sid:~# find /usr/lib -name \*pyo -exec rm {} \;

Same problem :( I'm googling for it right now, I think I won't leave
office today until I got it running well on debian ;)

Bye,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
Łukasz Nowak
2007-02-20 14:32:32 UTC
Permalink
Hello,

?ukasz Nowak napisa?(a):
(...)
Post by Łukasz Nowak
Same problem :( I'm googling for it right now, I think I won't leave
office today until I got it running well on debian ;)
Hm, I found such workaround:
http://www.python-forum.de/viewtopic.php?p=49600&sid=cf0940dc807f0a4d98b74f87b9417782

After applying it, I'm one step further. Is it acceptable as patch for
reportlab? Or shall I use same invocation as in reportlab used in MDK?

try:
import sgmlop # this works for both builtin on the path or relative
except ImportError:
sgmlop = None

Thanks,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
Ivan Tyagov
2007-02-20 14:33:06 UTC
Permalink
Hi,
Post by Łukasz Nowak
shufla at sid:~$ python
Python 2.4.4 (#2, Jan 13 2007, 17:50:26)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Post by Łukasz Nowak
from xml.sax.writer import PrettyPrinter, XmlWriter
What could be a problem? It is last problem with running erp5 on
debian/ubuntu. (I've patched system to not to import that line and
system was running well, even on 64bit system).
If you're running the same python versions maybe it's worth to check the
path in which python modules are searched for possible differences.
For different users this path can be altered through environmental
variable 'PYTHONPATH'.
I had some time ago similar problem.

Like so:

[ivan at localhost bootstrap]$ python
Python 2.4.3 (#2, Sep 18 2006, 21:07:35)
[GCC 4.1.1 20060724 (prerelease) (4.1.1-3mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Post by Łukasz Nowak
import sys
sys.path
['', '/usr/lib/python24.zip', '/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/PIL',
'/usr/lib/python2.4/site-packages/gtk-2.0']

Ivan

Loading...