Navigation Menu

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

Export fails for big exports in zip mode #2358

Closed
sphuber opened this issue Dec 19, 2018 · 3 comments
Closed

Export fails for big exports in zip mode #2358

sphuber opened this issue Dec 19, 2018 · 3 comments

Comments

@sphuber
Copy link
Contributor

sphuber commented Dec 19, 2018

Traceback (most recent call last):
  File "/home/aiida/.virtualenvs/aiida_sdb/bin/verdi", line 9, in <module>
    sys.exit(verdi())
  File "/home/aiida/.virtualenvs/aiida_sdb/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/aiida/.virtualenvs/aiida_sdb/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/aiida/.virtualenvs/aiida_sdb/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/aiida/.virtualenvs/aiida_sdb/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/aiida/.virtualenvs/aiida_sdb/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/aiida/.virtualenvs/aiida_sdb/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/aiida/code/aiida/env/sdb/aiida-core/aiida/cmdline/commands/cmd_export.py", line 132, in create
    export_function(entities, outfile=output_file, **kwargs)
  File "/home/aiida/code/aiida/env/sdb/aiida-core/aiida/orm/importexport.py", line 2621, in export_zip
    export_tree(what, folder=folder, silent=silent, **kwargs)
  File "/home/aiida/code/aiida/env/sdb/aiida-core/aiida/orm/importexport.py", line 2367, in export_tree
    fhandle.write(json.dumps(data))
  File "/home/aiida/code/aiida/env/sdb/aiida-core/aiida/orm/importexport.py", line 2497, in __exit__
    self.close()
  File "/home/aiida/code/aiida/env/sdb/aiida-core/aiida/orm/importexport.py", line 2489, in close
    self._zipfile.writestr(self._fname, self._buffer.read())
  File "/usr/lib/python2.7/zipfile.py", line 1236, in writestr
    zinfo.CRC = crc32(bytes) & 0xffffffff       # CRC-32 checksum
OverflowError: size does not fit in an int
@sphuber sphuber added this to the v1.0.1 milestone Dec 19, 2018
@sphuber sphuber added this to To do in Import/export via automation Dec 19, 2018
@CasperWA
Copy link
Contributor

This seems to be related to the (solved) Python issues here and here. But do we need to use zlib perhaps - or make sure a minimum version of Python 2.7 is used?

@ltalirz
Copy link
Member

ltalirz commented Feb 3, 2020

@sphuber The underlying zlib issue seems to have been addressed in python 3.5+ - can you check whether this works in AiiDA now?

@sphuber sphuber removed this from the v1.1.1 milestone Feb 24, 2020
@ltalirz
Copy link
Member

ltalirz commented Sep 10, 2020

Given that this has not resurfaced, I assume this was resolved by switching to a recent python version.
Feel free to reopen if the issue resurfaces.

@ltalirz ltalirz closed this as completed Sep 10, 2020
Import/export automation moved this from To do to Done Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Import/export
  
Done
Development

No branches or pull requests

3 participants