Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipe of 7z.exe command fails #400

Open
jwmurray opened this issue May 28, 2019 · 0 comments
Open

pipe of 7z.exe command fails #400

jwmurray opened this issue May 28, 2019 · 0 comments

Comments

@jwmurray
Copy link

jwmurray commented May 28, 2019

When I run an unpack command:

housing_tgz = BinDeps.unpack_cmd(tgz_path, housing_path, ".tgz", ""), the pipeline command at line 122:

  return pipeline(`$exe7z x $file -y -so`, `$exe7z x -si -y -ttar -o$directory`)

fails to execute, unless run(...) is imposed around the pipeline() call.

Environment: windows 10, Julia 1.1.1

here are a few executions from the REPL:

This one prints out the commands, but fails to unzip/untar:

julia> housing_tgz = BinDeps.unpack_cmd("C:\python\handson-ml2\datasets\housing\housing.tgz",
"C:\python\handson-ml2\datasets\housing\housing", ".tgz", "")
pipeline('c:\programs\julia\bin\7z.exe' x 'C:\python\handson-ml2\datasets\housing\housing.tgz' -y -so, stdout='c:\programs\julia\bin\7z.exe' x -si -y -ttar '-oC:\python\handson-ml2\datasets\housing\housing')

This one succeeds in unzipping and untarring:
julia> run(pipeline('c:\programs\julia\bin\7z.exe' x 'C:\python\handson-ml2\datasets\housing\housing.tgz' -y -so, stdout='c:\programs\julia\bin\7z.exe' x -si -y -ttar '-oC:\python\handson-ml2\datasets\housing\housing'))

7-Zip 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30

Extracting archive:
'--
Path =
Type = tar
Code Page = UTF-8

Everything is Ok

Size: 1423529
Compressed: 9728
Base.ProcessChain(Base.Process[Process('c:\programs\julia\bin\7z.exe' x 'C:\python\handson-ml2\datasets\housing\housing.tgz' -y -so, ProcessExited(0)), Process('c:\programs\julia\bin\7z.exe' x -si -y -ttar '-oC:\python\handson-ml2\datasets\housing\housing', ProcessExited(0))], Base.DevNull(), Base.DevNull(), Base.DevNull())

julia>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant