No local packages or download links found for RuleDispatch>=0.5a0.dev-r2306 error: Could not find suitable distribution for Requirement.parse(‘RuleDispatch>=0.5a0.dev-r2306’) ~or~ DistributionNotFound: RuleDispatch>=0.5a0.dev-r2247
This is because RuleDispatch has not released a new version, despite having made patches necessary for ToscaWidgets to work.
Generally you can resolve this problem by downloading the rule-dispatch egg directly, like this:
Usually this is followed by the PyProtocols error: No local packages or download links found for PyProtocols==1.0a0dev-r2302 error: Could not find suitable distribution for Requirement.parse(‘PyProtocols==1.0a0dev-r2302’) ~or~ DistributionNotFound: PyProtocols>=1.0a0dev-r2302
Again, this can be downloaded and installed like this:
TypeError: No object (name: ToscaWidgets per-request storage) has been registered for this thread
Try this:easy_install -U toscawidgets
After, make sure ToscaWidgets is turned ON by adding / changing this line in the dev.cfg/prod.cfg or app.cfg:toscawidgets.on = True
ValueError: need more than 2 values to unpack
Just to make sure you have the latest version of Genshi, do this:easy_install -U genshi
After, make sure Genshi is set as the default view by adding / changing this line in the dev.cfg/prod.cfg or app.cfg:tg.defaultview = 'genshi'
If you are going to use ToscaWidgets in a Grok application, you can as long as your Grok app is a WSGI app. Grok has a way of doing this
Then, you need to modify your grok.ini to include the ToscaWidgets middleware:
[filter:tosca] use=egg:toscawidgets#middleware default_view=genshi
[pipeline:main] pipeline = egg:Paste#cgitb egg:Paste#httpexceptions suppressZopeErrorHandling tosca bbb