zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
586 stars 173 forks source link

1.2.1 Seems broken for pip & easy_install on ubuntu 12.10 #34

Closed snewman closed 11 years ago

snewman commented 11 years ago

Reproduced on a clean Ubuntu 12.04 AWS instance.

sudo pip install nagios-api

Grabs the latest version in pypi, which is currently 1.2.1

Command python setup.py egg_info failed with error code 1 Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 980, in prepare_files req_to_install.run_egg_info() File "/usr/lib/python2.7/dist-packages/pip/req.py", line 216, in run_egg_info command_desc='python setup.py egg_info') File "/usr/lib/python2.7/dist-packages/pip/init.py", line 255, in call_subprocess % (command_desc, proc.returncode)) InstallationError: Command python setup.py egg_info failed with error code 1

If I install 1.2 (via sudo pip install nagios-api==1.2) everything works fine, so it seems like a recent problem.

Looking at the tarball for 1.2.1, it just looks wrong - it contains a usr/local/ path structure inside, rather than just a top-level flat nagios-api-1.2 structure as in the working tarball. Probably an easy fix to unload a new one,

zorkian commented 11 years ago

Thanks. I'm trying to fix this, but uploading to PyPi is giving me 503s. I'll keep trying.

snewman commented 11 years ago

Cool - let me know when you've managed it and I'll happily test it at this end.

zorkian commented 11 years ago

Should be up now:

https://pypi.python.org/pypi/nagios-api/1.2.2

Let me know if it works or not!