|
From: Chris G <cl...@is...> - 2010-01-28 19:08:27
|
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
|
|
From: will kahn-g. <wi...@bl...> - 2010-01-28 19:16:23
|
On 01/28/2010 02:03 PM, Chris G wrote: > 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 That should have installed Python as a site-package and the pyblosxom-cmd command in bin. After doing that, to create a blog you do: % pyblosxom-cmd create <dir> and that's it. PyBlosxom builds the directory structure for your blog with flavour files and pyblosxom.cgi and config.py files. Sounds like you should read through the README and INSTALL files. There are a lot of changes in PyBlosxom 1.5 specifically to make it easy to install. /will |
|
From: Chris G <cl...@is...> - 2010-01-28 20:41:37
|
On Thu, Jan 28, 2010 at 02:16:14PM -0500, will kahn-greene wrote: > On 01/28/2010 02:03 PM, Chris G wrote: > > 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 > > That should have installed Python as a site-package and the > pyblosxom-cmd command in bin. > Yes, it has, well nearly:- chris@server:~$ which pyblosxom-cmd /usr/local/bin/pyblosxom-cmd chris@server:~$ > After doing that, to create a blog you do: > > % pyblosxom-cmd create <dir> > > and that's it. PyBlosxom builds the directory structure for your blog > with flavour files and pyblosxom.cgi and config.py files. > Yes, that's where I'm getting the error I was reporting:- chris@server:~$ pyblosxom-cmd create xxx pyblosxom-cmd version 1.5 dev Creating '/home/chris/xxx'... Creating '/home/chris/xxx/entries'... Creating '/home/chris/xxx/plugins'... Creating file '/home/chris/xxx/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' > Sounds like you should read through the README and INSTALL files. There > are a lot of changes in PyBlosxom 1.5 specifically to make it easy to > install. > I think I have followed the README and INSTALL. Looking harder at the above error it seems as if there should be a config.py in the installation somewhere that can't be found. -- Chris Green |
|
From: will kahn-g. <wi...@bl...> - 2010-01-29 18:27:32
|
On 01/28/2010 08:15 PM, will kahn-greene wrote: > On 01/28/2010 03:51 PM, Chris G wrote: >> >> After a clean installation if I run 'pyblosxom-cmd create<dir>' in >> the installed pyblosxom directory (i.e. the directory where there is a >> data directory and the Pyblosxom directory) then the create works, but >> if I run it anywhere els it fails with the error I reported. > > Ahh... that might be a bug in the setup.py code. I just ditched the > MANIFEST.in file and maybe that's still needed. I'll take a look at it > tomorrow. I re-added the MANIFEST.in file and update it and that fixes this issue. Thank you for noticing this and reporting it! /will |
|
From: Chris G <cl...@is...> - 2010-01-30 11:47:35
|
On Fri, Jan 29, 2010 at 01:27:22PM -0500, will kahn-greene wrote: > On 01/28/2010 08:15 PM, will kahn-greene wrote: > > On 01/28/2010 03:51 PM, Chris G wrote: > >> > >> After a clean installation if I run 'pyblosxom-cmd create<dir>' in > >> the installed pyblosxom directory (i.e. the directory where there is a > >> data directory and the Pyblosxom directory) then the create works, but > >> if I run it anywhere els it fails with the error I reported. > > > > Ahh... that might be a bug in the setup.py code. I just ditched the > > MANIFEST.in file and maybe that's still needed. I'll take a look at it > > tomorrow. > > I re-added the MANIFEST.in file and update it and that fixes this issue. > > Thank you for noticing this and reporting it! > Hey, I found a bug! :-) -- Chris Green |
|
From: Chris G <cl...@is...> - 2010-01-28 20:52:37
|
On Thu, Jan 28, 2010 at 08:30:29PM +0000, Chris G wrote: > On Thu, Jan 28, 2010 at 02:16:14PM -0500, will kahn-greene wrote: > > On 01/28/2010 02:03 PM, Chris G wrote: > > > 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 > > > > That should have installed Python as a site-package and the > > pyblosxom-cmd command in bin. > > > Yes, it has, well nearly:- > > chris@server:~$ which pyblosxom-cmd > /usr/local/bin/pyblosxom-cmd > chris@server:~$ > > > After doing that, to create a blog you do: > > > > % pyblosxom-cmd create <dir> > > > > and that's it. PyBlosxom builds the directory structure for your blog > > with flavour files and pyblosxom.cgi and config.py files. > > > Yes, that's where I'm getting the error I was reporting:- > > chris@server:~$ pyblosxom-cmd create xxx ... and I think I have maybe found the problem or at least some of it. After a clean installation if I run 'pyblosxom-cmd create <dir>' in the installed pyblosxom directory (i.e. the directory where there is a data directory and the Pyblosxom directory) then the create works, but if I run it anywhere els it fails with the error I reported. -- Chris Green |
|
From: will kahn-g. <wi...@bl...> - 2010-01-29 01:15:34
|
On 01/28/2010 03:51 PM, Chris G wrote: > On Thu, Jan 28, 2010 at 08:30:29PM +0000, Chris G wrote: >> On Thu, Jan 28, 2010 at 02:16:14PM -0500, will kahn-greene wrote: >>> On 01/28/2010 02:03 PM, Chris G wrote: >>>> 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 >>> >>> That should have installed Python as a site-package and the >>> pyblosxom-cmd command in bin. >>> >> Yes, it has, well nearly:- >> >> chris@server:~$ which pyblosxom-cmd >> /usr/local/bin/pyblosxom-cmd >> chris@server:~$ >> >>> After doing that, to create a blog you do: >>> >>> % pyblosxom-cmd create<dir> >>> >>> and that's it. PyBlosxom builds the directory structure for your blog >>> with flavour files and pyblosxom.cgi and config.py files. >>> >> Yes, that's where I'm getting the error I was reporting:- >> >> chris@server:~$ pyblosxom-cmd create xxx > > ... and I think I have maybe found the problem or at least some of it. > > After a clean installation if I run 'pyblosxom-cmd create<dir>' in > the installed pyblosxom directory (i.e. the directory where there is a > data directory and the Pyblosxom directory) then the create works, but > if I run it anywhere els it fails with the error I reported. Ahh... that might be a bug in the setup.py code. I just ditched the MANIFEST.in file and maybe that's still needed. I'll take a look at it tomorrow. /will |
|
From: Chris G <cl...@is...> - 2010-01-29 11:20:53
|
On Thu, Jan 28, 2010 at 08:15:25PM -0500, will kahn-greene wrote:
> On 01/28/2010 03:51 PM, Chris G wrote:
> >
> > After a clean installation if I run 'pyblosxom-cmd create<dir>' in
> > the installed pyblosxom directory (i.e. the directory where there is a
> > data directory and the Pyblosxom directory) then the create works, but
> > if I run it anywhere els it fails with the error I reported.
>
> Ahh... that might be a bug in the setup.py code. I just ditched the
> MANIFEST.in file and maybe that's still needed. I'll take a look at it
> tomorrow.
>
Thanks Will.
By the way I think part of my problem with installing 1.5 was that it
is actually much simpler than it used to be. I.e. just about *all*
one needs to do is:-
Unpack the code
run 'python setup.py install'
run 'pyblosxom-cmd create ./blog/'
Then go and configure a few things. I had been reading what is in the docs
directory and doing stuff I found in there before running pyblosxom-cmd
and I think that's where I was getting a bit lost. I also hadn't
realised (thought through properly that is!) that no part of the
unpacked tar file is needed for the installation to work after you've
done what's above. I was somehow thinking that stuff in either the
pyblosxom or the Pyblosxom directories had to be visible to apache for
it to work.
(I had also added to my confusion by installing on my headless server
system via an NFS mount - that's my problem!)
--
Chris Green
|