I have python 2.4.4 installed on Ubuntu for use with Zope 2.9.8 (plone). I am moving my zope/python install from a hosted server to a new server of my own. I am setting up everything from scratch for the first time. When testing my installation, I get an error message with one of my scripts which I am having trouble resolving. I am wondering what module or configuration I may be missing. Here is the traceback:
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.CMFCore.PortalContent, line 108, in __call__
Module Shared.DC.Scripts.Bindings, line 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PageTemplates.ZopePageTemplate, line 255, in _exec
Module Products.CacheSetup.patch_cmf, line 74, in PT_pt_render
Module Products.CacheSetup.patch_utils, line 9, in call_pattern
Module Products.PageTemplates.PageTemplate, line 104, in pt_render
- <ZopePageTemplate at /portal/ebpage_view used for /portal/saddles/western/disciplines/roughout>
Module TAL.TALInterpreter, line 238, in __call__
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 780, in do_defineSlot
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 728, in do_defineMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 772, in do_defineSlot
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 728, in do_defineMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 647, in do_insertStructure_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: /portal/ebay_advanced_api
- Line 12, Column 0
- Expression: <PythonExpr here.getResults()>
- Names:
{'container': <PloneSite at /portal>,
'context': <ebpage at /portal/saddles/western/disciplines/roughout>,
'default': <Products.PageTemplates.TALES.Default instance at 0x7fe49dd2fd40>,
'here': <ebpage at /portal/saddles/western/disciplines/roughout>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x98913f8>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x7fe49dd364d0>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x98913f8>,
'request': <HTTPRequest, URL=http://slice.horse101.com:9080/portal/saddles/western/disciplines/roughout>,
'root': <Application at >,
'template': <ZopePageTemplate at /portal/ebpage_view used for /portal/saddles/western/disciplines/roughout>,
'traverse_subpath': [],
'user': <PropertiedUser 'sean'>}
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
- __traceback_info__: here.getResults()
Module Python expression "here.getResults()", line 1, in <expression>
Module Products.ExternalMethod.ExternalMethod, line 232, in __call__
- __traceback_info__: ((), {}, None)
Module /opt/Plone-2.5.5/zeocluster/client1/Extensions/meBay_search.py, line 31, in getEbayResults
Module Products.easyBay, line 131, in _request
Module httplib, line 804, in request
Module httplib, line 827, in _send_request
Module httplib, line 798, in endheaders
Module httplib, line 679, in _send_output
Module httplib, line 646, in send
Module httplib, line 1073, in connect
AttributeError: 'module' object has no attribute 'ssl'
Someone suggested trying:
The first thing I'd check is whether your socket module has an ssl
function:Here's what I get:
>>> import socket
>>> socket.ssl
<function ssl at 0x679f0>
And this worked ok for me- I got similar result. I am unsure what to try next. Anyone have any suggestions?