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

ValueError: ZIP does not support timestamps before 1980 #12

Open
benoitbryon opened this issue Mar 28, 2014 · 0 comments
Open

ValueError: ZIP does not support timestamps before 1980 #12

benoitbryon opened this issue Mar 28, 2014 · 0 comments
Labels

Comments

@benoitbryon
Copy link
Member

This is related to a diecutter bug: in archive, dates are wrong...
So once extracted, setup.py install fails..

$ tox
GLOB sdist-make: /mnt/data/web/diecutter/lala/setup.py
ERROR: invocation failed, logfile: /mnt/data/web/diecutter/lala/.tox/log/tox-0.log
ERROR: actionid=tox
msg=packaging                                                                                                                                             
cmdargs=['/mnt/data/web/diecutter/lala/env/bin/python', local('/mnt/data/web/diecutter/lala/setup.py'), 'sdist', '--formats=zip', '--dist-dir', local('/mnt/data/web/diecutter/lala/.tox/dist')]                                                                                                                    
env=None                                                                                                                                                  
running sdist                                                                                                                                             
running egg_info                                                                                                                                          
creating lala.egg-info                                                                                                                                    
writing requirements to lala.egg-info/requires.txt                                                                                                        
writing lala.egg-info/PKG-INFO                                                                                                                            
writing top-level names to lala.egg-info/top_level.txt                                                                                                    
writing dependency_links to lala.egg-info/dependency_links.txt                                                                                            
writing manifest file 'lala.egg-info/SOURCES.txt'                                                                                                         
reading manifest file 'lala.egg-info/SOURCES.txt'                                                                                                         
reading manifest template 'MANIFEST.in'                                                                                                                   
warning: no previously-included files matching '*.pyc' found anywhere in distribution                                                                     
warning: no files found matching 'CHANGELOG'                                                                                                              
writing manifest file 'lala.egg-info/SOURCES.txt'                                                                                                         
warning: sdist: standard file not found: should have one of README, README.txt                                                                            

warning: check: missing required meta-data: url                                                                                                           

creating lala-0.1.dev0                                                                                                                                    
creating lala-0.1.dev0/lala                                                                                                                               
creating lala-0.1.dev0/lala.egg-info                                                                                                                      
making hard links in lala-0.1.dev0...                                                                                                                     
hard linking AUTHORS -> lala-0.1.dev0                                                                                                                     
hard linking MANIFEST.in -> lala-0.1.dev0                                                                                                                 
hard linking README.rst -> lala-0.1.dev0                                                                                                                  
hard linking VERSION -> lala-0.1.dev0                                                                                                                     
hard linking setup.py -> lala-0.1.dev0                                                                                                                    
hard linking lala/__init__.py -> lala-0.1.dev0/lala                                                                                                       
hard linking lala.egg-info/PKG-INFO -> lala-0.1.dev0/lala.egg-info                                                                                        
hard linking lala.egg-info/SOURCES.txt -> lala-0.1.dev0/lala.egg-info                                                                                     
hard linking lala.egg-info/dependency_links.txt -> lala-0.1.dev0/lala.egg-info                                                                            
hard linking lala.egg-info/not-zip-safe -> lala-0.1.dev0/lala.egg-info                                                                                    
hard linking lala.egg-info/requires.txt -> lala-0.1.dev0/lala.egg-info                                                                                    
hard linking lala.egg-info/top_level.txt -> lala-0.1.dev0/lala.egg-info                                                                                   
Writing lala-0.1.dev0/setup.cfg                                                                                                                           
creating .tox/dist                                                                                                                                        
creating '.tox/dist/lala-0.1.dev0.zip' and adding 'lala-0.1.dev0' to it                                                                                   
Traceback (most recent call last):                                                                                                                        
  File "setup.py", line 56, in <module>                                                                                                                   
    entry_points=ENTRY_POINTS,                                                                                                                            
  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 "/mnt/data/web/diecutter/lala/env/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/sdist.py", line 147, in run     
  File "/usr/lib/python2.7/distutils/command/sdist.py", line 464, in make_distribution                                                                    
    owner=self.owner, group=self.group)                                                                                                                   
  File "/usr/lib/python2.7/distutils/cmd.py", line 392, in make_archive                                                                                   
    owner=owner, group=group)                                                                                                                             
  File "/usr/lib/python2.7/distutils/archive_util.py", line 237, in make_archive                                                                          
    filename = func(base_name, base_dir, **kwargs)                                                                                                        
  File "/usr/lib/python2.7/distutils/archive_util.py", line 169, in make_zipfile                                                                          
    zip.write(path, path)                                                                                                                                 
  File "/usr/lib/python2.7/zipfile.py", line 1126, in write                                                                                               
    zinfo = ZipInfo(arcname, date_time)                                                                                                                   
  File "/usr/lib/python2.7/zipfile.py", line 305, in __init__                                                                                             
    raise ValueError('ZIP does not support timestamps before 1980')                                                                                       
ValueError: ZIP does not support timestamps before 1980                                                                                                   

ERROR: FAIL could not package project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant