firebase / firebase-functions-python

Apache License 2.0
135 stars 22 forks source link

Python: Documentation says "from firebase_functions.core import init", however this library doesn't exist at all. Where is it? #205

Open onakatomi opened 5 months ago

onakatomi commented 5 months ago

I'm trying to use parameters in global scope for Firebase Functions using StringParam. I'm using Python; firebase CLI version 12.7.0.

I'm reading the docs (here: https://firebase.google.com/docs/functions/config-env?gen=2nd#python_1) and as you can see there it is saying to do from firebase_functions.core import init and then use the @init decorator. This init import dones't exist though!

What is going on?

Error: ImportError: cannot import name 'init' from 'firebase_functions.core'

google-oss-bot commented 5 months ago

I found a few problems with this issue:

exaby73 commented 4 months ago

Hey @onakatomi. Firstly, I think this issue belongs in firebase/firebase-functions-python :) I'll transfer this issue there. But other than that, could you tell me the version of the library you're using?