litl / rauth

A Python library for OAuth 1.0/a, 2.0, and Ofly.
http://readthedocs.org/docs/rauth/en/latest/
MIT License
1.6k stars 174 forks source link

rauth won't install with pip if requests is not already installed #20

Closed bbigras closed 12 years ago

bbigras commented 12 years ago

rauth won't install with pip if requests is not already installed.

It may be because setup.py do import rauth (which try to import requests (by doing from .service import OAuth1Service, OAuth2Service, OflyService)) to get rauth.__version__.

(tv) C:\Users\bruno\git\tv>pip install rauth
Downloading/unpacking rauth
  Downloading rauth-0.4.13.tar.gz
  Running setup.py egg_info for package rauth
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "C:\Users\bruno\git\tv\build\rauth\setup.py", line 3, in <module>
        import rauth
      File "rauth\__init__.py", line 12, in <module>
        from .service import OAuth1Service, OAuth2Service, OflyService
      File "rauth\service.py", line 8, in <module>
        import requests
    ImportError: No module named requests
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

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

  File "C:\Users\bruno\git\tv\build\rauth\setup.py", line 3, in <module>

    import rauth

  File "rauth\__init__.py", line 12, in <module>

    from .service import OAuth1Service, OAuth2Service, OflyService

  File "rauth\service.py", line 8, in <module>

    import requests

ImportError: No module named requests

----------------------------------------
Command python setup.py egg_info failed with error code 1 in C:\Users\bruno\git\
tv\build\rauth
Storing complete log in C:\Users\bruno\AppData\Roaming\pip\pip.log

(tv) C:\Users\bruno\git\tv\wsgi\testpyramid>
maxcountryman commented 12 years ago

We'll look into this. For now I recommend pip install rauth==0.4.12 or installing Requests beforehand.