-->
--> -->
<type 'exceptions.IOError'> | Python 2.5.2: /usr/bin/python Thu May 17 09:18:06 2012 |
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /home/wikier/linkedmarkmail.wikier.org/service.py in () |
86 data = lmm.get_message(i)
|
87 elif (t == "thread"):
|
88 data = lmm.get_thread(i)
|
89 else:
|
90 invalid_input_error()
|
| data = None, lmm = <linkedmarkmail.LinkedMarkMail instance at 0xc0a950>, lmm.get_thread = <bound method LinkedMarkMail.get_thread of <linkedmarkmail.LinkedMarkMail instance at 0xc0a950>>, i = 'dcue2bsyrsgbzsd5' |
| /home/wikier/linkedmarkmail.wikier.org/linkedmarkmail.py in get_thread(self=<linkedmarkmail.LinkedMarkMail instance at 0xc0a950>, key='dcue2bsyrsgbzsd5') |
74 triples = len(siocThread)
|
75 if (self.cache.is_dirty(siocThread)):
|
76 self.cache.update(siocThread)
|
77 logging.info("Updated cache of thread %s (%d triples)" % (key, triples))
|
78 logging.info("Returning %d triples of thread %s" % (triples, key))
|
| self = <linkedmarkmail.LinkedMarkMail instance at 0xc0a950>, self.cache = <cache.Cache instance at 0xc4e950>, self.cache.update = <bound method Cache.update of <cache.Cache instance at 0xc4e950>>, siocThread = <swaml.Thread instance at 0xc50638> |
| /home/wikier/linkedmarkmail.wikier.org/cache.py in update(self=<cache.Cache instance at 0xc4e950>, item=<swaml.Thread instance at 0xc50638>, force=True) |
79 def update(self, item, force=True):
|
80 if (force):
|
81 self.write(item)
|
82 return True
|
83 else:
|
| self = <cache.Cache instance at 0xc4e950>, self.write = <bound method Cache.write of <cache.Cache instance at 0xc4e950>>, item = <swaml.Thread instance at 0xc50638> |
| /home/wikier/linkedmarkmail.wikier.org/cache.py in write(self=<cache.Cache instance at 0xc4e950>, item=<swaml.Thread instance at 0xc50638>) |
75 path = self.__build_path(item.get_key(), item.__class__)
|
76 graph = item.get_graph()
|
77 serialize_graph_file(graph, path)
|
78
|
79 def update(self, item, force=True):
|
| global serialize_graph_file = <function serialize_graph_file at 0xc7b7d0>, graph = <Graph identifier=uRXXHQhW0 (<class 'rdflib.graph.ConjunctiveGraph'>)>, path = 'cache/thread-dcue2bsyrsgbzsd5.rdf' |
| /home/wikier/linkedmarkmail.wikier.org/utils.py in serialize_graph_file(graph=<Graph identifier=uRXXHQhW0 (<class 'rdflib.graph.ConjunctiveGraph'>)>, path='cache/thread-dcue2bsyrsgbzsd5.rdf', format='pretty-xml', encoding='utf8') |
53
|
54 def serialize_graph_file(graph, path, format="pretty-xml", encoding="utf8"):
|
55 f = open(path, "w")
|
56 graph.serialize(destination=f, format=format, encoding=encoding)
|
57 f.flush()
|
| f undefined, builtin open = <built-in function open>, path = 'cache/thread-dcue2bsyrsgbzsd5.rdf' |
<type 'exceptions.IOError'>: [Errno 2] No such file or directory: 'cache/thread-dcue2bsyrsgbzsd5.rdf'
args =
(2, 'No such file or directory')
errno =
2
filename =
'cache/thread-dcue2bsyrsgbzsd5.rdf'
message =
''
strerror =
'No such file or directory'