Re: weblogsping.py problems.

Steven Armstrong <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On 08/30/05 01:39, pyblosxom-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote:
> it contains(after attempting to access is it with the weblogsping
> enabled):
> 
> Traceback (most recent call last):
>   File "/usr/lib/cgi-bin/blog", line 57, in ?
>     p.run()
>   File "/home/sjoeboo/pyblosxom/Pyblosxom/pyblosxom.py", line 133, in run
>     blosxom_handler(self._request)
>   File "/home/sjoeboo/pyblosxom/Pyblosxom/pyblosxom.py", line 726, in blosxom_handler
>     tools.run_callback("prepare", {"request": request})
>   File "/home/sjoeboo/pyblosxom/Pyblosxom/tools.py", line 438, in run_callback
>     output = mem(input)
>   File "/home/sjoeboo/weblog-plugins/weblogsping.py", line 118, in cb_prepare
>     WeblogsPing(request).ping()
>   File "/home/sjoeboo/weblog-plugins/weblogsping.py", line 71, in ping
>     self._pingData = pickle.load(fp)
> EOFError
> [Mon Aug 29 19:36:32 2005] [error] [client 192.168.1.1] Premature end of script headers: /usr/lib/cgi-bin/blog
> 
> any ideas?
> 

Hi Mat

It looks like there's something wrong with the pickled file. Maybe it's 
corrupted or empty?

If you created the file with "touch LATEST", that won't work.

$ touch pickletest
$ python
 >>> import cPickle as pickle
 >>> fp = open("pickletest", "rb")
 >>> data = pickle.load(fp)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
EOFError
 >>>

Delete the LATEST file. It will be created by the plugin on first run.
All this will only work if the webserver has write permissions to your 
datadir.

hth
cheers
Steven


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.