• shtmlview error

    From Alexandru@21:1/5 to All on Fri Oct 20 08:33:45 2023
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Alexandru on Fri Oct 20 16:05:52 2023
    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.

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alexandru@21:1/5 to Rich on Fri Oct 20 13:08:52 2023
    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.

    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.
    Thanks.
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D Groth@21:1/5 to Alexandru on Thu Oct 26 10:25:26 2023
    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.

    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.
    Thanks.
    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.

    Thanks for the report. That should not give an error.

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D Groth@21:1/5 to D Groth on Sun Oct 29 01:53:38 2023
    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.

    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.
    Thanks.
    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.
    Thanks for the report. That should not give an error.

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From D Groth@21:1/5 to D Groth on Mon Nov 6 22:30:28 2023
    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 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.

    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.
    Thanks.
    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.
    Thanks for the report. That should not give an error.

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alexandru@21:1/5 to D Groth on Tue Nov 7 17:30:52 2023
    D Groth schrieb am Dienstag, 7. November 2023 um 07:30:31 UTC+1:
    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 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.

    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.
    Thanks.
    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.
    Thanks for the report. That should not give an error.

    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

    Thanks! I confirm that the error message is gone.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)