<br><font size=2 face="sans-serif">Hello Serge,</font>
<br>
<br><font size=2 face="sans-serif">I am affraid you are on the wrong track trying to fix a ZOpe threading problem by running it on Stackless.</font>
<br><font size=2 face="sans-serif">The benefit of the extra parallelism provided by Stackless is available only to aplications written for stackless, i.e. using stackless.tasklet and stackless.channel objects. Zope, although theoretically could run on Stackless Python, was not written to use tasklets and channels. As such, it would not benefit from stackless at all. (Unless you plan to write some Zope products which do use tasklests, but even then the benefits are limited to the code you write, which probably runs for a fraction of the time only, so it probably is not worth doing that)</font>
<br>
<br><font size=2 face="sans-serif">Instead, I recommend to read (if you have not read yet) the following article and to try to compile Zope/Python with the so called &quot;bound threads&quot;</font>
<br>
<br><font size=2 face="sans-serif">http://www.zope.org/Members/glpb/solaris</font>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br>
<br>
<br>
<br>
<p><font size=1 color=#800080 face="sans-serif">From: &nbsp; &nbsp; &nbsp; &nbsp;Serge Renfer &lt;serge.renfer@edu.ge.ch&gt;@stackless.com &nbsp;on 2004.10.20 08:42 ZE2</font>
<p><font size=1 color=#800080 face="sans-serif">Sent by: &nbsp; &nbsp; &nbsp; &nbsp;stackless-bounces@stackless.com</font>
<p>
<table width=100%>
<tr valign=top>
<td width=9%><font size=1 color=#800080 face="sans-serif">To:</font>
<td width=48%><font size=1 face="sans-serif">stackless@stackless.com</font>
<br>
<td width=42%>
<br>
<tr valign=top>
<td><font size=1 color=#800080 face="sans-serif">cc:</font>
<td>
<br>
<td>
<br>
<tr valign=top>
<td>
<td>
<td>
<tr valign=top>
<td>
<td>
<td>
<tr valign=top>
<td><font size=1 color=#800080 face="sans-serif">Subject:</font>
<td colspan=2><font size=1 face="sans-serif">[Stackless] problem with Plone (in Zope) and stackless python</font>
<tr valign=top>
<td>
<td>
<td></table>
<br>
<br>
<br><font size=2 face="Courier New">Hello,<br>
<br>
I'm very interested in slp because we are running a zope site for &nbsp;<br>
colleges in Geneva on Sun machines. We have quite a lot of problems &nbsp;<br>
with &quot;threading&quot; incompatibilities between Solaris (8) and python &nbsp;<br>
threading.<br>
<br>
I'm exploring slp to pass over these problems.<br>
<br>
With slp 3, I'v had no problem to compile Zope (2.7.2), but the problem &nbsp;<br>
comes with the Plone component (the PlacelessTranslationService, &nbsp;<br>
exactly)<br>
I've tried it on my Mac OSX and I stumble on the same place as with &nbsp;<br>
Solaris:<br>
<br>
------<br>
2004-10-19T10:55:14 ERROR(200) Zope Could not import &nbsp;<br>
Products.PlacelessTranslationService<br>
Traceback (most recent call last):<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/OFS/Application.py&quot;, &nbsp;<br>
line 660, in import_product<br>
 &nbsp; &nbsp; product=__import__(pname, global_dict, global_dict, silly)<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/__init__.py&quot;, line 33, in ?<br>
 &nbsp; &nbsp; from PlacelessTranslationService import &nbsp;<br>
PlacelessTranslationService, PTSWrapper<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/PlacelessTranslationService.py&quot;, line 33, &nbsp;<br>
in ?<br>
 &nbsp; &nbsp; from GettextMessageCatalog import BrokenMessageCatalog, &nbsp;<br>
GettextMessageCatalog, translationRegistry, getMessage<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/GettextMessageCatalog.py&quot;, line 87, in ?<br>
 &nbsp; &nbsp; class BrokenMessageCatalog(Persistent, Implicit, Traversable, Tabs):<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/GettextMessageCatalog.py&quot;, line 173, in &nbsp;<br>
BrokenMessageCatalog<br>
 &nbsp; &nbsp; index_html = ptFile('index_html', globals(), 'www', &nbsp;<br>
'catalog_broken')<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/GettextMessageCatalog.py&quot;, line 62, in &nbsp;<br>
ptFile<br>
 &nbsp; &nbsp; filename = os.path.join(*filename)<br>
 &nbsp; File &quot;/Users/serge/slp/local/lib/python2.3/posixpath.py&quot;, line 62, in &nbsp;<br>
join<br>
 &nbsp; &nbsp; elif path == '' or path.endswith('/'):<br>
AttributeError: 'stackless.modict' object has no attribute 'endswith'<br>
Traceback (most recent call last):<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/Zope/Startup/run.py&quot;, &nbsp;<br>
line 50, in ?<br>
 &nbsp; &nbsp; run()<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/Zope/Startup/run.py&quot;, &nbsp;<br>
line 19, in run<br>
 &nbsp; &nbsp; start_zope(opts.configroot)<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/Zope/Startup/ <br>
__init__.py&quot;, line 51, in start_zope<br>
 &nbsp; &nbsp; starter.startZope()<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/Zope/Startup/ <br>
__init__.py&quot;, line 230, in startZope<br>
 &nbsp; &nbsp; Zope.startup()<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/Zope/__init__.py&quot;, line &nbsp;<br>
47, in startup<br>
 &nbsp; &nbsp; _startup()<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/Zope/App/startup.py&quot;, &nbsp;<br>
line 45, in startup<br>
 &nbsp; &nbsp; OFS.Application.import_products()<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/OFS/Application.py&quot;, &nbsp;<br>
line 637, in import_products<br>
 &nbsp; &nbsp; import_product(product_dir, product_name, raise_exc=debug_mode)<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/lib/python/OFS/Application.py&quot;, &nbsp;<br>
line 660, in import_product<br>
 &nbsp; &nbsp; product=__import__(pname, global_dict, global_dict, silly)<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/__init__.py&quot;, line 33, in ?<br>
 &nbsp; &nbsp; from PlacelessTranslationService import &nbsp;<br>
PlacelessTranslationService, PTSWrapper<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/PlacelessTranslationService.py&quot;, line 33, &nbsp;<br>
in ?<br>
 &nbsp; &nbsp; from GettextMessageCatalog import BrokenMessageCatalog, &nbsp;<br>
GettextMessageCatalog, translationRegistry, getMessage<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/GettextMessageCatalog.py&quot;, line 87, in ?<br>
 &nbsp; &nbsp; class BrokenMessageCatalog(Persistent, Implicit, Traversable, Tabs):<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/GettextMessageCatalog.py&quot;, line 173, in &nbsp;<br>
BrokenMessageCatalog<br>
 &nbsp; &nbsp; index_html = ptFile('index_html', globals(), 'www', &nbsp;<br>
'catalog_broken')<br>
 &nbsp; File &nbsp;<br>
&quot;/Users/serge/slp/zope/Zope-2.7.2-0/Products/ <br>
PlacelessTranslationService/GettextMessageCatalog.py&quot;, line 62, in &nbsp;<br>
ptFile<br>
 &nbsp; &nbsp; filename = os.path.join(*filename)</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp;File &quot;/Users/serge/slp/local/lib/python2.3/posixpath.py&quot;, line 62, in &nbsp;<br>
join<br>
 &nbsp; &nbsp; elif path == '' or path.endswith('/'):<br>
AttributeError: 'stackless.modict' object has no attribute 'endswith'<br>
<br>
Has anyone a clue to let me install the whole zope setup to test slp in &nbsp;<br>
our case?<br>
<br>
Thank you in advance!<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; serge<br>
<br>
<br>
_______________________________________________<br>
Stackless mailing list<br>
Stackless@stackless.com<br>
http://www.stackless.com/mailman/listinfo/stackless<br>
</font>
<br>
<br>
<br>