When I do
package require critcl
package require shtmlview::shtmlview
I get the error output:
Error: no svg conversion available, neither critcl and librsvg2-dev
or the terminal applications rsvg-convert or cairosvg are available!
Please install one of the tools to support svg display!
But critcl is already loaded.
And folowing test works fine:
::shtmlview::shtmlview .help -toolbar false
.help browse C:/Tcl/lib/shtmlview/shtmlview.html
pack .help -fill both -expand true -side left
How can it be that the critcl package is loaded but shtmlview thinks
it's not?
Alexandru <[email protected]> wrote:Thanks.
When I do
package require critcl
package require shtmlview::shtmlview
I get the error output:
Error: no svg conversion available, neither critcl and librsvg2-dev
or the terminal applications rsvg-convert or cairosvg are available!
Please install one of the tools to support svg display!
But critcl is already loaded.
And folowing test works fine:
::shtmlview::shtmlview .help -toolbar false
.help browse C:/Tcl/lib/shtmlview/shtmlview.html
pack .help -fill both -expand true -side left
How can it be that the critcl package is loaded but shtmlview thinksOne possibility, shtmlview is specifically looking for critcl in a
it's not?
namespace (possibly in the ::shtmlview:: namespace) and it is not in
the namespace that shtmlview expects.
Another possibililty, you do not have librsvg2-dev, rsvg-convert, or cairosvg installed and the error message is confusingly worded. The wording is
trying to state that both critcl and one of ... need to be available,
but is worded as if both critcl and one of ... is missing, when it may
just be one of the support packages that are missing.
Rich schrieb am Freitag, 20. Oktober 2023 um 18:05:58 UTC+2:
Alexandru <[email protected]> wrote:
When I do
package require critcl
package require shtmlview::shtmlview
I get the error output:
Error: no svg conversion available, neither critcl and librsvg2-dev
or the terminal applications rsvg-convert or cairosvg are available! Please install one of the tools to support svg display!
But critcl is already loaded.
And folowing test works fine:
::shtmlview::shtmlview .help -toolbar false
.help browse C:/Tcl/lib/shtmlview/shtmlview.html
pack .help -fill both -expand true -side left
How can it be that the critcl package is loaded but shtmlview thinksOne possibility, shtmlview is specifically looking for critcl in a namespace (possibly in the ::shtmlview:: namespace) and it is not in
it's not?
the namespace that shtmlview expects.
Another possibililty, you do not have librsvg2-dev, rsvg-convert, or cairosvgThanks.
installed and the error message is confusingly worded. The wording is trying to state that both critcl and one of ... need to be available,
but is worded as if both critcl and one of ... is missing, when it may
just be one of the support packages that are missing.
I think I misinterpreted the error message: it is a pair that's needed "critcl and librsvg2-dev". I hope I don't need these, I don't plan to render SVGs.
Alexandru schrieb am Freitag, 20. Oktober 2023 um 22:08:55 UTC+2:
Rich schrieb am Freitag, 20. Oktober 2023 um 18:05:58 UTC+2:
Alexandru <[email protected]> wrote:
When I do
package require critcl
package require shtmlview::shtmlview
I get the error output:
Error: no svg conversion available, neither critcl and librsvg2-dev
or the terminal applications rsvg-convert or cairosvg are available! Please install one of the tools to support svg display!
But critcl is already loaded.
And folowing test works fine:
::shtmlview::shtmlview .help -toolbar false
.help browse C:/Tcl/lib/shtmlview/shtmlview.html
pack .help -fill both -expand true -side left
How can it be that the critcl package is loaded but shtmlview thinks it's not?One possibility, shtmlview is specifically looking for critcl in a namespace (possibly in the ::shtmlview:: namespace) and it is not in
the namespace that shtmlview expects.
Thanks for the report. That should not give an error.Another possibililty, you do not have librsvg2-dev, rsvg-convert, or cairosvgThanks.
installed and the error message is confusingly worded. The wording is trying to state that both critcl and one of ... need to be available,
but is worded as if both critcl and one of ... is missing, when it may just be one of the support packages that are missing.
I think I misinterpreted the error message: it is a pair that's needed "critcl and librsvg2-dev". I hope I don't need these, I don't plan to render SVGs.
Please make a bug/ticket report at my Github page.
https://github.com/mittelmark/shtmlview/issues
or/and at the tklib page:
https://core.tcl-lang.org/tklib/ticket
I will then look into this.
Detlef
I did an issue on the Github page for you:
https://github.com/mittelmark/shtmlview/issues/6
Detlef
D Groth schrieb am Donnerstag, 26. Oktober 2023 um 19:25:29 UTC+2:
Alexandru schrieb am Freitag, 20. Oktober 2023 um 22:08:55 UTC+2:
Rich schrieb am Freitag, 20. Oktober 2023 um 18:05:58 UTC+2:
Alexandru <[email protected]> wrote:
When I do
package require critcl
package require shtmlview::shtmlview
I get the error output:
Error: no svg conversion available, neither critcl and librsvg2-dev or the terminal applications rsvg-convert or cairosvg are available! Please install one of the tools to support svg display!
But critcl is already loaded.
And folowing test works fine:
::shtmlview::shtmlview .help -toolbar false
.help browse C:/Tcl/lib/shtmlview/shtmlview.html
pack .help -fill both -expand true -side left
How can it be that the critcl package is loaded but shtmlview thinks it's not?One possibility, shtmlview is specifically looking for critcl in a namespace (possibly in the ::shtmlview:: namespace) and it is not in the namespace that shtmlview expects.
Thanks for the report. That should not give an error.Another possibililty, you do not have librsvg2-dev, rsvg-convert, or cairosvgThanks.
installed and the error message is confusingly worded. The wording is trying to state that both critcl and one of ... need to be available, but is worded as if both critcl and one of ... is missing, when it may just be one of the support packages that are missing.
I think I misinterpreted the error message: it is a pair that's needed "critcl and librsvg2-dev". I hope I don't need these, I don't plan to render SVGs.
Please make a bug/ticket report at my Github page.
https://github.com/mittelmark/shtmlview/issues
or/and at the tklib page:
https://core.tcl-lang.org/tklib/ticket
I will then look into this.
Detlef
I fixed that writing on stderr in case of missing svg conversionon my Github project
https://github.com/mittelmark/shtmlview/archive/refs/heads/main.zip
So:
tclsh sthmlview/shtmlview.tcl gives not an error to the teriminal anymore.
tclsh shtmlview/shtmlview.tcl --help
indicates now if Markdown support and svg conversion is available.
Please check and tell me if that works. Again the best place for bug reports is the issue page of the Github project.
Detlef
PS: Use https://groups.google.com/g/comp.lang.tcl/search?q=-interwin+and+-slot+-Acheter
for this news group to unview the spam.
D Groth schrieb am Sonntag, 29. Oktober 2023 um 09:53:41 UTC+1:
I did an issue on the Github page for you:
https://github.com/mittelmark/shtmlview/issues/6
Detlef
D Groth schrieb am Donnerstag, 26. Oktober 2023 um 19:25:29 UTC+2:
Alexandru schrieb am Freitag, 20. Oktober 2023 um 22:08:55 UTC+2:
Rich schrieb am Freitag, 20. Oktober 2023 um 18:05:58 UTC+2:
Alexandru <[email protected]> wrote:
When I do
package require critcl
package require shtmlview::shtmlview
I get the error output:
Error: no svg conversion available, neither critcl and librsvg2-dev or the terminal applications rsvg-convert or cairosvg are available!
Please install one of the tools to support svg display!
But critcl is already loaded.
And folowing test works fine:
::shtmlview::shtmlview .help -toolbar false
.help browse C:/Tcl/lib/shtmlview/shtmlview.html
pack .help -fill both -expand true -side left
How can it be that the critcl package is loaded but shtmlview thinksOne possibility, shtmlview is specifically looking for critcl in a namespace (possibly in the ::shtmlview:: namespace) and it is not in the namespace that shtmlview expects.
it's not?
Thanks for the report. That should not give an error.Another possibililty, you do not have librsvg2-dev, rsvg-convert, or cairosvgThanks.
installed and the error message is confusingly worded. The wording is trying to state that both critcl and one of ... need to be available, but is worded as if both critcl and one of ... is missing, when it may
just be one of the support packages that are missing.
I think I misinterpreted the error message: it is a pair that's needed "critcl and librsvg2-dev". I hope I don't need these, I don't plan to render SVGs.
Please make a bug/ticket report at my Github page.
https://github.com/mittelmark/shtmlview/issues
or/and at the tklib page:
https://core.tcl-lang.org/tklib/ticket
I will then look into this.
Detlef
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 144:54:04 |
| Calls: | 12,089 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,493 |