Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: ircservices import script  (Read 10429 times)

0 Members and 1 Guest are viewing this topic.

andreas

  • Guest
ircservices import script
« on: March 24, 2007, 08:44:01 PM »

Just posting a script that could be helpful to someone moving to anope from  ircservices. 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
Logged

andreas

  • Guest
requires pyxml
« Reply #1 on: March 24, 2007, 09:16:12 PM »

I should add that the script requires pyxml to run.
Logged

G_E

  • Guest
(No subject)
« Reply #2 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
Logged

NightStorm

  • Anope User
  • Offline Offline
  • Posts: 1
    • http://www.killanet.net
(No subject)
« Reply #3 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?
Logged

v2px

  • Anope User
  • Offline Offline
  • Posts: 1
Re: ircservices import script
« Reply #4 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
Logged

xdr5tuzhrft

  • Anope User
  • Offline Offline
  • Posts: 1
Re: ircservices import script
« Reply #5 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.
Logged
Pages: [1]   Go Up