OpenCue icon indicating copy to clipboard operation
OpenCue copied to clipboard

Windows PS tar cannot extract cuegui

Open smith1511 opened this issue 5 years ago • 5 comments

Describe the bug Running tar -xzf cuegui-xxx-.tar.gz fails to extract two files from the archive.

To Reproduce Steps to reproduce the behavior:

  1. Open a powershell terminal
  2. Run 'tar -xzf cuegui-0.3.43-all.tar.gz'
  3. Error -> The two files below fail to extract, all others succeed.

cuegui-0.3.43-all/cuegui/images/crystal/icons.qrc: Can't create '\\?\C:\Users\abc\Downloads\cuegui-0.3.43-all\cuegui\images\crystal\icons.qrc' cuegui-0.3.43-all/cuegui/images/bluecurve/icons.qrc: Can't create '\\?\C:\Users\abc\Downloads\cuegui-0.3.43-all\cuegui\images\bluecurve\icons.qrc' tar.exe: Error exit delayed from previous errors.

Expected behavior All files should extract on Windows. Linux works fine.

Version Number Various

smith1511 avatar Mar 09 '20 21:03 smith1511

@smith1511 It is happening because .qrc files are symbolic links which can be extracted only if you have administrative privilege.

I have tried with extracting it with 7z and WinRAR after running it as administrator. I am searching for some solutions using tar command and will update this issue thread ASAP.

aman-roy avatar Mar 16 '20 07:03 aman-roy

@aman-roy Thank you! Let us know if you find anything.

bcipriano avatar Mar 17 '20 00:03 bcipriano

Any update or workaround on this issue? It also occurs in a powershell terminal with administrative privileges.

RickShahid avatar Aug 06 '20 15:08 RickShahid

im bumping this @bcipriano @RickShahid @aman-roy @smith1511

ive made a batch script for it, you can try it but still errors using tar command but using winrar i dont get any tar errors

@echo off mkdir c:\opencue mkdir c:\opencue\logs cd c:\opencue curl -OL https://github.com/AcademySoftwareFoundation/OpenCue/releases/download/v1.0.0/cueadmin-1.0.0-all.tar.gz curl -OL https://github.com/AcademySoftwareFoundation/OpenCue/releases/download/v1.0.0/cuegui-1.0.0-all.tar.gz curl -OL https://github.com/AcademySoftwareFoundation/OpenCue/releases/download/v1.0.0/cuesubmit-1.0.0-all.tar.gz curl -OL https://github.com/AcademySoftwareFoundation/OpenCue/releases/download/v1.0.0/pycue-1.0.0-all.tar.gz curl -OL https://github.com/AcademySoftwareFoundation/OpenCue/releases/download/v1.0.0/pyoutline-1.0.0-all.tar.gz curl -OL https://github.com/AcademySoftwareFoundation/OpenCue/releases/download/v1.0.0/rqd-1.0.0-all.tar.gz dir /a-d /b | FINDSTR /V files.txt > files.txt for /F %%h in (files.txt) do tar -xvzf %%h python -m venv venv dir /ad /b | FINDSTR /V venv | FINDSTR /V logs > dirs.txt for /F %%d in (dirs.txt) do cd c:\opencue\%%d & c:\opencue\venv\Scripts\activate & pip install -r c:\opencue\%%d\requirements.txt -r c:\opencue\%%d\requirements_gui.txt& python setup.py install

robina80 avatar Oct 31 '24 18:10 robina80

ok seems to have done it if i run cmd as admin as im seeing no errors

robina80 avatar Oct 31 '24 18:10 robina80