Modify

Opened 20 months ago

Last modified 20 months ago

#10859 new defect

Error: Macro DiaVisView(net_diagram2.2.dia) failed No such file or directory

Reported by: anonymous Owned by: robert_martin
Priority: normal Component: DiaVisViewPlugin
Severity: normal Keywords:
Cc: alillards Trac Release: 0.12

Description (last modified by rjollos)

Hi.

First of all, congrats for this great pugin
I just installed the plugin, but cannot make it work.

When I try to insert a diagram using this macro:

{{{
[[DiaVisView(net_diagram.dia)]]
}}}

Instead of the diagram image I get a Red-box error saying:

Error: Macro DiaVisView(net_diagram2.2.dia) failed No such file or directory

I also get this log:

OSError: [Errno 2] No such file or directory: 'TRACPATH/attachments/wiki/Name/net_diagram.png'
2013-02-07 18:13:55,094 Trac[formatter] ERROR: Macro DiaVisView(net_diagram.dia) failed: 
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/wiki/formatter.py", line 717, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "build/bdist.linux-i686/egg/trac/wiki/formatter.py", line 304, in process
    text = self.processor(text)
  File "build/bdist.linux-i686/egg/trac/wiki/formatter.py", line 291, in _macro_processor
    text)
  File "build/bdist.linux-i686/egg/DiaVisView/DiaVisView.py", line 173, in expand_macro
    (png_file_size, png_file_time) = os.stat(png_path)[6:8]
OSError: [Errno 2] No such file or directory: 'TRACPATH/attachments/wiki/Name/net_diagram.png'

I have looked in the attachment path, TRACPATH/attachments/wiki/Name/, but only the dia files are present.

Please see the attached dia files, both with and without compression.

I have installed dia-0.97-2 and python-imaging-1.1.6-12.

Thanks!

Attachments (2)

net_diagram.dia (797 bytes) - added by anonymous 20 months ago.
net_diagram2.dia (4.1 KB) - added by anonymous 20 months ago.

Download all attachments as: .zip

Change History (5)

Changed 20 months ago by anonymous

Changed 20 months ago by anonymous

comment:1 Changed 20 months ago by anonymous

  • Cc manolo.wolder@… removed

comment:2 Changed 20 months ago by rjollos

  • Description modified (diff)

comment:3 Changed 20 months ago by alillards

  • Cc alillards added

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.