<div dir="ltr">Hi, <br><br>Can anybody tell me how to run the module ImplPython in python2.6 to check for syntax errors. Or is there any other means by which I can correct the import error of the module ImplPython? The error message is as follows:-<br>
<br>Running tests at level 1<br>/home/zope/ztrunk26/lib/<div dir="ltr">python/zope/schema/_field.py:24: DeprecationWarning: the sets module is deprecated<br>&nbsp; from sets import Set as SetType<div class="Ih2E3d"><br>
Traceback (most recent call last):<br></div>&nbsp; File &quot;./test.py&quot;, line 117, in &lt;module&gt;<br>sys.exit(testrunner.run(defaults))<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 932, in run<br>

failed = not run_with_options(options)<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 1040, in run_with_options<br>tests_by_layer_name = find_tests(options, found_suites)<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 1615, in find_tests<br>

for suite in found_suites:<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 1654, in find_suites<br>for fpath, package in find_test_files(options):<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 1735, in find_test_files<br>

for f, package in find_test_files_(options):<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 1763, in find_test_files_<br>for (p, package) in test_dirs(options, {}):<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 1818, in test_dirs<br>

p = import_name(p)<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py&quot;, line 1834, in import_name<br>__import__(name)<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/AccessControl/__init__.py&quot;, line 17, in &lt;module&gt;<br>

from Implementation import setImplementation<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/AccessControl/Implementation.py&quot;, line 98, in &lt;module&gt;<br>setImplementation(&quot;C&quot;)<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/AccessControl/Implementation.py&quot;, line 51, in setImplementation<div class="Ih2E3d">
<br>
from AccessControl import ImplC as impl<br>&nbsp; File &quot;/home/zope/ztrunk26/lib/python/AccessControl/ImplC.py&quot;, line 29, in &lt;module&gt;<br>from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy<br>

ImportError: No module named ImplPython<br><br></div>regards<br><font color="#888888"><br>Bristow.</font></div><br><br><div class="gmail_quote">On Mon, Jul 28, 2008 at 8:44 PM, Baiju M <span dir="ltr">&lt;<a href="mailto:mbaiju@zeomega.com">mbaiju@zeomega.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Bristow,<div><div></div><div class="Wj3C7c"><br>
<br>
Bristow Thankachan wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&nbsp;Hi,<br>
<br>
&nbsp;During the porting to python2.6, I&#39;m stuck with the import error. I<br>
&nbsp;need your help to correct the error. The error message is give<br>
&nbsp;below:-<br>
<br>
&nbsp;from AccessControl import ImplC as impl File<br>
&nbsp;&quot;/home/zope/ztrunk26/lib/python/AccessControl/ImplC.py&quot;, line 29, in<br>
&nbsp;&lt;module&gt; from ImplPython import RestrictedDTML, SecurityManager,<br>
&nbsp;ZopeSecurityPolicy ImportError: No module named ImplPython.<br>
<br>
&nbsp;I tried copying the file ImplPython, then I got the following error<br>
&nbsp;message.<br>
<br>
&nbsp;File &quot;/home/zope/ztrunk26/lib/python/html_quote.py&quot;, line 4, in<br>
&nbsp;&lt;module&gt; from ustr import ustr ImportError: No module named ustr.<br>
<br>
&nbsp;So please help me to rectify the import errors. How can I move<br>
&nbsp;forward on correcting these import errors?<br>
</blockquote>
<br></div></div>
Few days back you got a reply from Lennart regarding this issue ?<br>
<a href="http://mail.zope.org/pipermail/zope-dev/2008-July/032692.html" target="_blank">http://mail.zope.org/pipermail/zope-dev/2008-July/032692.html</a><br>
<br>
Did you checked that ? &nbsp;Can you please verify whether there is<br>
any syntax error or not ?<br>
<br>
Also can you please provide full traceback of this error ?<br>
<br>
Regards,<br><font color="#888888">
Baiju M<br>
<br>
<br>
</font></blockquote></div><br></div>