User:Taragui/taxoconvert.py
Appearance
(Redirected from User:Taragui/taxoconv.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
# installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/lib/python2.3/site.pyc matches /usr/lib/python2.3/site.py import site # precompiled from /usr/lib/python2.3/site.pyc # /usr/lib/python2.3/os.pyc matches /usr/lib/python2.3/os.py import os # precompiled from /usr/lib/python2.3/os.pyc import posix # builtin # /usr/lib/python2.3/posixpath.pyc matches /usr/lib/python2.3/posixpath.py import posixpath # precompiled from /usr/lib/python2.3/posixpath.pyc # /usr/lib/python2.3/stat.pyc matches /usr/lib/python2.3/stat.py import stat # precompiled from /usr/lib/python2.3/stat.pyc # /usr/lib/python2.3/UserDict.pyc matches /usr/lib/python2.3/UserDict.py import UserDict # precompiled from /usr/lib/python2.3/UserDict.pyc # /usr/lib/python2.3/copy_reg.pyc matches /usr/lib/python2.3/copy_reg.py import copy_reg # precompiled from /usr/lib/python2.3/copy_reg.pyc # /usr/lib/python2.3/types.pyc matches /usr/lib/python2.3/types.py import types # precompiled from /usr/lib/python2.3/types.pyc # /usr/lib/python2.3/warnings.pyc matches /usr/lib/python2.3/warnings.py import warnings # precompiled from /usr/lib/python2.3/warnings.pyc # /usr/lib/python2.3/linecache.pyc matches /usr/lib/python2.3/linecache.py import linecache # precompiled from /usr/lib/python2.3/linecache.pyc import encodings # directory /usr/lib/python2.3/encodings # /usr/lib/python2.3/encodings/__init__.pyc matches /usr/lib/python2.3/encodings/__init__.py import encodings # precompiled from /usr/lib/python2.3/encodings/__init__.pyc # /usr/lib/python2.3/codecs.pyc matches /usr/lib/python2.3/codecs.py import codecs # precompiled from /usr/lib/python2.3/codecs.pyc import _codecs # builtin # /usr/lib/python2.3/encodings/aliases.pyc matches /usr/lib/python2.3/encodings/aliases.py import encodings.aliases # precompiled from /usr/lib/python2.3/encodings/aliases.pyc # /usr/lib/python2.3/encodings/iso8859_15.pyc matches /usr/lib/python2.3/encodings/iso8859_15.py 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. # /usr/lib/python2.3/getopt.pyc matches /usr/lib/python2.3/getopt.py import getopt # precompiled from /usr/lib/python2.3/getopt.pyc # /usr/lib/python2.3/pickle.pyc matches /usr/lib/python2.3/pickle.py 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 # /usr/lib/python2.3/re.pyc matches /usr/lib/python2.3/re.py import re # precompiled from /usr/lib/python2.3/re.pyc # /usr/lib/python2.3/sre.pyc matches /usr/lib/python2.3/sre.py import sre # precompiled from /usr/lib/python2.3/sre.pyc # /usr/lib/python2.3/sre_compile.pyc matches /usr/lib/python2.3/sre_compile.py import sre_compile # precompiled from /usr/lib/python2.3/sre_compile.pyc import _sre # builtin # /usr/lib/python2.3/sre_constants.pyc matches /usr/lib/python2.3/sre_constants.py import sre_constants # precompiled from /usr/lib/python2.3/sre_constants.pyc # /usr/lib/python2.3/sre_parse.pyc matches /usr/lib/python2.3/sre_parse.py import sre_parse # precompiled from /usr/lib/python2.3/sre_parse.pyc # /usr/lib/python2.3/string.pyc matches /usr/lib/python2.3/string.py 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 # /usr/lib/python2.3/tempfile.pyc matches /usr/lib/python2.3/tempfile.py import tempfile # precompiled from /usr/lib/python2.3/tempfile.pyc import errno # builtin # /usr/lib/python2.3/random.pyc matches /usr/lib/python2.3/random.py 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 # /home/alon/pywikipedia/wikipedia.pyc matches /home/alon/pywikipedia/wikipedia.py import wikipedia # precompiled from /home/alon/pywikipedia/wikipedia.pyc # /usr/lib/python2.3/__future__.pyc matches /usr/lib/python2.3/__future__.py import __future__ # precompiled from /usr/lib/python2.3/__future__.pyc # /usr/lib/python2.3/httplib.pyc matches /usr/lib/python2.3/httplib.py import httplib # precompiled from /usr/lib/python2.3/httplib.pyc # /usr/lib/python2.3/mimetools.pyc matches /usr/lib/python2.3/mimetools.py import mimetools # precompiled from /usr/lib/python2.3/mimetools.pyc # /usr/lib/python2.3/rfc822.pyc matches /usr/lib/python2.3/rfc822.py import rfc822 # precompiled from /usr/lib/python2.3/rfc822.pyc # /usr/lib/python2.3/socket.pyc matches /usr/lib/python2.3/socket.py 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 # /usr/lib/python2.3/urlparse.pyc matches /usr/lib/python2.3/urlparse.py import urlparse # precompiled from /usr/lib/python2.3/urlparse.pyc # /usr/lib/python2.3/urllib.pyc matches /usr/lib/python2.3/urllib.py import urllib # precompiled from /usr/lib/python2.3/urllib.pyc # /usr/lib/python2.3/traceback.pyc matches /usr/lib/python2.3/traceback.py import traceback # precompiled from /usr/lib/python2.3/traceback.pyc import md5 # dynamically loaded from /usr/lib/python2.3/lib-dynload/md5.so # /usr/lib/python2.3/difflib.pyc matches /usr/lib/python2.3/difflib.py import difflib # precompiled from /usr/lib/python2.3/difflib.pyc # /usr/lib/python2.3/locale.pyc matches /usr/lib/python2.3/locale.py 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 # /usr/lib/python2.3/xml/__init__.pyc matches /usr/lib/python2.3/xml/__init__.py import xml # precompiled from /usr/lib/python2.3/xml/__init__.pyc import xml.sax # directory /usr/lib/python2.3/xml/sax # /usr/lib/python2.3/xml/sax/__init__.pyc matches /usr/lib/python2.3/xml/sax/__init__.py import xml.sax # precompiled from /usr/lib/python2.3/xml/sax/__init__.pyc # /usr/lib/python2.3/xml/sax/xmlreader.pyc matches /usr/lib/python2.3/xml/sax/xmlreader.py import xml.sax.xmlreader # precompiled from /usr/lib/python2.3/xml/sax/xmlreader.pyc # /usr/lib/python2.3/xml/sax/handler.pyc matches /usr/lib/python2.3/xml/sax/handler.py import xml.sax.handler # precompiled from /usr/lib/python2.3/xml/sax/handler.pyc # /usr/lib/python2.3/xml/sax/_exceptions.pyc matches /usr/lib/python2.3/xml/sax/_exceptions.py import xml.sax._exceptions # precompiled from /usr/lib/python2.3/xml/sax/_exceptions.pyc # /usr/lib/python2.3/htmlentitydefs.pyc matches /usr/lib/python2.3/htmlentitydefs.py import htmlentitydefs # precompiled from /usr/lib/python2.3/htmlentitydefs.pyc # /home/alon/pywikipedia/config.pyc matches /home/alon/pywikipedia/config.py import config # precompiled from /home/alon/pywikipedia/config.pyc # /home/alon/pywikipedia/mediawiki_messages.pyc matches /home/alon/pywikipedia/mediawiki_messages.py import mediawiki_messages # precompiled from /home/alon/pywikipedia/mediawiki_messages.pyc # /home/alon/pywikipedia/login.pyc matches /home/alon/pywikipedia/login.py import login # precompiled from /home/alon/pywikipedia/login.pyc # /usr/lib/python2.3/getpass.pyc matches /usr/lib/python2.3/getpass.py import getpass # precompiled from /usr/lib/python2.3/getpass.pyc import termios # dynamically loaded from /usr/lib/python2.3/lib-dynload/termios.so # /usr/lib/python2.3/urllib2.pyc matches /usr/lib/python2.3/urllib2.py import urllib2 # precompiled from /usr/lib/python2.3/urllib2.pyc # /usr/lib/python2.3/base64.pyc matches /usr/lib/python2.3/base64.py import base64 # precompiled from /usr/lib/python2.3/base64.pyc # /usr/lib/python2.3/ftplib.pyc matches /usr/lib/python2.3/ftplib.py import ftplib # precompiled from /usr/lib/python2.3/ftplib.pyc # /usr/lib/python2.3/gopherlib.pyc matches /usr/lib/python2.3/gopherlib.py import gopherlib # precompiled from /usr/lib/python2.3/gopherlib.pyc # /usr/lib/python2.3/inspect.pyc matches /usr/lib/python2.3/inspect.py import inspect # precompiled from /usr/lib/python2.3/inspect.pyc # /usr/lib/python2.3/dis.pyc matches /usr/lib/python2.3/dis.py import dis # precompiled from /usr/lib/python2.3/dis.pyc # /usr/lib/python2.3/opcode.pyc matches /usr/lib/python2.3/opcode.py import opcode # precompiled from /usr/lib/python2.3/opcode.pyc import imp # builtin # /usr/lib/python2.3/tokenize.pyc matches /usr/lib/python2.3/tokenize.py import tokenize # precompiled from /usr/lib/python2.3/tokenize.pyc # /usr/lib/python2.3/token.pyc matches /usr/lib/python2.3/token.py import token # precompiled from /usr/lib/python2.3/token.pyc # /usr/lib/python2.3/mimetypes.pyc matches /usr/lib/python2.3/mimetypes.py import mimetypes # precompiled from /usr/lib/python2.3/mimetypes.pyc import sha # dynamically loaded from /usr/lib/python2.3/lib-dynload/sha.so # /home/alon/pywikipedia/xmlreader.pyc matches /home/alon/pywikipedia/xmlreader.py import xmlreader # precompiled from /home/alon/pywikipedia/xmlreader.pyc # /usr/lib/python2.3/threading.pyc matches /usr/lib/python2.3/threading.py import threading # precompiled from /usr/lib/python2.3/threading.pyc # /usr/lib/python2.3/StringIO.pyc matches /usr/lib/python2.3/StringIO.py import StringIO # precompiled from /usr/lib/python2.3/StringIO.pyc # /usr/lib/python2.3/atexit.pyc matches /usr/lib/python2.3/atexit.py import atexit # precompiled from /usr/lib/python2.3/atexit.pyc # /usr/lib/python2.3/sets.pyc matches /usr/lib/python2.3/sets.py import sets # precompiled from /usr/lib/python2.3/sets.pyc import itertools # dynamically loaded from /usr/lib/python2.3/lib-dynload/itertools.so # userinterfaces/terminal_interface.pyc matches userinterfaces/terminal_interface.py import terminal_interface # precompiled from userinterfaces/terminal_interface.pyc # families/wikipedia_family.pyc matches families/wikipedia_family.py import wikipedia_family # precompiled from families/wikipedia_family.pyc # /home/alon/pywikipedia/family.pyc matches /home/alon/pywikipedia/family.py 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 # clear __builtin__._ # clear sys.path # clear sys.argv # clear sys.ps1 # clear sys.ps2 # clear sys.exitfunc # clear sys.exc_type # clear sys.exc_value # clear sys.exc_traceback # clear sys.last_type # clear sys.last_value # clear sys.last_traceback # clear sys.path_hooks # clear sys.path_importer_cache # clear sys.meta_path # restore sys.stdin # restore sys.stdout # restore sys.stderr # cleanup __main__ # cleanup[1] wikipedia_family # cleanup[1] zipimport # cleanup[1] signal # cleanup[1] token # cleanup[1] cStringIO # cleanup[1] atexit # cleanup[1] encodings # cleanup[1] _locale # cleanup[1] sre # cleanup[1] itertools # cleanup[1] opcode # cleanup[1] sre_parse # cleanup[1] __future__ # cleanup[1] family # cleanup[1] sre_constants # cleanup[1] _codecs # cleanup[1] encodings.iso8859_15 # cleanup[1] StringIO # cleanup[1] posix # cleanup[1] encodings.aliases # cleanup[1] exceptions # cleanup[1] sre_compile # cleanup[1] site # cleanup[1] strop # cleanup[1] getopt # cleanup[1] sets # cleanup[1] _sre # cleanup[2] random # cleanup[2] xml # cleanup[2] struct # cleanup[2] tempfile # cleanup[2] base64 # cleanup[2] imp # cleanup[2] gopherlib # cleanup[2] string # cleanup[2] httplib # cleanup[2] xmlreader # cleanup[2] sha # cleanup[2] dis # cleanup[2] locale # cleanup[2] mimetypes # cleanup[2] threading # cleanup[2] warnings # cleanup[2] wikipedia # cleanup[2] urllib # cleanup[2] re # cleanup[2] mediawiki_messages # cleanup[2] math # cleanup[2] fcntl # cleanup[2] ftplib # cleanup[2] UserDict # cleanup[2] inspect # cleanup[2] codecs # cleanup[2] md5 # cleanup[2] socket # cleanup[2] thread # cleanup[2] traceback # cleanup[2] login # cleanup[2] os # cleanup[2] marshal # cleanup[2] xml.sax.xmlreader # cleanup[2] terminal_interface # cleanup[2] posixpath # cleanup[2] errno # cleanup[2] _socket # cleanup[2] binascii # cleanup[2] xml.sax.handler # cleanup[2] types # cleanup[2] tokenize # cleanup[2] termios # cleanup[2] xml.sax._exceptions # cleanup[2] pickle # cleanup[2] mimetools # cleanup[2] copy_reg # cleanup[2] xml.sax # cleanup[2] _random # cleanup[2] getpass # cleanup[2] config # cleanup[2] stat # cleanup[2] _ssl # cleanup[2] rfc822 # cleanup[2] htmlentitydefs # cleanup[2] urllib2 # cleanup[2] os.path # cleanup[2] difflib # cleanup[2] urlparse # cleanup[2] linecache # cleanup[2] time # cleanup sys # cleanup __builtin__ # cleanup ints: 48 unfreed ints in 3 out of 15 blocks # cleanup floats: 36 unfreed floats in 1 out of 1 block