-
Notifications
You must be signed in to change notification settings - Fork 5
Description
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)