ozgur / python-firebase

Python interface to the Firebase's REST API
http://ozgur.github.com/python-firebase/
MIT License
593 stars 155 forks source link

Installing to Heroku fails #12

Open jayd3e opened 11 years ago

jayd3e commented 11 years ago

Installing to Heroku fails sometimes, b/c simply running any setuptools command requires requests to be installed. This is due to the fact that the version is obtained from here. Here is an example of the error message that you would receive if experiencing this error:

       Obtaining python-firebase from git+git://github.com/jayd3e/python-firebase.git#egg=python_firebase (from -r requirements.txt (line 42))
         Cloning git://github.com/jayd3e/python-firebase.git to ./.heroku/src/python-firebase
         Running setup.py egg_info for package python-firebase
           Traceback (most recent call last):
             File "<string>", line 16, in <module>
             File "/app/.heroku/src/python-firebase/setup.py", line 9, in <module>
               from firebase import __version__
             File "firebase/__init__.py", line 4, in <module>
               from firebase import *
             File "firebase/firebase.py", line 10, in <module>
               from .decorators import http_connection
             File "firebase/decorators.py", line 1, 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 16, in <module>

         File "/app/.heroku/src/python-firebase/setup.py", line 9, in <module>

           from firebase import __version__

         File "firebase/__init__.py", line 4, in <module>

           from firebase import *

         File "firebase/firebase.py", line 10, in <module>

           from .decorators import http_connection

         File "firebase/decorators.py", line 1, in <module>

           import requests

       ImportError: No module named requests`
hxjuneja commented 10 years ago

Hi @jayd3e ,

Do you found a workaround for this? I too am facing the same issue while deploying to heroku

adambratt commented 10 years ago

I'm also having this issue. I use Chef to automate deployment and it tries to install all the python packages at once. Out of 50+ packages python-firebase is the only one that has this type of dependency issue in its setup.py.

jayd3e commented 10 years ago

Yeah I just forked it https://github.com/jayd3e/python-firebase. Completely forgot about this, will try to get a pull request made asap.

adambratt commented 10 years ago

@jayd3e that'd be awesome