Pyrite-BlogAuthor mini-HOWTO

For people that are command-line addicts like me, or people that are
using operating systems where there isn’t a good blogging client
available, here goes a mini-HOWTO on how to setup Pyrite-BlogAuthor
and join the Blog Wagon:

# cvs co pyrite-blogauthor
# cvs co pyrite-core
# cvs co Cheetah

# cd pyrite-blogauthor
# python install
# cd ..
# cd pyrite-core
# python install
# cd ..
# cd Cheetah
# python install

That may get you set up for start blogging. Now type the following for
some help on where to start:

# blog help

This will give you a list of commands and switches available. Try for
example, blog help addacct:

[sidnei@isengard:~/src]$ blog help addacct
Byline v0.6beta
Open Source; Copyright 2002-2003 Rob Tillotson <>

Usage: blog [options] <command> [command-options] [args]

blog addacct

    Add a new account.  Byline will attempt to determine as much of
    the required information as it can; you will be prompted for the
    rest.  At minimum, you need to know your weblog's home page URL
    and what weblog tool you use; in many cases, Byline can figure
    everything else out on its own.

CMFWeblog doesn’t currently support RSD, so you will have to use
http://yourwebsite/portal_weblog as the API URL. I hope to get
some help from Paul to add RSD support to it.


2 thoughts on “Pyrite-BlogAuthor mini-HOWTO

  1. Can’t open /tmp/amazon.log
    Thank you very much for detailing byline’s set up steps, it’s a bit hard for a newbie.
    I found this error :
    File “BlogAuthor\plugins\”, line 48, in ?
    LOGFILE = open(/tmp/amazon.log,a)
    IOError: [Errno 2] No such file or directory: /tmp/amazon.log
    My response was to comment out in: BlogAuthor/plugins/
    the line:
    LOGFILE = open(/tmp/amazon.log,a)
    by putting a sharp in front:
    #LOGFILE = open(/tmp/amazon.log,a)
    That’s all, Hope it helps someone.

  2. not well formed XML ?
    I like to use pyrite with cmfweblog-0.6 but get following exception:
    csc@lxcsc:~/Zope$ blog addacct
    Please enter the URL of your weblog’s home page. Leave this
    blank if you wish to enter all service information manually.
    Home page URL?
    What is the target URL of your blog tool’s XML-RPC interface?
    If you don’t know this, check the documentation or ask for help.
    Target XML-RPC URL? http://lxcsc:8080/Portal/portal_weblog/
    What kind of API does your blog tool use? The supported values are:
    mt Movable Type (
    byline Byline (
    nucleus Nucleus (
    metaweblog MetaWeblog API
    debug Null CMS for debugging only
    blogger1 Blogger API v1
    blosxom Blosxom
    If you don’t know for sure, check your tool’s documentation or ask
    for help. If you still can’t find out, try blogger1 as most tools
    support it.
    API type? blogger1
    What is your CMS user name? csc
    What is your CMS password?
    Connecting to your CMS to find blogs…
    Traceback (most recent call last):
    File “/usr/bin/blog”, line 7, in ?
    File “/usr/lib/python2.2/site-packages/BlogAuthor/”, line 111, in __call__
    File “/usr/lib/python2.2/site-packages/BlogAuthor/cli/”, line 119, in __call__, args)
    File “/usr/lib/python2.2/site-packages/BlogAuthor/cli/”, line 250, in run
    blogs = cms.listBlogs()
    File “/usr/lib/python2.2/site-packages/BlogAuthor/cms/”, line 91, in listBlogs
    File “/usr/lib/python2.2/”, line 821, in __call__
    return self.__send(self.__name, args)
    File “/usr/lib/python2.2/”, line 975, in __request
    File “/usr/lib/python2.2/”, line 853, in request
    return self.parse_response(h.getfile())
    File “/usr/lib/python2.2/”, line 891, in parse_response
    File “/usr/lib/python2.2/”, line 390, in feed
    self._parser.Parse(data, 0)
    xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.