A returning user - having installation problems

Chris G <[email protected]> Thu, 28 Jan 2010 19:03:00 +0000
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <20100128190300.GA7868@chris>
I used pyblosxom for a while around version 1.3 (I think) and I'm now
back trying it again.  I'm not doing too well at the moment. I'm
trying to install the 1.5 beta version on ubuntu 9.10 server.

So, I'll run through what I have done:-

Get the code

    svn co https://pyblosxom.svn.sourceforge.net/svnroot/pyblosxom/trunk/pyblosxom/ pyblosxom

As root, run the install

    python setup.py install

So far, so good, no errors.  However this is where I get a little
confused.  I have copied pyblosxom.cgi to my CGI directory, now I 
need to get config.py onto my python path.  As installed, config.py
is /var/www/pyblosxom/Pyblosxom/data/config.py but I don't really
want it there.  Which bits of the tree do I need to move to my 
blog directory?

I assumed that I need to move the Pyblosxom directory to become
the blog directory on my web server, so

    mv /var/www/pyblosxom/Pyblosxom /var/www/boatBlog

and my 'basedir' is thus /var/www/boatBlog.  Have I got this right?
So I put sys.path.append("/var/www/boatBlog/data") in pyblosxom.cgi
and when I run the test I get

    /usr/lib/cgi-bin/pyblosxom.cgi test
    Exception: Plugin directory '%(basedir)s/plugins' does not exist. 
    Please check your config file

In config.py there is

    blogdir = "%(basedir)s"

Is that "%(basedir)s" anything special or just a placeholder, i.e.
should I just replace it with 

    blogdir = "/var/www/boatBlog"

and create a /var/www/boatBlog/plugins directory? It just seems a
little odd that the plugins directory isn't there already.

Anyway, having done all this I get no errors when I run the test 
of the CGI script.

Now, this is where I've run out of steam, when I run

    pyblosxom-cmd create ./blog/

I get the following error traceback

    root@server:/var/www/pyblosxom# pyblosxom-cmd create ./blog/
    pyblosxom-cmd version 1.5 dev
    Creating '/var/www/pyblosxom/blog'...
    Creating '/var/www/pyblosxom/blog/entries'...
    Creating '/var/www/pyblosxom/blog/plugins'...
    Creating file '/var/www/pyblosxom/blog/config.py'...
    Traceback (most recent call last):
      File "/usr/local/bin/pyblosxom-cmd", line 5, in <module>
	pkg_resources.run_script('pyblosxom==1.5', 'pyblosxom-cmd')
      File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 448,
    in run_script
	self.require(requires)[0].run_script(script_name, ns)
      File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1166,
    in run_script
	execfile(script_filename, namespace, namespace)
      File
    "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5-py2.6.egg/EGG-INFO/scripts/pyblosxom-cmd",
    line 25, in <module>
	sys.exit(command_line_handler("pyblosxom-cmd", sys.argv))
      File
    "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5-py2.6.egg/Pyblosxom/commandline.py",
    line 431, in command_line_handler
	return f(command, argv)
      File
    "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5-py2.6.egg/Pyblosxom/commandline.py",
    line 268, in create_blog
	_copyfile(source, d, "config.py", fix=True)
      File
    "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5-py2.6.egg/Pyblosxom/commandline.py",
    line 248, in _copyfile
	fp = open(os.path.join(frompath, fn), "r")
    IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5-py2.6.egg/Pyblosxom/data/config.py'


Help!  :-)

-- 
Chris Green

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com