I tried this obvious step and it failed as shown below. I guess that
the sourcecode oauth is not getting on the path, or something is
hardcoded to the old copy.
bin/compile_templates
Traceback (most recent call last):
File "bin/compile_templates", line 26, in <module>
canonical.launchpad.scripts.execute_zcml_for_scripts()
File "/home/mbp/launchpad/lp-branches/work/lib/canonical/launchpad/scripts/__init__.py",
line 85, in execute_zcml_for_scripts
scriptzcmlfilename, execute=True, context=context)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 647, in file
include(context, name, package)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 546, in include
processxmlfile(f, context)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 357, in endElementNS
self.context.end()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 537, in end
self.stack.pop().finish()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 685, in finish
actions = self.handler(context, **args)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 546, in include
processxmlfile(f, context)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 357, in endElementNS
self.context.end()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 537, in end
self.stack.pop().finish()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 685, in finish
actions = self.handler(context, **args)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 546, in include
processxmlfile(f, context)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 357, in endElementNS
self.context.end()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 537, in end
self.stack.pop().finish()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 685, in finish
actions = self.handler(context, **args)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 546, in include
processxmlfile(f, context)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py",
line 357, in endElementNS
self.context.end()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 537, in end
self.stack.pop().finish()
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 684, in finish
args = toargs(context, *self.argdata)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 1376, in toargs
args[str(name)] = field.fromUnicode(s)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/fields.py",
line 229, in fromUnicode
v = vt.fromUnicode(s)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/fields.py",
line 139, in fromUnicode
value = self.context.resolve(name)
File "/home/mbp/launchpad/lp-sourcedeps/eggs/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py",
line 180, in resolve
mod = __import__(mname, *_import_chickens)
File "/home/mbp/launchpad/lp-branches/work/lib/canonical/launchpad/browser/__init__.py",
line 18, in <module>
from canonical.launchpad.browser.oauth import *
File "/home/mbp/launchpad/lp-branches/work/lib/canonical/launchpad/browser/oauth.py",
line 35, in <module>
from canonical.launchpad.webapp.authentication import (
File "/home/mbp/launchpad/lp-branches/work/lib/canonical/launchpad/webapp/authentication.py",
line 21, in <module>
from contrib.oauth import OAuthRequest
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/mbp/launchpad/lp-branches/work/script.zcml", line 7.4-7.35
ZopeXMLConfigurationError: File
"/home/mbp/launchpad/lp-branches/work/lib/canonical/configure.zcml",
line 18.4-18.37
ZopeXMLConfigurationError: File
"/home/mbp/launchpad/lp-branches/work/lib/lp/services/configure.zcml",
line 9.2-9.31
ZopeXMLConfigurationError: File
"/home/mbp/launchpad/lp-branches/work/lib/lp/services/fields/configure.zcml",
line 13.4-19.10
ImportError: No module named oauth
make: *** [compile] Error 1
make check 35.07s user 10.12s system 82% cpu 54.525 total
I tried this obvious step and it failed as shown below. I guess that
the sourcecode oauth is not getting on the path, or something is
hardcoded to the old copy.
bin/compile_ templates templates" , line 26, in <module> launchpad. scripts. execute_ zcml_for_ scripts( ) mbp/launchpad/ lp-branches/ work/lib/ canonical/ launchpad/ scripts/ __init_ _.py", zcml_for_ scripts ilename, execute=True, context=context) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", context, name, package) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", ile(f, context) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", parse(src) python2. 6/xml/sax/ expatreader. py", line 107, in parse IncrementalPars er.parse( self, source) python2. 6/xml/sax/ xmlreader. py", line 123, in parse feed(buffer) python2. 6/xml/sax/ expatreader. py", line 207, in feed _parser. Parse(data, isFinal) python2. 6/xml/sax/ expatreader. py", line 349, in end_element_ns _cont_handler. endElementNS( pair, None) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", context. end() mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", stack.pop( ).finish( ) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", context, **args) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", ile(f, context) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", parse(src) python2. 6/xml/sax/ expatreader. py", line 107, in parse IncrementalPars er.parse( self, source) python2. 6/xml/sax/ xmlreader. py", line 123, in parse feed(buffer) python2. 6/xml/sax/ expatreader. py", line 207, in feed _parser. Parse(data, isFinal) python2. 6/xml/sax/ expatreader. py", line 349, in end_element_ns _cont_handler. endElementNS( pair, None) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", context. end() mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", stack.pop( ).finish( ) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", context, **args) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", ile(f, context) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", parse(src) python2. 6/xml/sax/ expatreader. py", line 107, in parse IncrementalPars er.parse( self, source) python2. 6/xml/sax/ xmlreader. py", line 123, in parse feed(buffer) python2. 6/xml/sax/ expatreader. py", line 207, in feed _parser. Parse(data, isFinal) python2. 6/xml/sax/ expatreader. py", line 349, in end_element_ns _cont_handler. endElementNS( pair, None) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", context. end() mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", stack.pop( ).finish( ) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", context, **args) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", ile(f, context) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", parse(src) python2. 6/xml/sax/ expatreader. py", line 107, in parse IncrementalPars er.parse( self, source) python2. 6/xml/sax/ xmlreader. py", line 123, in parse feed(buffer) python2. 6/xml/sax/ expatreader. py", line 207, in feed _parser. Parse(data, isFinal) python2. 6/xml/sax/ expatreader. py", line 349, in end_element_ns _cont_handler. endElementNS( pair, None) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ xmlconfig. py", context. end() mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", stack.pop( ).finish( ) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", de(s) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ fields. py", mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ fields. py", resolve( name) mbp/launchpad/ lp-sourcedeps/ eggs/zope. configuration- 3.6.0-py2. 6.egg/zope/ configuration/ config. py", mbp/launchpad/ lp-branches/ work/lib/ canonical/ launchpad/ browser/ __init_ _.py", launchpad. browser. oauth import * mbp/launchpad/ lp-branches/ work/lib/ canonical/ launchpad/ browser/ oauth.py" , launchpad. webapp. authentication import ( mbp/launchpad/ lp-branches/ work/lib/ canonical/ launchpad/ webapp/ authentication. py", ion.xmlconfig. ZopeXMLConfigur ationError: File mbp/launchpad/ lp-branches/ work/script. zcml", line 7.4-7.35 igurationError: File mbp/launchpad/ lp-branches/ work/lib/ canonical/ configure. zcml", igurationError: File mbp/launchpad/ lp-branches/ work/lib/ lp/services/ configure. zcml", igurationError: File mbp/launchpad/ lp-branches/ work/lib/ lp/services/ fields/ configure. zcml",
Traceback (most recent call last):
File "bin/compile_
canonical.
File "/home/
line 85, in execute_
scriptzcmlf
File "/home/
line 647, in file
include(
File "/home/
line 546, in include
processxmlf
File "/home/
line 378, in processxmlfile
parser.
File "/usr/lib/
xmlreader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/home/
line 357, in endElementNS
self.
File "/home/
line 537, in end
self.
File "/home/
line 685, in finish
actions = self.handler(
File "/home/
line 546, in include
processxmlf
File "/home/
line 378, in processxmlfile
parser.
File "/usr/lib/
xmlreader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/home/
line 357, in endElementNS
self.
File "/home/
line 537, in end
self.
File "/home/
line 685, in finish
actions = self.handler(
File "/home/
line 546, in include
processxmlf
File "/home/
line 378, in processxmlfile
parser.
File "/usr/lib/
xmlreader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/home/
line 357, in endElementNS
self.
File "/home/
line 537, in end
self.
File "/home/
line 685, in finish
actions = self.handler(
File "/home/
line 546, in include
processxmlf
File "/home/
line 378, in processxmlfile
parser.
File "/usr/lib/
xmlreader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/home/
line 357, in endElementNS
self.
File "/home/
line 537, in end
self.
File "/home/
line 684, in finish
args = toargs(context, *self.argdata)
File "/home/
line 1376, in toargs
args[str(name)] = field.fromUnico
File "/home/
line 229, in fromUnicode
v = vt.fromUnicode(s)
File "/home/
line 139, in fromUnicode
value = self.context.
File "/home/
line 180, in resolve
mod = __import__(mname, *_import_chickens)
File "/home/
line 18, in <module>
from canonical.
File "/home/
line 35, in <module>
from canonical.
File "/home/
line 21, in <module>
from contrib.oauth import OAuthRequest
zope.configurat
"/home/
ZopeXMLConf
"/home/
line 18.4-18.37
ZopeXMLConf
"/home/
line 9.2-9.31
ZopeXMLConf
"/home/
line 13.4-19.10
ImportError: No module named oauth
make: *** [compile] Error 1
make check 35.07s user 10.12s system 82% cpu 54.525 total