django-eztables icon indicating copy to clipboard operation
django-eztables copied to clipboard

ZIP does not support timestamps before 1980

Open avoine opened this issue 12 years ago • 8 comments

I got that error when installing your module from pypi. According to that issue:

https://github.com/NixOS/nixpkgs/issues/270

There is a work aroung at least with easy_install.

Getting distribution for 'django-eztables'. zip_safe flag not set; analyzing archive contents... Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1931, in main with_ei_usage(lambda: File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1912, in with_ei_usage return f() File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1935, in distclass=DistributionWithoutHelpCommands, **kw File "/usr/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 368, in run self.easy_install(spec, not self.no_deps) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 588, in easy_install return self.install_item(None, spec, tmpdir, deps, True) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 638, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs return self.build_and_install(setup_script, setup_base) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install self.run_setup(setup_script, setup_base, args) File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup run_setup(setup_script, args) File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 30, in run_setup lambda: execfile( File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 72, in run return func() File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 32, in {'file':setup_script, 'name':'main'} File "setup.py", line 76, in File "/usr/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 241, in run dry_run=self.dry_run, mode=self.gen_header()) File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 538, in make_zipfile visit(z, dirname, files) File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 528, in visit z.write(path, p) File "/usr/lib/python2.7/zipfile.py", line 1045, in write zinfo = ZipInfo(arcname, date_time) File "/usr/lib/python2.7/zipfile.py", line 295, in init raise ValueError('ZIP does not support timestamps before 1980') ValueError: ZIP does not support timestamps before 1980 An error occurred when trying to install django-eztables 0.3.2. Look above this message for any errors that were output by easy_install.

avoine avatar Mar 05 '14 14:03 avoine

I just check out pypi and your package is in the tar-gz format so that might not be related to your package. Sorry for the noise.

avoine avatar Mar 05 '14 15:03 avoine

So it look like the fix is trivial so I'm sending you a pull request.

avoine avatar Mar 05 '14 15:03 avoine

This is still an issue -- do we have an ETA on when it will be fixed?

Thanks

Kevin J

laidbackwebsage avatar Nov 16 '16 18:11 laidbackwebsage

Having this problem aswell.

danperrout avatar Mar 23 '17 20:03 danperrout

Still an issue here as well.

JackNClarke avatar Apr 12 '17 13:04 JackNClarke

For those coming in from Google on this error, it's very possible there are in fact files that have corrupt touch dates older than 1980. This raises when the mtime of a file in the packaging tree is older than 1980. This even happened for me when zip_safe was set to False

You can see if you have any of these files with: find . -mtime +13700 -ls

My fix was to touch offending files and exclude some unnecessary dirs in my Manifest.in.

See also https://github.com/NixOS/nixpkgs/issues/270 and https://github.com/aws/aws-cli/issues/2639

emorikawa avatar Jul 06 '17 21:07 emorikawa

I got a same problem when I wnat to zip a directory ,when I use debug , my direcotry can be zip ,but when I run my program , it can not work .and console write like this " The ZIP file format does not support timestamps before 1980" . I checked my directory , find some files has no modify time!! So I changed some files , like enter a line . And my program can run or debug well.

githubtaotao avatar Jun 22 '18 07:06 githubtaotao

pycharm ,odoo poject

githubtaotao avatar Jun 22 '18 07:06 githubtaotao