User:Taragui/taxoconvert.py

python taxoconvert.py Lagomorpha Checked for running processes. 1 processes currently running, including the current process. Traceback (most recent call last): File "taxoconvert.py", line 573, in ? main File "taxoconvert.py", line 553, in main tb = wikipedia.Page(site, reload) File "/home/alon/pywikipedia/wikipedia.py", line 217, in __init__ t = html2unicode(title) File "/home/alon/pywikipedia/wikipedia.py", line 2219, in html2unicode text = text[i:] TypeError: unsubscriptable object

python -v taxoconvert.py Lagomorpha import zipimport # builtin import site # precompiled from /usr/lib/python2.3/site.pyc import os # precompiled from /usr/lib/python2.3/os.pyc import posix # builtin import posixpath # precompiled from /usr/lib/python2.3/posixpath.pyc import stat # precompiled from /usr/lib/python2.3/stat.pyc import UserDict # precompiled from /usr/lib/python2.3/UserDict.pyc import copy_reg # precompiled from /usr/lib/python2.3/copy_reg.pyc import types # precompiled from /usr/lib/python2.3/types.pyc import warnings # precompiled from /usr/lib/python2.3/warnings.pyc import linecache # precompiled from /usr/lib/python2.3/linecache.pyc import encodings # directory /usr/lib/python2.3/encodings import encodings # precompiled from /usr/lib/python2.3/encodings/__init__.pyc import codecs # precompiled from /usr/lib/python2.3/codecs.pyc import _codecs # builtin import encodings.aliases # precompiled from /usr/lib/python2.3/encodings/aliases.pyc import encodings.iso8859_15 # precompiled from /usr/lib/python2.3/encodings/iso8859_15.pyc Python 2.3.5 (#2, Nov 20 2005, 16:40:39) [GCC 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. import getopt # precompiled from /usr/lib/python2.3/getopt.pyc import pickle # precompiled from /usr/lib/python2.3/pickle.pyc import marshal # builtin import struct # dynamically loaded from /usr/lib/python2.3/lib-dynload/struct.so import re # precompiled from /usr/lib/python2.3/re.pyc import sre # precompiled from /usr/lib/python2.3/sre.pyc import sre_compile # precompiled from /usr/lib/python2.3/sre_compile.pyc import _sre # builtin import sre_constants # precompiled from /usr/lib/python2.3/sre_constants.pyc import sre_parse # precompiled from /usr/lib/python2.3/sre_parse.pyc import string # precompiled from /usr/lib/python2.3/string.pyc import strop # dynamically loaded from /usr/lib/python2.3/lib-dynload/strop.so import binascii # dynamically loaded from /usr/lib/python2.3/lib-dynload/binascii.so import cStringIO # dynamically loaded from /usr/lib/python2.3/lib-dynload/cStringIO.so import tempfile # precompiled from /usr/lib/python2.3/tempfile.pyc import errno # builtin import random # precompiled from /usr/lib/python2.3/random.pyc import math # dynamically loaded from /usr/lib/python2.3/lib-dynload/math.so import _random # dynamically loaded from /usr/lib/python2.3/lib-dynload/_random.so import time # dynamically loaded from /usr/lib/python2.3/lib-dynload/time.so import fcntl # dynamically loaded from /usr/lib/python2.3/lib-dynload/fcntl.so import thread # builtin import wikipedia # precompiled from /home/alon/pywikipedia/wikipedia.pyc import __future__ # precompiled from /usr/lib/python2.3/__future__.pyc import httplib # precompiled from /usr/lib/python2.3/httplib.pyc import mimetools # precompiled from /usr/lib/python2.3/mimetools.pyc import rfc822 # precompiled from /usr/lib/python2.3/rfc822.pyc import socket # precompiled from /usr/lib/python2.3/socket.pyc import _socket # dynamically loaded from /usr/lib/python2.3/lib-dynload/_socket.so import _ssl # dynamically loaded from /usr/lib/python2.3/lib-dynload/_ssl.so import urlparse # precompiled from /usr/lib/python2.3/urlparse.pyc import urllib # precompiled from /usr/lib/python2.3/urllib.pyc import traceback # precompiled from /usr/lib/python2.3/traceback.pyc import md5 # dynamically loaded from /usr/lib/python2.3/lib-dynload/md5.so import difflib # precompiled from /usr/lib/python2.3/difflib.pyc import locale # precompiled from /usr/lib/python2.3/locale.pyc import _locale # dynamically loaded from /usr/lib/python2.3/lib-dynload/_locale.so import xml # directory /usr/lib/python2.3/xml import xml # precompiled from /usr/lib/python2.3/xml/__init__.pyc import xml.sax # directory /usr/lib/python2.3/xml/sax import xml.sax # precompiled from /usr/lib/python2.3/xml/sax/__init__.pyc import xml.sax.xmlreader # precompiled from /usr/lib/python2.3/xml/sax/xmlreader.pyc import xml.sax.handler # precompiled from /usr/lib/python2.3/xml/sax/handler.pyc import xml.sax._exceptions # precompiled from /usr/lib/python2.3/xml/sax/_exceptions.pyc import htmlentitydefs # precompiled from /usr/lib/python2.3/htmlentitydefs.pyc import config # precompiled from /home/alon/pywikipedia/config.pyc import mediawiki_messages # precompiled from /home/alon/pywikipedia/mediawiki_messages.pyc import login # precompiled from /home/alon/pywikipedia/login.pyc import getpass # precompiled from /usr/lib/python2.3/getpass.pyc import termios # dynamically loaded from /usr/lib/python2.3/lib-dynload/termios.so import urllib2 # precompiled from /usr/lib/python2.3/urllib2.pyc import base64 # precompiled from /usr/lib/python2.3/base64.pyc import ftplib # precompiled from /usr/lib/python2.3/ftplib.pyc import gopherlib # precompiled from /usr/lib/python2.3/gopherlib.pyc import inspect # precompiled from /usr/lib/python2.3/inspect.pyc import dis # precompiled from /usr/lib/python2.3/dis.pyc import opcode # precompiled from /usr/lib/python2.3/opcode.pyc import imp # builtin import tokenize # precompiled from /usr/lib/python2.3/tokenize.pyc import token # precompiled from /usr/lib/python2.3/token.pyc import mimetypes # precompiled from /usr/lib/python2.3/mimetypes.pyc import sha # dynamically loaded from /usr/lib/python2.3/lib-dynload/sha.so import xmlreader # precompiled from /home/alon/pywikipedia/xmlreader.pyc import threading # precompiled from /usr/lib/python2.3/threading.pyc import StringIO # precompiled from /usr/lib/python2.3/StringIO.pyc import atexit # precompiled from /usr/lib/python2.3/atexit.pyc import sets # precompiled from /usr/lib/python2.3/sets.pyc import itertools # dynamically loaded from /usr/lib/python2.3/lib-dynload/itertools.so import terminal_interface # precompiled from userinterfaces/terminal_interface.pyc import wikipedia_family # precompiled from families/wikipedia_family.pyc import family # precompiled from /home/alon/pywikipedia/family.pyc dlopen("/usr/lib/python2.3/lib-dynload/struct.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/strop.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/binascii.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/cStringIO.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/math.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/_random.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/time.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/fcntl.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/_socket.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/_ssl.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/md5.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/_locale.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/termios.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/sha.so", 2); dlopen("/usr/lib/python2.3/lib-dynload/itertools.so", 2); Checked for running processes. 1 processes currently running, including the current process. Traceback (most recent call last): File "taxoconvert.py", line 573, in ? main File "taxoconvert.py", line 553, in main tb = wikipedia.Page(site, reload) File "/home/alon/pywikipedia/wikipedia.py", line 217, in __init__ t = html2unicode(title) File "/home/alon/pywikipedia/wikipedia.py", line 2219, in html2unicode text = text[i:] TypeError: unsubscriptable object
 * 1) installing zipimport hook
 * 1) installed zipimport hook
 * 2) /usr/lib/python2.3/site.pyc matches /usr/lib/python2.3/site.py
 * 1) /usr/lib/python2.3/os.pyc matches /usr/lib/python2.3/os.py
 * 1) /usr/lib/python2.3/posixpath.pyc matches /usr/lib/python2.3/posixpath.py
 * 1) /usr/lib/python2.3/stat.pyc matches /usr/lib/python2.3/stat.py
 * 1) /usr/lib/python2.3/UserDict.pyc matches /usr/lib/python2.3/UserDict.py
 * 1) /usr/lib/python2.3/copy_reg.pyc matches /usr/lib/python2.3/copy_reg.py
 * 1) /usr/lib/python2.3/types.pyc matches /usr/lib/python2.3/types.py
 * 1) /usr/lib/python2.3/warnings.pyc matches /usr/lib/python2.3/warnings.py
 * 1) /usr/lib/python2.3/linecache.pyc matches /usr/lib/python2.3/linecache.py
 * 1) /usr/lib/python2.3/encodings/__init__.pyc matches /usr/lib/python2.3/encodings/__init__.py
 * 1) /usr/lib/python2.3/codecs.pyc matches /usr/lib/python2.3/codecs.py
 * 1) /usr/lib/python2.3/encodings/aliases.pyc matches /usr/lib/python2.3/encodings/aliases.py
 * 1) /usr/lib/python2.3/encodings/iso8859_15.pyc matches /usr/lib/python2.3/encodings/iso8859_15.py
 * 1) /usr/lib/python2.3/getopt.pyc matches /usr/lib/python2.3/getopt.py
 * 1) /usr/lib/python2.3/pickle.pyc matches /usr/lib/python2.3/pickle.py
 * 1) /usr/lib/python2.3/re.pyc matches /usr/lib/python2.3/re.py
 * 1) /usr/lib/python2.3/sre.pyc matches /usr/lib/python2.3/sre.py
 * 1) /usr/lib/python2.3/sre_compile.pyc matches /usr/lib/python2.3/sre_compile.py
 * 1) /usr/lib/python2.3/sre_constants.pyc matches /usr/lib/python2.3/sre_constants.py
 * 1) /usr/lib/python2.3/sre_parse.pyc matches /usr/lib/python2.3/sre_parse.py
 * 1) /usr/lib/python2.3/string.pyc matches /usr/lib/python2.3/string.py
 * 1) /usr/lib/python2.3/tempfile.pyc matches /usr/lib/python2.3/tempfile.py
 * 1) /usr/lib/python2.3/random.pyc matches /usr/lib/python2.3/random.py
 * 1) /home/alon/pywikipedia/wikipedia.pyc matches /home/alon/pywikipedia/wikipedia.py
 * 1) /usr/lib/python2.3/__future__.pyc matches /usr/lib/python2.3/__future__.py
 * 1) /usr/lib/python2.3/httplib.pyc matches /usr/lib/python2.3/httplib.py
 * 1) /usr/lib/python2.3/mimetools.pyc matches /usr/lib/python2.3/mimetools.py
 * 1) /usr/lib/python2.3/rfc822.pyc matches /usr/lib/python2.3/rfc822.py
 * 1) /usr/lib/python2.3/socket.pyc matches /usr/lib/python2.3/socket.py
 * 1) /usr/lib/python2.3/urlparse.pyc matches /usr/lib/python2.3/urlparse.py
 * 1) /usr/lib/python2.3/urllib.pyc matches /usr/lib/python2.3/urllib.py
 * 1) /usr/lib/python2.3/traceback.pyc matches /usr/lib/python2.3/traceback.py
 * 1) /usr/lib/python2.3/difflib.pyc matches /usr/lib/python2.3/difflib.py
 * 1) /usr/lib/python2.3/locale.pyc matches /usr/lib/python2.3/locale.py
 * 1) /usr/lib/python2.3/xml/__init__.pyc matches /usr/lib/python2.3/xml/__init__.py
 * 1) /usr/lib/python2.3/xml/sax/__init__.pyc matches /usr/lib/python2.3/xml/sax/__init__.py
 * 1) /usr/lib/python2.3/xml/sax/xmlreader.pyc matches /usr/lib/python2.3/xml/sax/xmlreader.py
 * 1) /usr/lib/python2.3/xml/sax/handler.pyc matches /usr/lib/python2.3/xml/sax/handler.py
 * 1) /usr/lib/python2.3/xml/sax/_exceptions.pyc matches /usr/lib/python2.3/xml/sax/_exceptions.py
 * 1) /usr/lib/python2.3/htmlentitydefs.pyc matches /usr/lib/python2.3/htmlentitydefs.py
 * 1) /home/alon/pywikipedia/config.pyc matches /home/alon/pywikipedia/config.py
 * 1) /home/alon/pywikipedia/mediawiki_messages.pyc matches /home/alon/pywikipedia/mediawiki_messages.py
 * 1) /home/alon/pywikipedia/login.pyc matches /home/alon/pywikipedia/login.py
 * 1) /usr/lib/python2.3/getpass.pyc matches /usr/lib/python2.3/getpass.py
 * 1) /usr/lib/python2.3/urllib2.pyc matches /usr/lib/python2.3/urllib2.py
 * 1) /usr/lib/python2.3/base64.pyc matches /usr/lib/python2.3/base64.py
 * 1) /usr/lib/python2.3/ftplib.pyc matches /usr/lib/python2.3/ftplib.py
 * 1) /usr/lib/python2.3/gopherlib.pyc matches /usr/lib/python2.3/gopherlib.py
 * 1) /usr/lib/python2.3/inspect.pyc matches /usr/lib/python2.3/inspect.py
 * 1) /usr/lib/python2.3/dis.pyc matches /usr/lib/python2.3/dis.py
 * 1) /usr/lib/python2.3/opcode.pyc matches /usr/lib/python2.3/opcode.py
 * 1) /usr/lib/python2.3/tokenize.pyc matches /usr/lib/python2.3/tokenize.py
 * 1) /usr/lib/python2.3/token.pyc matches /usr/lib/python2.3/token.py
 * 1) /usr/lib/python2.3/mimetypes.pyc matches /usr/lib/python2.3/mimetypes.py
 * 1) /home/alon/pywikipedia/xmlreader.pyc matches /home/alon/pywikipedia/xmlreader.py
 * 1) /usr/lib/python2.3/threading.pyc matches /usr/lib/python2.3/threading.py
 * 1) /usr/lib/python2.3/StringIO.pyc matches /usr/lib/python2.3/StringIO.py
 * 1) /usr/lib/python2.3/atexit.pyc matches /usr/lib/python2.3/atexit.py
 * 1) /usr/lib/python2.3/sets.pyc matches /usr/lib/python2.3/sets.py
 * 1) userinterfaces/terminal_interface.pyc matches userinterfaces/terminal_interface.py
 * 1) families/wikipedia_family.pyc matches families/wikipedia_family.py
 * 1) /home/alon/pywikipedia/family.pyc matches /home/alon/pywikipedia/family.py
 * 1) clear __builtin__._
 * 2) clear sys.path
 * 3) clear sys.argv
 * 4) clear sys.ps1
 * 5) clear sys.ps2
 * 6) clear sys.exitfunc
 * 7) clear sys.exc_type
 * 8) clear sys.exc_value
 * 9) clear sys.exc_traceback
 * 10) clear sys.last_type
 * 11) clear sys.last_value
 * 12) clear sys.last_traceback
 * 13) clear sys.path_hooks
 * 14) clear sys.path_importer_cache
 * 15) clear sys.meta_path
 * 16) restore sys.stdin
 * 17) restore sys.stdout
 * 18) restore sys.stderr
 * 19) cleanup __main__
 * 20) cleanup[1] wikipedia_family
 * 21) cleanup[1] zipimport
 * 22) cleanup[1] signal
 * 23) cleanup[1] token
 * 24) cleanup[1] cStringIO
 * 25) cleanup[1] atexit
 * 26) cleanup[1] encodings
 * 27) cleanup[1] _locale
 * 28) cleanup[1] sre
 * 29) cleanup[1] itertools
 * 30) cleanup[1] opcode
 * 31) cleanup[1] sre_parse
 * 32) cleanup[1] __future__
 * 33) cleanup[1] family
 * 34) cleanup[1] sre_constants
 * 35) cleanup[1] _codecs
 * 36) cleanup[1] encodings.iso8859_15
 * 37) cleanup[1] StringIO
 * 38) cleanup[1] posix
 * 39) cleanup[1] encodings.aliases
 * 40) cleanup[1] exceptions
 * 41) cleanup[1] sre_compile
 * 42) cleanup[1] site
 * 43) cleanup[1] strop
 * 44) cleanup[1] getopt
 * 45) cleanup[1] sets
 * 46) cleanup[1] _sre
 * 47) cleanup[2] random
 * 48) cleanup[2] xml
 * 49) cleanup[2] struct
 * 50) cleanup[2] tempfile
 * 51) cleanup[2] base64
 * 52) cleanup[2] imp
 * 53) cleanup[2] gopherlib
 * 54) cleanup[2] string
 * 55) cleanup[2] httplib
 * 56) cleanup[2] xmlreader
 * 57) cleanup[2] sha
 * 58) cleanup[2] dis
 * 59) cleanup[2] locale
 * 60) cleanup[2] mimetypes
 * 61) cleanup[2] threading
 * 62) cleanup[2] warnings
 * 63) cleanup[2] wikipedia
 * 64) cleanup[2] urllib
 * 65) cleanup[2] re
 * 66) cleanup[2] mediawiki_messages
 * 67) cleanup[2] math
 * 68) cleanup[2] fcntl
 * 69) cleanup[2] ftplib
 * 70) cleanup[2] UserDict
 * 71) cleanup[2] inspect
 * 72) cleanup[2] codecs
 * 73) cleanup[2] md5
 * 74) cleanup[2] socket
 * 75) cleanup[2] thread
 * 76) cleanup[2] traceback
 * 77) cleanup[2] login
 * 78) cleanup[2] os
 * 79) cleanup[2] marshal
 * 80) cleanup[2] xml.sax.xmlreader
 * 81) cleanup[2] terminal_interface
 * 82) cleanup[2] posixpath
 * 83) cleanup[2] errno
 * 84) cleanup[2] _socket
 * 85) cleanup[2] binascii
 * 86) cleanup[2] xml.sax.handler
 * 87) cleanup[2] types
 * 88) cleanup[2] tokenize
 * 89) cleanup[2] termios
 * 90) cleanup[2] xml.sax._exceptions
 * 91) cleanup[2] pickle
 * 92) cleanup[2] mimetools
 * 93) cleanup[2] copy_reg
 * 94) cleanup[2] xml.sax
 * 95) cleanup[2] _random
 * 96) cleanup[2] getpass
 * 97) cleanup[2] config
 * 98) cleanup[2] stat
 * 99) cleanup[2] _ssl
 * 100) cleanup[2] rfc822
 * 101) cleanup[2] htmlentitydefs
 * 102) cleanup[2] urllib2
 * 103) cleanup[2] os.path
 * 104) cleanup[2] difflib
 * 105) cleanup[2] urlparse
 * 106) cleanup[2] linecache
 * 107) cleanup[2] time
 * 108) cleanup sys
 * 109) cleanup __builtin__
 * 110) cleanup ints: 48 unfreed ints in 3 out of 15 blocks
 * 111) cleanup floats: 36 unfreed floats in 1 out of 1 block