Today (Friday) ended with the perfect start to the weekend. After weeks of misery, (well, okay, it wasn't that bad was it Richard?) together we solved the issue with Universal Feed Parser working as a module within Zope (Plone) using Python. Firstly, what is Feed Parser?
Feed Parser is a Python module that downloads and parses or processes RSS, Atom and CDF syndicated feeds. The Feed Parser module gives Zope (Plone) the ability to bring RSS feeds from external sources into its environment. So as we gear ourselves up for releasing the new Ultralab website, this is a significant step forward.
Our problems stemmed from an error message which Plone reported whenever we tried to access the Feed Parser module...

This error only affects Mac OS X Server that has multiple versions / instances of Python installed. What we have discovered is that the Feed Parser module was installed using a version / instance of Python running on the server which was different to the version / instance that Zope and Plone use. A key learning moment is understanding that Zope modules must be installed using the same version of Python as the Zope environment is using.
Take a look at a sneak preview of the new website.




Mu
Hey Jonathan,
thought I'd let you know that I had the same problem and managed to deal with it with your help. Thought it might help to leave some details of what i did in case other Plone newbies need some help with the problem of 'import of 'feedparser' is unauthorized' OR 'module 'feedparser' does not exist'.... I downloaded Universal Feed Parser from the link you provided. The error occurs even if you only have one instance of Plone installed or, as in my case, are migrating Plone from another machine. I too made the mistake of following the README directions of 'plone setup.py install'. What I had to do was look for the python version that Plone was running on - which I found in my Plone2/Library/Software/Zope278/Python/bin/python. I then navigated to my feedparser folder (unzipped) and typed 'path_to_Plone2/Plone2/Library/Software/Zope278/Python/bin/python setup.py install. I then restarted Zope through the web (which I previously could not access due to firewall restrictions but is all sorted now, thanks Jon ;o))
Hope that helps other newbies - catch ya soon - love the blog!
davconvent
Hi boys,
feedparser is indeed a python module that can be installed with setuptools.
If your need is to use it as a dependency of a product you are developing, you can include (distribute) the feedparser.py in your product the way PloneRSSSearch and PloneRSSPortlet do it.
That way you don't even need to know what python your zope runs on.
Cheers
Post new comment