Hey Ed,

Sure thing!  Although I suspect it's a bit late tonight, and you're
all out partying in Portland!  ;)

I'll pop in tomorrow.

Thanks again,
Andrew

On 25-Feb-08, at 10:33 AM, Ed Summers wrote:

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
<[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]/
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:[EMAIL PROTECTED]/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

Reply via email to