Heya Andrew -- this is pretty odd. Do you use irc much? Could you pop
into irc://chat.freenode.net/code4lib and maybe we can try to trouble
shoot it on there?
//Ed
On Sun, Feb 24, 2008 at 2:17 PM, Andrew Hankinson
<[log in to unmask]> wrote:
> Hi folks,
>
> I'm wondering if someone can give me a hand with getting MarcDB running.
>
> I'm trying this with Python 2.5, SQLAlchemy 0.3-svn, and the latest
> versions of pymarc & marcdb. I've tried it on both OS X (Leopard &
> Tiger) and FreeBSD 7 RC1, with the same results. I'm also using
> Postgres 8.2.6 as the database backend, but I've also tried this with
> MySQL & Sqlite3.
>
> When I run 'marcdb create postgres://username:password@localhost/
> database', the command does not return an error, but does nothing to
> the database. (it exists, with no tables)
>
> Afterwards, I run 'marcdb load-xml marc-xml-file.xml postgres://
> username:password@localhost/database' and it gives this error:
>
> 1
> Traceback (most recent call last):
> File "/usr/local/bin/marcdb", line 5, in <module>
> pkg_resources.run_script('marcdb==0.6', 'marcdb')
> File "build/bdist.linux-i686/egg/pkg_resources.py", line 448, in
> run_script
> File "build/bdist.linux-i686/egg/pkg_resources.py", line 1173, in
> run_script
> File "/usr/local/bin/marcdb", line 32, in <module>
>
> File "build/bdist.freebsd-7.0-RC1-i386/egg/marcdb/loader.py", line
> 13, in load_xml
> File "build/bdist.freebsd-7.0-RC1-i386/egg/pymarc/marcxml.py", line
> 75, in parse_xml
> File "/usr/local/lib/python2.5/xml/sax/expatreader.py", line 107,
> in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/usr/local/lib/python2.5/xml/sax/xmlreader.py", line 123, in
> parse
> self.feed(buffer)
> File "/usr/local/lib/python2.5/xml/sax/expatreader.py", line 207,
> in feed
> self._parser.Parse(data, isFinal)
> File "/usr/local/lib/python2.5/xml/sax/expatreader.py", line 349,
> in end_element_ns
> self._cont_handler.endElementNS(pair, None)
> File "build/bdist.freebsd-7.0-RC1-i386/egg/pymarc/marcxml.py", line
> 44, in endElementNS
> File "build/bdist.freebsd-7.0-RC1-i386/egg/marcdb/loader.py", line
> 47, in process_record
> AttributeError: 'Record' object has no attribute 'control_fields'
>
> Any thoughts on what might be causing this error? If it's worth
> mentioning, I'm trying to load Simon Spiro's name authority records
> into a database.
>
> Thanks in advance,
> Andrew
>
|