Skip to content

Unzipping does not work on some windows environment #15198

Closed

Description

@cderv

Hi @cderv, thanks again for the fix in 1.9.38. quarto check and rendering worked for me after your fix. However, I’m hitting what looks like the same root cause through a different code path.
On Quarto 1.9.38 (enterprise Windows, Group Policy blocks .bat execution from %TEMP%), quarto use template fails at the unzip step. It is still routed through the quarto-safe-exec*.bat wrapper:

PS S:\<PATH>> quarto use template thomasfaria/paesf-quarto-extensions --log-level debug
Quarto version: 1.9.38

Quarto templates may execute code when documents are rendered. If you do not 
trust the authors of the template, we recommend that you do not install or 
use the template.
? Do you trust the authors of this template (Y/n) » Yes
? Create a subdirectory for template? (Y/n) » Yes
? Directory name: » BLS-template
[>] Downloading
[execProcess] cmd /c C:\Users\<USERNAME>\AppData\Local\Temp\quarto-safe-exec9b0aa88488df71f4.bat
(-) UnzippingCe programme est bloqu� par une strat�gie de groupe. Pour plus d'informations, contactez votre administrateur syst�me.
[execProcess] Success: false, code: 1
[>] Unzipping
ERROR: Failed to unzip template.
Ce programme est bloqu� par une strat�gie de groupe. Pour plus d'informations, contactez votre administrateur syst�me.

Stack trace:
    at file:///C:/Program Files/Quarto/bin/quarto.js:174201:15
    at eventLoopTick (ext:core/01_core.js:179:7)
    at async withSpinner (file:///C:/Program Files/Quarto/bin/quarto.js:134073:12)
    at async unzipInPlace (file:///C:/Program Files/Quarto/bin/quarto.js:174196:3)
    at async stageTemplate2 (file:///C:/Program Files/Quarto/bin/quarto.js:174093:5)
    at async useTemplate (file:///C:/Program Files/Quarto/bin/quarto.js:173987:23)
    at async _Command.actionHandler (file:///C:/Program Files/Quarto/bin/quarto.js:173971:5)
    at async _Command.execute (file:///C:/Program Files/Quarto/bin/quarto.js:102091:7)
    at async _Command.parseCommand (file:///C:/Program Files/Quarto/bin/quarto.js:101968:14)
    at async quarto4 (file:///C:/Program Files/Quarto/bin/quarto.js:187649:5)

Is this already fixed in 1.10? I can’t install a new release on my work machine myself. If you can confirm it’s fixed there, then no problem I'll ask for an upgrade.
Thanks

Thanks!

Originally posted by @ThomasFaria in #14367

Activity

  1. self-assigned this
    on Oct 26, 2026
  2. added
    bugSomething isn't working
    needs-reproIssues that are blocked until reporter provides an adequate reproduction
    on Oct 26, 2026
  3. cderv commented on Oct 26, 2026

    @cderv
    MemberAuthor

    I'll try to have a look but hard to reproduce on my side. I'll run investigation with 🤖 but it would really help if you can new new stable release.

    Can you ask your IT to install new stable release ?

    Otherwise, quarto is also available as an .exe file that does not require any installation and can be downloaded, and put in a folder for trying out.

    See quarto-1.10.19-win.zip at https://github.com/quarto-dev/quarto-cli/releases/tag/v1.10.19

    Do you think you could try it ?

    Thanks

  4. ThomasFaria commented on Oct 26, 2026

    @ThomasFaria

    Thanks for opening an issue !
    Downloading Quarto actually works fine for me. The problem is running the executable, which is blocked:

    "C:\Users\tfaria\Documents\quarto-1.10.19-win\bin\quarto.exe" --version  
    Le programme « quarto.exe » n’a pas pu s’exécuter : Ce programme est bloqué par une stratégie de groupe. Pour plus d’informations, contactez votre administrateur systèmeAu caractère Ligne:1 : 1
    + & "C:\Users\tfaria\Documents\quarto-1.10.19-win\bin\quarto.exe" --ver ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
    Au caractère Ligne:1 : 1
    + & "C:\Users\tfaria\Documents\quarto-1.10.19-win\bin\quarto.exe" --ver ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
        + FullyQualifiedErrorId : NativeCommandFailed
    

    I’m going to ask IT for an upgrade, but it may take a while. I’ll keep you posted.

  5. cderv commented on Oct 27, 2026

    @cderv
    MemberAuthor

    Thanks for trying. I need to correct my earlier suggestion: upgrading to 1.10 would not have helped for this one.

    The unzip step goes through the same temporary .bat wrapper since 2022, and the fix in 1.9.38 only covered dart-sass. So 1.10.19 has exactly the same code, and asking IT for this upgrade won't solve quarto use template or quarto add from GitHub.

    I opened #15202 so that zip extraction on Windows launches PowerShell directly, without any .bat file. It should be part of 1.11.

    Meanwhile, you can skip the unzip step entirely by giving a local folder to quarto use template. A local folder is copied as is, without extraction. I tested this with 1.9.38:

    1. Download https://github.com/thomasfaria/paesf-quarto-extensions/archive/refs/heads/main.zip from your browser
    2. Extract it with Windows Explorer (right click > Extract All)
    3. Use the extracted folder as the template source
    quarto use template C:\Users\<USERNAME>\Downloads\paesf-quarto-extensions-main\paesf-quarto-extensions-main
    

    Does this work for you ?

  6. added
    extensionsrelates to Quarto extensions mechanism
    and removed
    needs-reproIssues that are blocked until reporter provides an adequate reproduction
    on Oct 27, 2026
  7. added a commit that references this issue on Oct 27, 2026
    55a313c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingextensionsrelates to Quarto extensions mechanismwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions