andrewgross / pyrelic

New Relic Python API
MIT License
21 stars 11 forks source link

Pip fail install #9

Closed miguelramos closed 11 years ago

miguelramos commented 11 years ago

I just tried to install but seems that requirements.txt file gaves me an exception.

Trace:

Running setup.py egg_info for package pyrelic

Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/Users/miguelramos/.virtualenvs/websublime/build/pyrelic/setup.py", line 40, in <module>

    install_requires, dependency_links = parse_requirements()

  File "/Users/miguelramos/.virtualenvs/websublime/build/pyrelic/setup.py", line 21, in parse_requirements

    raise RuntimeError("Couldn't find the `requirements.txt' file :(")

RuntimeError: Couldn't find the `requirements.txt' file :(

Complete output from command python setup.py egg_info:

Traceback (most recent call last):

File "", line 16, in

File "/Users/miguelramos/.virtualenvs/websublime/build/pyrelic/setup.py", line 40, in

install_requires, dependency_links = parse_requirements()

File "/Users/miguelramos/.virtualenvs/websublime/build/pyrelic/setup.py", line 21, in parse_requirements

raise RuntimeError("Couldn't find the `requirements.txt' file :(")

RuntimeError: Couldn't find the `requirements.txt' file :(


Command python setup.py egg_info failed with error code 1 in /Users/miguelramos/.virtualenvs/websublime/build/pyrelic

Exception information: Traceback (most recent call last): File "/Users/miguelramos/.virtualenvs/websublime/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/basecommand.py", line 107, in main status = self.run(options, args) File "/Users/miguelramos/.virtualenvs/websublime/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/commands/install.py", line 256, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/Users/miguelramos/.virtualenvs/websublime/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 1042, in prepare_files req_to_install.run_egg_info() File "/Users/miguelramos/.virtualenvs/websublime/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 236, in run_egg_info command_desc='python setup.py egg_info') File "/Users/miguelramos/.virtualenvs/websublime/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py", line 612, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command python setup.py egg_info failed with error code 1 in /Users/miguelramos/.virtualenvs/websublime/build/pyrelic

andrewgross commented 11 years ago

Thanks for reporting this, I released a new version 0.5.4 that fixes this problem.

miguelramos commented 11 years ago

I've just tried to install but the issue continue happens. Have you tried?

miguelramos commented 11 years ago

It seems when downloading from pip requirements.txt isn't in the package. On my virtual environment i've just download the missing files and add it to the build. So after that run again pip install and now is working. You should confirm pip package, files are missing.

andrewgross commented 11 years ago

The install fails because it still has an old version of the package inside $VIRTUAL_ENV/build/pyrecic and ~/.pip/cache'. The reason it is not downloading a new version, is because it cannot run thesetup.pyfile to figure out what version it has downloaded, due to the bug with therequirements.txt` file. I had the same problem when I was testing pip installs locally.

Steps to fix (from inside the virtualenv):

  1. rm -r $VIRTUAL_ENV/build/pyrelic
  2. rm -r ~/.pip/cache
  3. pip install pyrelic==0.5.4
andrewgross commented 11 years ago

Grab version 0.6.0 if you are still using this, it fixes a bad bug with the requests certs.pem file not being included properly, which breaks SSL.

miguelramos commented 11 years ago

Thanks Andrew!