Skip to content

'import-requirements' is broken #9

@MikeClapper

Description

@MikeClapper

his example command will demonstrate the problem:
python3 main.py import-requirements --requirements-path exports/redisgears-requirement-v1-pandas-linux-buster-x64.zip --host localhost --port 6399
This last lines of the output:
File "/Users/mikeclapper/.pyenv/versions/3.7.5/lib/python3.7/zipfile.py", line 1225, in init
self._RealGetContents()
File "/Users/mikeclapper/.pyenv/versions/3.7.5/lib/python3.7/zipfile.py", line 1292, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

The problem appears to be in the routine 'import_requirements' - line 254 - 'import_single_req()' is called using a buffer rather than a file name.

253 io_buffer = io.BytesIO(req_data)
245 import_single_req(r, io_buffer, bulk_size_in_bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions