Anope IRC Services

Anope.org => Anope General => Topic started by: andreas on March 24, 2007, 08:44:01 PM

Title: ircservices import script
Post by: andreas on March 24, 2007, 08:44:01 PM
Just posting a script that could be helpful to someone moving to anope from  ircservices (http://www.ircservices.za.net/). It is written in python and takes an ircservices xml dump, converting it into sql statements than can populate an anope mysql database to be loaded with the UseRDB option
Title: requires pyxml
Post by: andreas on March 24, 2007, 09:16:12 PM
I should add that the script requires pyxml (http://pyxml.sourceforge.net/) to run.
Title:
Post by: G_E on July 22, 2007, 08:46:49 PM
hi,
i tried this script on debian etch with python2.4-libxml
but it dosn't work ...


Code: [Select]
Converting character references... Done.
Generating output...Traceback (most recent call last):
  File "./anope-import.py", line 775, in ?
    main()
  File "./anope-import.py", line 47, in main
    p.parse(tempname)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/drv_xmlproc.py", line 31, in parse
    self.parser.parse_resource(sysID)
  File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlutils.py", line 128, in parse_resource
    self.read_from(infile,bufsize)
  File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlutils.py", line 203, in read_from
    self.feed(buf)
  File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlutils.py", line 332, in feed
    self.do_parse()
  File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlproc.py", line 91, in do_parse
    self.parse_end_tag()
  File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/xmlproc.py", line 357, in parse_end_tag
    self.app.handle_end_tag(name)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/drv_xmlproc.py", line 77, in handle_end_tag
    self.doc_handler.endElement(name)
  File "./anope-import.py", line 421, in endElement
    self.parser.next()
  File "./anope-import.py", line 100, in parse
    raise Exception("unknown language: %s" % self.got_text)
Exception: unknown language: 0
Title:
Post by: NightStorm on April 07, 2008, 03:49:37 AM
I apologize for digging up an old topic, but this is essentially what I need... something that can import the user and channel database from ircservices xml to Anope SQL.
What is the command string I need to run in order to use this?  Has anyone been successful with it?  Or does anyone know of a different script/program I can use to move my users and channels over from ircservices to Anope?
Title: Re: ircservices import script
Post by: v2px on December 18, 2008, 08:58:19 AM
bump...
i'd like to hear some news about that script or any other ideas how i can migrate from ircservices
Title: Re: ircservices import script
Post by: xdr5tuzhrft on December 20, 2008, 05:49:01 PM
I need a working version of this script, too.
Does anybody know a method to convert the IRCServices database to Anope?

It's really important, please help if you know any conversion tool. I google'd but found nothing else. And this script isn't working anymore since the db layouts have changed.


Thanks.