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

run-crate windows support #327

Open
mfussenegger opened this issue Jul 30, 2020 · 1 comment
Open

run-crate windows support #327

mfussenegger opened this issue Jul 30, 2020 · 1 comment

Comments

@mfussenegger
Copy link
Owner

cr8 tries to unpack the .zip with tarfile:

Downloading https://cdn.crate.io/downloads/releases/cratedb/x64_windows/crate-4.2.2.zip and extracting to C:\Users\runneradmin\.cache\cr8\crates
Traceback (most recent call last):
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\hostedtoolcache\windows\Python\3.8.5\x64\Scripts\cr8.exe\__main__.py", line 7, in <module>
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\site-packages\cr8\__main__.py", line 84, in main
    _run_crate_and_rest(p, args_groups)
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\site-packages\cr8\__main__.py", line 42, in _run_crate_and_rest
    with create_node(version=args.version,
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\site-packages\cr8\run_crate.py", line 700, in create_node
    crate_dir = get_crate(version, crate_root)
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\site-packages\cr8\run_crate.py", line 670, in get_crate
    crate_dir = _download_and_extract(uri, crate_root)
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\site-packages\cr8\run_crate.py", line 485, in _download_and_extract
    with tarfile.open(fileobj=tmpfile) as t:
  File "c:\hostedtoolcache\windows\python\3.8.5\x64\lib\tarfile.py", line 1606, in open
    raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
@amotl
Copy link
Contributor

amotl commented Dec 18, 2020

Hi Mathias,

one of my commits within #337 gets things straight on that matter, see 0935765. It might help you and others already when using cr8 run-crate ad hoc.

So, feel free to cherry-pick this one as I can't promise any success with the whole bunch of CI-testing on Windows. However, I still hope that I can pick up the work on that sooner or later.

With kind regards,
Andreas.

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

2 participants