Modify ↓
Opened 13 years ago
Closed 13 years ago
#10009 closed defect (invalid)
File not found in ticket, although the attachment exists
Reported by: | Owned by: | ursaw | |
---|---|---|---|
Priority: | normal | Component: | PdfImagePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
I have a ticket #123 with an attachment called foo.pdf
. Writing a ticket comment with:
[[PdfImg(foo.pdf)]]
andticket:123:foo.pdf
results in error box
Error: Macro PdfImg(foo.pdf) failed
2No such file or directory
attachment:foo.pdf
gives
Attachment 'wiki:attachment?: foo.pdf' does not exist.
ticket:123:attachment:foo.pdf
:
No filespec given
What's wrong? (convert
is installed on the server.)
Attachments (0)
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Thanks for the pointer to the log :-)
OSError: [Errno 2] No such file or directory: '/home/me/path/trac-env/htdocs/pfdimg-images'
there was a further problem in the installation dirs, all is OK now.
(Running Debian/stable, trac 0.12.2)
Thanks!
Note: See
TracTickets for help on using
tickets.
Parsing of the attachment is copyied from the http://trac.edgewall.org/wiki/WikiMacros#Image-macro Image Macro , therefore your syntax looks OK.
can you please have a look at the log.info
Which OS and tarc version are you using.
I just tried to display an PDF attachment to an ticket to display in a wiki page and vice verse. both worked fine for me.
Just a small guess in case you are using windows: Does your path on the filesystem contains a blank?