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

zipfile.BadZipFile error during wacz creation from warc file - Windows only #18

Open
ivbeg opened this issue Mar 27, 2022 · 0 comments
Open

Comments

@ivbeg
Copy link

ivbeg commented Mar 27, 2022

изображение

I see following error each time when I use latest py-wacz on Windows
_Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\Python310\Scripts\wacz.exe_main
.py", line 7, in
File "C:\Program Files\Python310\lib\site-packages\wacz\main.py", line 109, in main
value = cmd.func(cmd)
File "C:\Program Files\Python310\lib\site-packages\wacz\main.py", line 320, in create_wacz
datapackage = wacz_indexer.generate_datapackage(res, wacz)
File "C:\Program Files\Python310\lib\site-packages\wacz\waczindexer.py", line 343, in generate_datapackage
with wacz.open(zip_entry, "r") as stream:
File "C:\Program Files\Python310\lib\zipfile.py", line 1545, in open
raise BadZipFile(
zipfile.BadZipFile: File name in directory 'archive\cafrussia.ru.warc' and header b'archive/cafrussia.ru.warc' differ.

Environment: Windows 10, Python 3.10.0, wacz 0.4.5

No error happens on Linux or in the Windows Subsystem for Linux environment.

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