Re: testing v0.8
will <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
logstats.py moved packages. Since it pickles its own object, you won't be
able to use the old pickle file with the "new" logstats.py.
So you need to delete the old pickled file you have.
That's somewhat of a failing of the logstats plugin. It should pickle a
dict or something that isn't likely to change rather than pickling a class
that is likely to change.
On Wed, 10 Sep 2003, Francois Granger wrote:
>
> I know, I am late at this ;-)
>
> I just downloaded the 0.8rc1 from
> http://roughingit.subtlehints.net/code/pyblosxom-0.8rc1.tar.gz
>
> I already installed it in an alternate cgi directory so that I can
> keep my old version running while I test it.
>
> I did the configuration.
>
> #=====
> py = {}
> xmlrpc = {}
> py['blog_title'] = "Misc/Divers... "
> py['blog_description'] = "All things I feel interresting enough to
> publish in the personal/political space. Tout ce que je trouve
> d'intéressant à publier dans l'univers personel/politique."
> py['blog_language'] = "fr"
> py['blog_encoding'] = "utf-8"
> py['datadir'] = "/Volumes/OS99/blog"
> py['depth'] = 0
> py['num_entries'] = 40
> py['cacheDriver'] = 'entrypickle'
> py['cacheConfig'] = '/Volumes/OS99/blogcache'
> py['plugin_dirs'] = ['/Library/WebServer/cgi/Pyblosxom/plugins']
> py['load_plugins'] = ["w3cdate", "comments", "conditionalhttp",
> "pycalendar", "pyarchives", "pycategories", "logstats", "logrequest",
> "pyfilenamemtime"]
>
> # ========== logrequest
> py['logfile'] = '/Volumes/OS99/webstats/pyblolog'
> # ========== logstats
> py['num_referrers'] = 20
> py['referrer_length'] = 40
>
> #=====
>
> When I run pyblosxom.cgi at the command line, I get :
>
> [fbg:/Library/WebServer/cgi] fgranger% ./pyblosxom.cgi
> ./pyblosxom.cgi:14: DeprecationWarning: Non-ASCII character '\xc3' in
> file /Library/WebServer/cgi/config.py on line 10, but no encoding
> declared; see http://www.python.org/peps/pep-0263.html for details
> import config
> Traceback (most recent call last):
> File "./pyblosxom.cgi", line 42, in ?
> p.run()
> File "/Library/WebServer/cgi/Pyblosxom/pyblosxom.py", line 313, in run
> tools.run_callback("prepare", {"request": self._request})
> File "/Library/WebServer/cgi/Pyblosxom/tools.py", line 357, in run_callback
> output = mem(input)
> File "/Library/WebServer/cgi/Pyblosxom/plugins/logstats.py", line
> 132, in cb_prepare
> stats = cPickle.load(f)
> ImportError: No module named libs.plugins.logstats
> [fbg:/Library/WebServer/cgi] fgranger%
>
>
> Thanks for a fine tool !
>
>
--
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf