Modify

Opened 9 years ago

Closed 4 years ago

#12429 closed defect (worksforme)

WindowsError: [Error 183] Cannot create a file when that file already exists: u'c:\\trac\\gvcache'

Reported by: anonymous Owned by: Christian Boos
Priority: normal Component: GraphvizPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

Traceback (most recent call last):
  File "build\bdist.win32\egg\trac\web\main.py", line 551, in _dispatch_request
    dispatcher.dispatch(req)
  File "build\bdist.win32\egg\trac\web\main.py", line 245, in dispatch
    method=method)
  File "build\bdist.win32\egg\trac\web\chrome.py", line 1110, in render_template
    encoding='utf-8')
  File "build\bdist.win32\egg\genshi\core.py", line 183, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "build\bdist.win32\egg\genshi\output.py", line 58, in encode
    for chunk in iterator:
  File "build\bdist.win32\egg\genshi\output.py", line 339, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 826, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 670, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 771, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "build\bdist.win32\egg\genshi\output.py", line 586, in __call__
    for ev in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 288, in _ensure
    for event in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 288, in _ensure
    for event in stream:
  File "build\bdist.win32\egg\trac\web\chrome.py", line 1293, in _strip_accesskeys
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 288, in _ensure
    for event in stream:
  File "build\bdist.win32\egg\trac\web\chrome.py", line 1282, in _generate
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 288, in _ensure
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\base.py", line 605, in _include
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
  File "build\bdist.win32\egg\genshi\template\markup.py", line 378, in _match
    ctxt, start=idx + 1, **vars):
  File "build\bdist.win32\egg\genshi\template\markup.py", line 327, in _match
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\base.py", line 545, in _flatten
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 288, in _ensure
    for event in stream:
  File "build\bdist.win32\egg\genshi\path.py", line 588, in _generate
    subevent = next()
  File "build\bdist.win32\egg\genshi\template\base.py", line 605, in _include
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\markup.py", line 316, in _strip
    event = next()
  File "build\bdist.win32\egg\genshi\template\base.py", line 545, in _flatten
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\core.py", line 288, in _ensure
    for event in stream:
  File "build\bdist.win32\egg\genshi\path.py", line 588, in _generate
    subevent = next()
  File "build\bdist.win32\egg\genshi\template\base.py", line 605, in _include
    for event in stream:
  File "build\bdist.win32\egg\genshi\template\markup.py", line 316, in _strip
    event = next()
  File "build\bdist.win32\egg\genshi\template\base.py", line 565, in _flatten
    result = _eval_expr(data, ctxt, vars)
  File "build\bdist.win32\egg\genshi\template\base.py", line 277, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "build\bdist.win32\egg\genshi\template\eval.py", line 178, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "c:\Trac\.egg-cache\trac-1.1.5dev-py2.7.egg-tmp\trac\wiki\templates\wiki_view.html", line 58, in <Expression u'wiki_to_html(context, text)'>
    <div id="wikipage" class="trac-content" py:content="wiki_to_html(context, text)" />
  File "build\bdist.win32\egg\trac\wiki\formatter.py", line 1580, in format_to_html
    return HtmlFormatter(env, context, wikidom).generate(escape_newlines)
  File "build\bdist.win32\egg\trac\wiki\formatter.py", line 1535, in generate
    escape_newlines)
  File "build\bdist.win32\egg\trac\wiki\formatter.py", line 1317, in format
    result = re.sub(self.wikiparser.rules, self.replace, line)
  File "C:\Python27\Lib\re.py", line 155, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "build\bdist.win32\egg\trac\wiki\formatter.py", line 1235, in replace
    replacement = self.handle_match(fullmatch)
  File "build\bdist.win32\egg\trac\wiki\formatter.py", line 1231, in handle_match
    return internal_handler(match, fullmatch)
  File "build\bdist.win32\egg\trac\wiki\formatter.py", line 775, in _macrolink_formatter
    macro = WikiProcessor(self, (name, name[:-1])[macrolist])
  File "build\bdist.win32\egg\trac\wiki\formatter.py", line 165, in __init__
    for macro_name in macro_provider.get_macros() or []:
  File "build\bdist.win32\egg\graphviz\graphviz.py", line 223, in get_macros
    self._load_config()
  File "build\bdist.win32\egg\graphviz\graphviz.py", line 466, in _load_config
    os.mkdir(self.cache_dir)
WindowsError: [Error 183] Cannot create a file when that file already exists: u'c:\\trac\\gvcache'

I found this in my logfile once. Usually everything works fine.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Please reopen if you can reproduce with current trunk.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.