I am sorry but I do not have enough information. I suspect the error is due to try to unpicke something in an environment when the class of one of the picked objects is not defined.
Massimo On Jan 5, 5:20 am, robsan <[email protected]> wrote: > BTW, my code runs well standalone. Only on web2py I get this error. > Could it be a locking issue? I'm running web2py with passenger wsgi > and tried to kill the process but still get the error. > > Any help would be appreciated... > > Thanks, > Roberto > > On Dec 30 2009, 4:52 pm, robsan <[email protected]> wrote: > > > Hi all, > > > I'm usinghttp://www.crummy.com/software/ScrapeNFeed/toscrape a > > webpage and produce a RSS feed. ScrapeNFeed uses a pickle file to > > store information/history about this feed. The code below works fine > > on the 1st run when the pickle file does not exist, but after it gets > > created I get the following error: > > > "File "/home/robsan/run/lib/python2.6/pickle.py", line 1126, in > > find_class > > klass = getattr(mod, name) > > AttributeError: 'module' object has no attribute 'SSDFeed'" > > > Code on controllers/default.py: > > > def feed(): > > class SSDFeed(ScrapeNFeed.ScrapedFeed): > > > def HTML2RSS(self, headers, body): > > [...] > > > SSDFeed.load(<parameters>) > > > Any ideas, please? > > > Roberto > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

