python-firebase icon indicating copy to clipboard operation
python-firebase copied to clipboard

Installing to Heroku fails

Open jayd3e opened this issue 12 years ago • 4 comments

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`

jayd3e avatar Nov 15 '13 21:11 jayd3e

Hi @jayd3e ,

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

hxjuneja avatar Dec 12 '13 11:12 hxjuneja

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.

adambratt avatar Feb 03 '14 17:02 adambratt

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

jayd3e avatar Feb 03 '14 21:02 jayd3e

@jayd3e that'd be awesome

adambratt avatar Feb 04 '14 17:02 adambratt