<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> from sets import Set as SetType<div class="Ih2E3d"><br>
Traceback (most recent call last):<br></div> File "./test.py", line 117, in <module><br>sys.exit(testrunner.run(defaults))<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 932, in run<br>
failed = not run_with_options(options)<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 1040, in run_with_options<br>tests_by_layer_name = find_tests(options, found_suites)<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 1615, in find_tests<br>
for suite in found_suites:<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 1654, in find_suites<br>for fpath, package in find_test_files(options):<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 1735, in find_test_files<br>
for f, package in find_test_files_(options):<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 1763, in find_test_files_<br>for (p, package) in test_dirs(options, {}):<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 1818, in test_dirs<br>
p = import_name(p)<br> File "/home/zope/ztrunk26/lib/python/zope/testing/testrunner.py", line 1834, in import_name<br>__import__(name)<br> File "/home/zope/ztrunk26/lib/python/AccessControl/__init__.py", line 17, in <module><br>
from Implementation import setImplementation<br> File "/home/zope/ztrunk26/lib/python/AccessControl/Implementation.py", line 98, in <module><br>setImplementation("C")<br> File "/home/zope/ztrunk26/lib/python/AccessControl/Implementation.py", line 51, in setImplementation<div class="Ih2E3d">
<br>
from AccessControl import ImplC as impl<br> File "/home/zope/ztrunk26/lib/python/AccessControl/ImplC.py", line 29, in <module><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"><<a href="mailto:mbaiju@zeomega.com">mbaiju@zeomega.com</a>></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;">
Hi,<br>
<br>
During the porting to python2.6, I'm stuck with the import error. I<br>
need your help to correct the error. The error message is give<br>
below:-<br>
<br>
from AccessControl import ImplC as impl File<br>
"/home/zope/ztrunk26/lib/python/AccessControl/ImplC.py", line 29, in<br>
<module> from ImplPython import RestrictedDTML, SecurityManager,<br>
ZopeSecurityPolicy ImportError: No module named ImplPython.<br>
<br>
I tried copying the file ImplPython, then I got the following error<br>
message.<br>
<br>
File "/home/zope/ztrunk26/lib/python/html_quote.py", line 4, in<br>
<module> from ustr import ustr ImportError: No module named ustr.<br>
<br>
So please help me to rectify the import errors. How can I move<br>
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 ? 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>