[Zope-dev] Re: import error in python2.6

2008-07-30 Thread Bristow Thankachan
Hi,

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:-

Running tests at level 1
/home/zope/ztrunk26/lib/python/zope/schema/_field.py:24: DeprecationWarning:
the sets module is deprecated
  from sets import Set as SetType
Traceback (most recent call last):
  File ./test.py, line 117, in module
sys.exit(testrunner.run(defaults))
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
932, in run
failed = not run_with_options(options)
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
1040, in run_with_options
tests_by_layer_name = find_tests(options, found_suites)
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
1615, in find_tests
for suite in found_suites:
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
1654, in find_suites
for fpath, package in find_test_files(options):
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
1735, in find_test_files
for f, package in find_test_files_(options):
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
1763, in find_test_files_
for (p, package) in test_dirs(options, {}):
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
1818, in test_dirs
p = import_name(p)
  File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
1834, in import_name
__import__(name)
  File /home/zope/ztrunk26/lib/python/AccessControl/__init__.py, line 17,
in module
from Implementation import setImplementation
  File /home/zope/ztrunk26/lib/python/AccessControl/Implementation.py,
line 98, in module
setImplementation(C)
  File /home/zope/ztrunk26/lib/python/AccessControl/Implementation.py,
line 51, in setImplementation
from AccessControl import ImplC as impl
  File /home/zope/ztrunk26/lib/python/AccessControl/ImplC.py, line 29, in
module
from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy
ImportError: No module named ImplPython

regards

Bristow.


On Mon, Jul 28, 2008 at 8:44 PM, Baiju M [EMAIL PROTECTED] wrote:

 Hi Bristow,


 Bristow Thankachan wrote:

  Hi,

  During the porting to python2.6, I'm stuck with the import error. I
  need your help to correct the error. The error message is give
  below:-

  from AccessControl import ImplC as impl File
  /home/zope/ztrunk26/lib/python/AccessControl/ImplC.py, line 29, in
  module from ImplPython import RestrictedDTML, SecurityManager,
  ZopeSecurityPolicy ImportError: No module named ImplPython.

  I tried copying the file ImplPython, then I got the following error
  message.

  File /home/zope/ztrunk26/lib/python/html_quote.py, line 4, in
  module from ustr import ustr ImportError: No module named ustr.

  So please help me to rectify the import errors. How can I move
  forward on correcting these import errors?


 Few days back you got a reply from Lennart regarding this issue ?
 http://mail.zope.org/pipermail/zope-dev/2008-July/032692.html

 Did you checked that ?  Can you please verify whether there is
 any syntax error or not ?

 Also can you please provide full traceback of this error ?

 Regards,
 Baiju M



___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: import error in python2.6

2008-07-30 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bristow Thankachan wrote:
 Hi,
 
 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:-
 
 Running tests at level 1
 /home/zope/ztrunk26/lib/python/zope/schema/_field.py:24: DeprecationWarning:
 the sets module is deprecated
   from sets import Set as SetType
 Traceback (most recent call last):
   File ./test.py, line 117, in module
 sys.exit(testrunner.run(defaults))
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 932, in run
 failed = not run_with_options(options)
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 1040, in run_with_options
 tests_by_layer_name = find_tests(options, found_suites)
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 1615, in find_tests
 for suite in found_suites:
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 1654, in find_suites
 for fpath, package in find_test_files(options):
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 1735, in find_test_files
 for f, package in find_test_files_(options):
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 1763, in find_test_files_
 for (p, package) in test_dirs(options, {}):
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 1818, in test_dirs
 p = import_name(p)
   File /home/zope/ztrunk26/lib/python/zope/testing/testrunner.py, line
 1834, in import_name
 __import__(name)
   File /home/zope/ztrunk26/lib/python/AccessControl/__init__.py, line 17,
 in module
 from Implementation import setImplementation
   File /home/zope/ztrunk26/lib/python/AccessControl/Implementation.py,
 line 98, in module
 setImplementation(C)
   File /home/zope/ztrunk26/lib/python/AccessControl/Implementation.py,
 line 51, in setImplementation
 from AccessControl import ImplC as impl
   File /home/zope/ztrunk26/lib/python/AccessControl/ImplC.py, line 29, in
 module
 from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy
 ImportError: No module named ImplPython
 
 regards
 
 Bristow.
 
 
 On Mon, Jul 28, 2008 at 8:44 PM, Baiju M [EMAIL PROTECTED] wrote:
 
 Hi Bristow,


 Bristow Thankachan wrote:

  Hi,

  During the porting to python2.6, I'm stuck with the import error. I
  need your help to correct the error. The error message is give
  below:-

Does this same test raise a deprecation warning under 2.5?  I seem to
recall that implicit relative imports were going to go away in some
version of Python.  In that case, does:

  'from AccessControl.ImplPython import ...'

fix the problem?


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

iD8DBQFIkRdA+gerLs4ltQ4RAmGqAKDFEEf7EKic9NKJWwxFG73Ar8DdlQCffH0M
1xjV0zfDPjNuBr5kyGAA49I=
=Hd78
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: import error in python2.6

2008-07-21 Thread Martin Aspeli

Fred Drake wrote:

On Jul 21, 2008, at 9:20 AM, Benjamin Peterson wrote:

Since this is prelease software, it's probably ok to talk about issues
with it. You could file a bug next time. However, AFAIK, Zope hasn't
even been ported to 2.5.



Many people are using Zope 3 with Python 2.5 without problems, though  
Python 2.5 isn't officially supported (whatever that means).


I think current versions of Zope 2 work with Python 2.5 as well.


No, they don't. Work is ongoing to port it, though.

Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )