kylemarsh / brainstorm Goto Github PK
View Code? Open in Web Editor NEW:thought_balloon: cliff-based CLI for syncing files to DHO.
:thought_balloon: cliff-based CLI for syncing files to DHO.
Running python setup.py install
results in the installation failing completely with the output shown under the reproduce section. Commenting out zip_safe=False
from setup.py for me (and viceversa!) and running it again seems to resolve the problem.
I have reproduced this issue on a fresh ubuntu precise installation and fresh Apple Mountain Lion python venv. I have also attempted to run python setup.py install
a couple of times just to see if the modification to setup.py was unrelated, but I still end up with the same results.
On first attempts of running python setup.py install
I get the following:
vagrant@precise64:/vagrant$ sudo python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing requirements to brainstorm.egg-info/requires.txt
writing brainstorm.egg-info/PKG-INFO
writing namespace_packages to brainstorm.egg-info/namespace_packages.txt
writing top-level names to brainstorm.egg-info/top_level.txt
writing dependency_links to brainstorm.egg-info/dependency_links.txt
writing entry points to brainstorm.egg-info/entry_points.txt
reading manifest file 'brainstorm.egg-info/SOURCES.txt'
writing manifest file 'brainstorm.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/brainstorm
copying brainstorm/__init__.py -> build/lib.linux-x86_64-2.7/brainstorm
copying brainstorm/main.py -> build/lib.linux-x86_64-2.7/brainstorm
copying brainstorm/manipulator.py -> build/lib.linux-x86_64-2.7/brainstorm
copying brainstorm/viewer.py -> build/lib.linux-x86_64-2.7/brainstorm
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/__init__.py -> build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/main.py -> build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/manipulator.py -> build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/viewer.py -> build/bdist.linux-x86_64/egg/brainstorm
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/main.py to main.pyc
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/manipulator.py to manipulator.pyc
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/viewer.py to viewer.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/namespace_packages.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/brainstorm-0.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing brainstorm-0.1-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/brainstorm-0.1-py2.7.egg
Extracting brainstorm-0.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding brainstorm 0.1 to easy-install.pth file
Installing brainstorm script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/brainstorm-0.1-py2.7.egg
Processing dependencies for brainstorm==0.1
Searching for cliff
Reading http://pypi.python.org/simple/cliff/
Reading https://github.com/dreamhost/cliff
Reading https://github.com/dreamhost/cliff/tarball/master
Best match: cliff 1.1.2
Downloading http://pypi.python.org/packages/source/c/cliff/cliff-1.1.2.tar.gz#md5=9c0da418a07fd4438fbc1042a4b5a226
Processing cliff-1.1.2.tar.gz
Running cliff-1.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6z6MXc/cliff-1.1.2/egg-dist-tmp-6Ts3wQ
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz
Extracting in /tmp/easy_install-6z6MXc/cliff-1.1.2/temp/tmptcDGNa
Now working in /tmp/easy_install-6z6MXc/cliff-1.1.2/temp/tmptcDGNa/distribute-0.6.10
Building a Distribute egg in /tmp/easy_install-6z6MXc/cliff-1.1.2
/tmp/easy_install-6z6MXc/cliff-1.1.2/distribute-0.6.10-py2.7.egg
Adding cliff 1.1.2 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/cliff-1.1.2-py2.7.egg
Searching for boto
Reading http://pypi.python.org/simple/boto/
Reading http://code.google.com/p/boto/
Reading https://github.com/boto/boto/
Reading https://github.com/boto/boto
Reading http://code.google.com/p/boto
Best match: boto 2.5.2
Downloading http://boto.googlecode.com/files/boto-2.5.2.tar.gz
Processing boto-2.5.2.tar.gz
Running boto-2.5.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kUcOvA/boto-2.5.2/egg-dist-tmp-Ajphxz
warning: no files found matching 'boto/mturk/test/*.doctest'
warning: no files found matching 'boto/mturk/test/.gitignore'
^[[Bzip_safe flag not set; analyzing archive contents...
boto.connection: module references __file__
Adding boto 2.5.2 to easy-install.pth file
Installing route53 script to /usr/local/bin
Installing fetch_file script to /usr/local/bin
Installing taskadmin script to /usr/local/bin
Installing sdbadmin script to /usr/local/bin
Installing instance_events script to /usr/local/bin
Installing launch_instance script to /usr/local/bin
Installing s3put script to /usr/local/bin
Installing s3multiput script to /usr/local/bin
Installing lss3 script to /usr/local/bin
Installing cfadmin script to /usr/local/bin
Installing kill_instance script to /usr/local/bin
Installing bundle_image script to /usr/local/bin
Installing pyami_sendmail script to /usr/local/bin
Installing elbadmin script to /usr/local/bin
Installing asadmin script to /usr/local/bin
Installing list_instances script to /usr/local/bin
Installing cwutil script to /usr/local/bin
Installing cq script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/boto-2.5.2-py2.7.egg
Searching for cmd2
Reading http://pypi.python.org/simple/cmd2/
Reading http://www.assembla.com/wiki/show/python-cmd2
Reading https://sourceforge.net/projects/python-cmd2
Reading http://packages.python.org/cmd2/
Reading http://catherine.devlin.googlepages.com/cmd2.html
Best match: cmd2 0.6.4
Downloading http://pypi.python.org/packages/2.7/c/cmd2/cmd2-0.6.4-py2.7.egg#md5=de8ca6cbdd3d5d06385c0364413e5072
Processing cmd2-0.6.4-py2.7.egg
Moving cmd2-0.6.4-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding cmd2 0.6.4 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/cmd2-0.6.4-py2.7.egg
Searching for PrettyTable
Reading http://pypi.python.org/simple/PrettyTable/
Reading http://code.google.com/p/prettytable/
Reading http://luke.maurits.id.au/software/prettytable/
Best match: prettytable 0.6.1
Downloading http://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.6.1.zip#md5=2ac002f4f944f9468b0df8b4de9e8967
Processing prettytable-0.6.1.zip
Running prettytable-0.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9wVvif/prettytable-0.6.1/egg-dist-tmp-aIj3mN
zip_safe flag not set; analyzing archive contents...
Adding prettytable 0.6.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/prettytable-0.6.1-py2.7.egg
Searching for distribute
Reading http://pypi.python.org/simple/distribute/
Reading http://packages.python.org/distribute
Best match: distribute 0.6.28
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz#md5=b400b532e33f78551e6847c1f5965e56
Processing distribute-0.6.28.tar.gz
Running distribute-0.6.28/setup.py -q bdist_egg --dist-dir /tmp/easy_install-z90Bgk/distribute-0.6.28/egg-dist-tmp-V6OQhE
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
Egg installation
Patching...
Renaming /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg into /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg.OLD.1346191729.24
Patched done.
Relaunching...
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
Egg installation
Already patched.
After install bootstrap.
Don't have permissions to write /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info, skipping
Creating /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info
Creating /usr/local/lib/python2.7/dist-packages/setuptools.pth
Moving distribute-0.6.28-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding distribute 0.6.28 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/distribute-0.6.28-py2.7.egg
Searching for pyparsing>=1.5.6
Reading http://pypi.python.org/simple/pyparsing/
Reading http://pyparsing.wikispaces.com/
Reading http://sourceforge.net/project/showfiles.php?group_id=97203
Reading http://pyparsing.sourceforge.net/
Reading http://sourceforge.net/projects/pyparsing
Best match: pyparsing 1.5.6
Downloading http://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.6.zip#md5=5404de54e6d0ae71ce354d8db3576ac1
Processing pyparsing-1.5.6.zip
Running pyparsing-1.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rCkw_N/pyparsing-1.5.6/egg-dist-tmp-fE3x4U
Traceback (most recent call last):
File "setup.py", line 44, in <module>
zip_safe=False,
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 "build/bdist.linux-x86_64/egg/setuptools/command/install.py", line 76, in run
File "build/bdist.linux-x86_64/egg/setuptools/command/install.py", line 104, in do_egg_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 211, in run
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 427, in easy_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 478, in install_item
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 519, in process_distribution
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 563, in resolve
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 799, in best_match
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 811, in obtain
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 446, in easy_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 476, in install_item
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 919, in run_setup
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 62, in run_setup
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 105, in run
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 64, in <lambda>
File "setup.py", line 54, in <module>
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 261, in __init__
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 476, in iter_entry_points
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2229, in get_entry_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2034, in parse_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2560, in split_sections
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1854, in yield_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2163, in _get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1181, in get_metadata_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1178, in get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1238, in _get
zipimport.ZipImportError: bad local file header in /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
Then I edit setup.py and comment out zip_safe=False
and run python setup.py install
again, and it works fine:
vagrant@precise64:/vagrant$ sudo python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing requirements to brainstorm.egg-info/requires.txt
writing brainstorm.egg-info/PKG-INFO
writing namespace_packages to brainstorm.egg-info/namespace_packages.txt
writing top-level names to brainstorm.egg-info/top_level.txt
writing dependency_links to brainstorm.egg-info/dependency_links.txt
writing entry points to brainstorm.egg-info/entry_points.txt
reading manifest file 'brainstorm.egg-info/SOURCES.txt'
writing manifest file 'brainstorm.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/__init__.py -> build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/main.py -> build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/manipulator.py -> build/bdist.linux-x86_64/egg/brainstorm
copying build/lib.linux-x86_64-2.7/brainstorm/viewer.py -> build/bdist.linux-x86_64/egg/brainstorm
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/main.py to main.pyc
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/manipulator.py to manipulator.pyc
byte-compiling build/bdist.linux-x86_64/egg/brainstorm/viewer.py to viewer.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/namespace_packages.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying brainstorm.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/brainstorm-0.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing brainstorm-0.1-py2.7.egg
removing '/usr/local/lib/python2.7/dist-packages/brainstorm-0.1-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/brainstorm-0.1-py2.7.egg
Extracting brainstorm-0.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
brainstorm 0.1 is already the active version in easy-install.pth
Installing brainstorm script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/brainstorm-0.1-py2.7.egg
Processing dependencies for brainstorm==0.1
Searching for pyparsing>=1.5.6
Reading http://pypi.python.org/simple/pyparsing/
Reading http://pyparsing.wikispaces.com/
Reading http://sourceforge.net/project/showfiles.php?group_id=97203
Reading http://pyparsing.sourceforge.net/
Reading http://sourceforge.net/projects/pyparsing
Best match: pyparsing 1.5.6
Downloading http://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.6.zip#md5=5404de54e6d0ae71ce354d8db3576ac1
Processing pyparsing-1.5.6.zip
Writing /tmp/easy_install-nIYyrH/pyparsing-1.5.6/setup.cfg
Running pyparsing-1.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nIYyrH/pyparsing-1.5.6/egg-dist-tmp-0rGnXn
zip_safe flag not set; analyzing archive contents...
pyparsing: module MAY be using inspect.stack
Adding pyparsing 1.5.6 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/pyparsing-1.5.6-py2.7.egg
Searching for cliff==1.1.2
Best match: cliff 1.1.2
Processing cliff-1.1.2-py2.7.egg
cliff 1.1.2 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/cliff-1.1.2-py2.7.egg
Searching for boto==2.5.2
Best match: boto 2.5.2
Processing boto-2.5.2-py2.7.egg
boto 2.5.2 is already the active version in easy-install.pth
Installing route53 script to /usr/local/bin
Installing fetch_file script to /usr/local/bin
Installing taskadmin script to /usr/local/bin
Installing sdbadmin script to /usr/local/bin
Installing instance_events script to /usr/local/bin
Installing launch_instance script to /usr/local/bin
Installing s3put script to /usr/local/bin
Installing s3multiput script to /usr/local/bin
Installing lss3 script to /usr/local/bin
Installing cfadmin script to /usr/local/bin
Installing kill_instance script to /usr/local/bin
Installing bundle_image script to /usr/local/bin
Installing pyami_sendmail script to /usr/local/bin
Installing elbadmin script to /usr/local/bin
Installing asadmin script to /usr/local/bin
Installing list_instances script to /usr/local/bin
Installing cwutil script to /usr/local/bin
Installing cq script to /usr/local/bin
Using /usr/local/lib/python2.7/dist-packages/boto-2.5.2-py2.7.egg
Searching for cmd2==0.6.4
Best match: cmd2 0.6.4
Processing cmd2-0.6.4-py2.7.egg
cmd2 0.6.4 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/cmd2-0.6.4-py2.7.egg
Searching for prettytable==0.6.1
Best match: prettytable 0.6.1
Processing prettytable-0.6.1-py2.7.egg
prettytable 0.6.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/prettytable-0.6.1-py2.7.egg
Searching for distribute==0.6.28
Best match: distribute 0.6.28
Processing distribute-0.6.28-py2.7.egg
distribute 0.6.28 is already the active version in easy-install.pth
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
Using /usr/local/lib/python2.7/dist-packages/distribute-0.6.28-py2.7.egg
Finished processing dependencies for brainstorm==0.1
For the installation script to work the first time without modifications.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.