Problems with pip



Change your setup.py to point to the tarball:

Code:
# -*- coding: utf-8 -*-
"""
Makes requests by Kenneth Reitz a little more magical.
"""

from setuptools import setup

setup(
    name='magicrequests',
    version='0.1.0',
    url='https://github.com/mattseh/magicrequests/tarball/master',
    license='BSD',
    author='Matthew Bell',
    author_email='whatever@gmail.com',
    description='Requests + Magic',
    long_description=__doc__,
    py_modules=['magicrequests'],
    zip_safe=False,
    include_package_data=True,
    platforms='any',
    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ]
)

(found here: python - How to configure setup.py to have pip install from GitHub master? - Stack Overflow)

FYI you can look at pip.log to see what the issue is:

Code:
Downloading/unpacking magicrequests

  Getting page http://pypi.python.org/simple/magicrequests
  URLs to search for versions for magicrequests:
  * http://pypi.python.org/simple/magicrequests/
  Getting page https://github.com/mattseh/magicrequests
  Analyzing links from page http://pypi.python.org/simple/magicrequests/
    Skipping link https://github.com/mattseh/magicrequests (from http://pypi.python.org/simple/magicrequests/); not a file
  Analyzing links from page https://github.com/mattseh/magicrequests
    Skipping link https://github.com/opensearch.xml (from https://github.com/mattseh/magicrequests); unknown archive format: .xml
    Skipping link https://github.com/fluidicon.png (from https://github.com/mattseh/magicrequests); unknown archive format: .png
    Skipping link https://github.com/favicon.ico (from https://github.com/mattseh/magicrequests); unknown archive format: .ico
    Skipping link https://github.com/mattseh/apple-touch-icon-114.png (from https://github.com/mattseh/magicrequests); unknown archive format: .png
    Skipping link https://github.com/mattseh/apple-touch-icon-144.png (from https://github.com/mattseh/magicrequests); unknown archive format: .png
    Skipping link https://a248.e.akamai.net/assets.github.com/assets/github-4c194894b379d6fdb7a613036af861b77a9c4e74.css (from https://github.com/mattseh/magicrequests); unknown archive format: .css
    Skipping link https://a248.e.akamai.net/assets.github.com/assets/github2-e17dce3302d1555fb7085ae56a67b682adb649da.css (from https://github.com/mattseh/magicrequests); unknown archive format: .css
    .....
    Skipping link http://github-media-downloads.s3.amazonaws.com/Octocats.zip (from https://github.com/mattseh/magicrequests); wrong project name (not magicrequests)
  Could not find any downloads that satisfy the requirement magicrequests

No distributions at all found for magicrequests

Exception information:
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/pip-1.1-py2.6.egg/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/Library/Python/2.6/site-packages/pip-1.1-py2.6.egg/pip/commands/install.py", line 245, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/Library/Python/2.6/site-packages/pip-1.1-py2.6.egg/pip/req.py", line 978, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/Library/Python/2.6/site-packages/pip-1.1-py2.6.egg/pip/index.py", line 157, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for magicrequests

Look at the top of that:

Code:
Skipping link https://github.com/mattseh/magicrequests (from http://pypi.python.org/simple/magicrequests/); not a file


;)
 
Last edited by a moderator:
Code:
$ pip search magicrequests
magicrequests             - Requests + Magic
$ pip install magicrequests
Downloading/unpacking magicrequests
  Could not find any downloads that satisfy the requirement magicrequests
No distributions at all found for magicrequests
Storing complete log in ~/.pip/pip.log
Still no worky!