Comments (14)
@kevando, appengine blocks the use of multiprocessing or any form of threading that is not called by the deferred and the task queue package. The python-firebase-gae package doesn't use multiprocessing, instead it uses the deferred package to perform multiple subroutine.
pip install python-firebase-gae
from python-firebase.
Hi @CarMoreno, I haven't tested it, but the python-firebase-gae package should be working on 2.7. It was coded in py 2.7.
from python-firebase.
hello, is any workaround for this. I got the same issue downloading and building code from master branch. Thanks.
from python-firebase.
Reopening this issue on behalf of @hofline
from python-firebase.
Hello. Any workaround?
from python-firebase.
Has anybody had a solution for this?
from python-firebase.
Hi. I ended up using Requests and call the Firebase HTTP API manually!
from python-firebase.
@nckh Kudos for figuring out a workaround.
from python-firebase.
Hey @b4oshany I tried using your fork and I am still getting this error. Any idea what I'm doing wrong?
ImportError: cannot import name _args_from_interpreter_flags
from python-firebase.
Wow. @b4oshany I don't know what you said to help me understand, but I finally got it working! Thanks so much. Appengine is a tricky one.
One last question. Is it possible to create some sort of listener with a python appengine server? I want my python server to execute a function everytime there is a specific change to the firebase data (similar to how I would in node). Or would it make more sense to just set up a cron that queues firebase every minute or so.
from python-firebase.
Yeah, python-firebase-gae should be merged somehow to import either lib depending on the environment. Perhaps something like this in async.py
could be a staring point:
if os.environ.get('SERVER_SOFTWARE'):
if os.environ.get('SERVER_SOFTWARE').startswith('Development') or os.environ.get('SERVER_SOFTWARE').startswith('Google'):
from google.appengine.ext import deferred
else:
import multiprocessing
from python-firebase.
@bogdanr I had to change the async function and other functions that are within the python-firebase package to support app engine deferred module. Hence, the reason why I created a separate package instead.
from python-firebase.
@kevando It is possible to do so, but setting up a task queue (Cron Job) is easier and more convenient.
from python-firebase.
Hi @b4oshany it's amazing you have done. Right now my gae has a instance of Python 2.7. Your branch would work on Python 2.7???
from python-firebase.
Related Issues (20)
- get() param=None
- SyntaxError: invalid syntax HOT 10
- HTTPError: 400 Client Error: Bad Request for url: https://app.firebaseio.com/essential/activepassive.json
- AssertionError: daemonic processes are not allowed to have children
- How can I use phone auth?
- Missing dependencies HOT 3
- 'module' object is not callable HOT 2
- Could not install packages due to an EnvironmentError: 403 Client Error HOT 2
- merhaba özgur bey
- Giving an error saying "snapshot must be specified" when calling the firebase.get() function. HOT 2
- Any updates on the repo? HOT 2
- Noob question: FirebaseAuthentication unable to be imported HOT 2
- Custom timeout throwing TypeError
- Firebase with Kivy HOT 1
- ImportError: No module named firebase HOT 6
- firebase update the values of Unique key id Dynamically,how can i do this result7=firebase7.put('Attendance/LYGalsOeJG-7IgxYkV3' ,'CheckOutTime' ,time2) print(result7) while k=LYGalsOeJG-7IgxYkV3
- Un Authorized Because Token Generator HOT 2
- Push to pypi the updated version HOT 3
- Dealing with %20 in a key
- I cant authenticate HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-firebase.