[wingide-users] WingIDE and Zope unit tests?

Lennart Regebro regebro at nuxeo.com
Fri Feb 4 09:34:52 EST 2005


I'm trying out WingIDE and tried to run the Zope unit tests from within 
WingIDE. Seemed theoretically simple to me, after all it's basically 
about running a python file, that in turn runs other python files, and 
so debugging should be a breeze.

But, alas, not. I get

AttributeError: '_socketobject' object has no attribute '__ne__', when 
running the same command, and as far as I can figure out, with the same 
environment, as something that succeeds from the command line.

That command being either

'/usr/bin/python2.3 lib/python/Zope/Startup/zopectl.py -C etc/zope.conf 
test Products/CPSSharedCalendar/'

or

'/usr/bin/python2.3 test.py -C etc/zope.conf --libdir Products 
Products/CPSSharedCalendar/'

These two commands basically do the same thing.

Any ideas? I have a lot of unit tests, and having to debug them by 
"import pdb;pdb.set_trace()" more or less defats the whole idea of using 
an IDE...


Full traceback:

AttributeError: '_socketobject' object has no attribute '__ne__'

Traceback (innermost last):

File "/home/zopes/CPSFive/lib/python/Zope/Startup/zopectl.py", line 1, in ?
   #!python
File "/home/zopes/CPSFive/lib/python/Zope/Startup/zopectl.py", line 283, 
in ?
   main()
File "/home/zopes/CPSFive/lib/python/Zope/Startup/zopectl.py", line 263, 
in main
   options.realize(args)
File "/home/zopes/CPSFive/lib/python/Zope/Startup/zopectl.py", line 90, 
in realize
   ZDOptions.realize(self, *args, **kw)
File "/home/zopes/CPSFive/lib/python/zdaemon/zdoptions.py", line 271, in 
realize
   self.load_schema()
File "/home/zopes/CPSFive/lib/python/zdaemon/zdoptions.py", line 312, in 
load_schema
   self.schema = ZConfig.loadSchema(self.schemafile)
File "/home/zopes/CPSFive/lib/python/ZConfig/loader.py", line 37, in 
loadSchema
   return SchemaLoader().loadURL(url)
File "/home/zopes/CPSFive/lib/python/ZConfig/loader.py", line 71, in loadURL
   return self.loadResource(r)
File "/home/zopes/CPSFive/lib/python/ZConfig/loader.py", line 137, in 
loadResource
   schema = ZConfig.schema.parseResource(resource, self)
File "/home/zopes/CPSFive/lib/python/ZConfig/schema.py", line 43, in 
parseResource
   xml.sax.parse(resource.file, parser)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/__init__.py", line 
31, in parse
   parser.parse(filename_or_stream)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", 
line 109, in parse
   xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line 
123, in parse
   self.feed(buffer)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", 
line 216, in feed
   self._parser.Parse(data, isFinal)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", 
line 578, in StartElement
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", 
line 312, in start_element
   self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/zopes/CPSFive/lib/python/ZConfig/schema.py", line 119, in 
startElement
   getattr(self, "start_" + name)(attrs)
File "/home/zopes/CPSFive/lib/python/ZConfig/schema.py", line 306, in 
start_import
   src = self._loader.schemaComponentSource(pkg, file)
File "/home/zopes/CPSFive/lib/python/ZConfig/loader.py", line 154, in 
schemaComponentSource
   __import__(package)
File "/home/zopes/CPSFive/lib/python/ZServer/__init__.py", line 36, in ?
   from HTTPServer import zhttp_server, zhttp_handler
File "/home/zopes/CPSFive/lib/python/ZServer/HTTPServer.py", line 55, in ?
   from ZServer import CONNECTION_LIMIT, ZOPE_VERSION, ZSERVER_VERSION
File "/usr/lib/python2.3/asyncore.py", line 365, in __getattr__
   return getattr(self.socket, attr)



-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the wingide-users mailing list