Re: Problems with pyarchives
Wolfgang Stief <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Will!
Thanks for your initial hints.
On 2004-02-29 11:38 -0600, will guaraldi wrote:
> Looks like you're using PyBlosxom 0.8.1 with the version of pyarchives
> from CVS. My guess is that you picked up the version from CVS because
> that's what the registry points to. That's an issue I'm going to try
> to fix soon.
I did this, indeed. Loaded it today morning from the web site.
> Anyhow, if you use the version of pyarchives that comes with PyBlosxom
> 0.8.1, you should be all set.
I checked several times: removed the site-python/Pyblosxom/* of my
Python installation, reinstalled pyblosxom-0.8.1 ('python ./setup.py
install'), copied pyarchives.py to my plugin directory, changed
config.py.
Result: Same error as before:
> > The Apache error log shows me some problems with Unicode in tools.py
> > (made some pretty formatting for the mail):
> >
> > - -----snip-----snip-----
> >
> > Traceback (most recent call last):
> > File "/home/stief/public_html/chaes.de/blog", line 42, in ?
> > p.run()
> > File "/usr/lib/python2.3/site-packages/Pyblosxom/pyblosxom.py",
> > line 343, in run
> > renderer.render()
> > File "/usr/lib/python2.3/site-packages/Pyblosxom/renderers/blosxom.py",
> > line 226, in render
> > self._outputFlavour(parsevars,'foot')
> > File "/usr/lib/python2.3/site-packages/Pyblosxom/renderers/blosxom.py",
> > line 252, in _outputFlavour
> > self.write(tools.parse(entry, template))
> > File "/usr/lib/python2.3/site-packages/Pyblosxom/tools.py",
> > line 150, in parse
> > return u'' + VAR_REGEXP.sub(Replacer(var_dict).replace, template)
> > File "/usr/lib/python2.3/site-packages/Pyblosxom/tools.py",
> > line 117, in replace
> > r = str(r)
> > File "/home/stief/public_html/chaes.de/pyarchives.py",
> > line 34, in __str__
> > self.genLinearArchive()
> > File "/home/stief/public_html/chaes.de/pyarchives.py",
> > line 42, in genLinearArchive
> > archiveList = tools.Walk(self._request, root)
> > File "/usr/lib/python2.3/site-packages/Pyblosxom/tools.py",
> > line 183, in Walk
> > names = os.listdir(root)
> > TypeError: coercing to Unicode: need string or buffer, instance found
> >
> > - -----pins-----pins-----
Any more hints? Thank you.
wolfgang
- --
[email protected] "komplexe dokumente mit word ist
GPG: http://www.chaes.de/id.asc wie haekeln mit boxhandschuhen"
-thorsten zum Thema LaTeX
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6
iD8DBQFAQkK3M6232ZYRYVURAnvpAJ9mZYaPeWlXXFS1kl8aDGo3lUXkjgCdEq0b
LKknBq8LRJZAy96eEtHeGmE=
=NK6L
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click