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 -d:pserver:anonymous@cvs.pyrite.org:/pyrite co pyrite-blogauthor
# cvs -d:pserver:anonymous@cvs.pyrite.org:/pyrite co pyrite-core
# cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/cheetahtemplate co Cheetah

# cd pyrite-blogauthor
# python setup.py install
# cd ..
# cd pyrite-core
# python setup.py install
# cd ..
# cd Cheetah
# python setup.py 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 <rob@pyrite.org>

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
    Hi,
    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\amazon_ws.py”, 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/amazon_ws.py
    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.
    François
    [email protected]

  2. not well formed XML ?
    I like to use pyrite with cmfweblog-0.6 but get following exception:
    [email protected]:~/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 (http://movabletype.org/)
    byline Byline (http://pyrite.org/)
    nucleus Nucleus (http://www.nucleuscms.org/)
    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 ?
    app(sys.argv[1:])
    File “/usr/lib/python2.2/site-packages/BlogAuthor/climain.py”, line 111, in __call__
    c(args)
    File “/usr/lib/python2.2/site-packages/BlogAuthor/cli/cli.py”, line 119, in __call__
    self.run(opt, args)
    File “/usr/lib/python2.2/site-packages/BlogAuthor/cli/account.py”, line 250, in run
    blogs = cms.listBlogs()
    File “/usr/lib/python2.2/site-packages/BlogAuthor/cms/blogger.py”, line 91, in listBlogs
    self.account.password):
    File “/usr/lib/python2.2/xmlrpclib.py”, line 821, in __call__
    return self.__send(self.__name, args)
    File “/usr/lib/python2.2/xmlrpclib.py”, line 975, in __request
    verbose=self.__verbose
    File “/usr/lib/python2.2/xmlrpclib.py”, line 853, in request
    return self.parse_response(h.getfile())
    File “/usr/lib/python2.2/xmlrpclib.py”, line 891, in parse_response
    p.feed(response)
    File “/usr/lib/python2.2/xmlrpclib.py”, 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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s