You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to run the convert cli, as shown in this post.
Below is the error i get.
What I Did
$ cd jpxlab/jpxlab/
$ python cli.py convert ../downloads/StandardEquities_20210128.zip
joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 431, in _process_worker
r = call_item()
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 285, in __call__
return self.fn(*self.args, **self.kwargs)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/_parallel_backends.py", line 595, in __call__
return self.func(*args, **kwargs)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/parallel.py", line 263, in __call__
for func, args, kwargs in self.items]
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/parallel.py", line 263, in <listcomp>
for func, args, kwargs in self.items]
File "/Users/mars/Documents/Data/JPX/FLEX/jpxlab/jpxlab/jpxlab.py", line 338, in fetch_and_convert
_stream_convert(src, outpath, mode, date)
File "/Users/mars/Documents/Data/JPX/FLEX/jpxlab/jpxlab/jpxlab.py", line 300, in _stream_convert
zip_file = ZipFile(stream, allowZip64=True)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 1100, in __init__
self._RealGetContents()
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 1168, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "cli.py", line 40, in <module>
sys.exit(cmd())
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "cli.py", line 34, in convert
Parallel(n_jobs=-1)(delayed(jpxlab.fetch_and_convert)(f) for f in files)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/parallel.py", line 1054, in __call__
self.retrieve()
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/parallel.py", line 933, in retrieve
self._output.extend(job.get(timeout=self.timeout))
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/site-packages/joblib/_parallel_backends.py", line 542, in wrap_future_result
return future.result(timeout=timeout)
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/concurrent/futures/_base.py", line 405, in result
return self.__get_result()
File "/Users/mars/.pyenv/versions/3.6.1/lib/python3.6/concurrent/futures/_base.py", line 357, in __get_result
raise self._exception
zipfile.BadZipFile: File is not a zip file
The text was updated successfully, but these errors were encountered:
Description
i am trying to run the convert cli, as shown in this post.
Below is the error i get.
What I Did
The text was updated successfully, but these errors were encountered: