第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

ImportError:嘗試將數(shù)據(jù)提交到數(shù)據(jù)流中的Firestore時

ImportError:嘗試將數(shù)據(jù)提交到數(shù)據(jù)流中的Firestore時

寶慕林4294392 2021-03-29 13:43:27
我目前正在嘗試將數(shù)據(jù)從python apache beam數(shù)據(jù)流管道提交到firestore。但是我一直在得到錯誤我目前正在函數(shù)內(nèi)部調(diào)用firebase_admin,盡管與在文件開頭調(diào)用它相比并沒有什么不同。class FireBatch(beam.DoFn):    def process(self, element):        """        Make a batch element and send to firestore        """        import firebase_admin        from firebase_admin import credentials        from firebase_admin import firestore        cred = credentials.Certificate('./creds/pipeCreds.json')        firebase_admin.initialize_app(cred)        db = firestore.Client()有沒有一種方法可以使數(shù)據(jù)流識別管道中的firebase_admin?還是將數(shù)據(jù)從管道提交到Firestore?我已經(jīng)安裝了所有必需的軟件包,升級了pip,刷新了憑據(jù),嘗試使用google.cloud.firestore而不是fire_base admin。
查看完整描述

1 回答

?
www說

TA貢獻(xiàn)1775條經(jīng)驗 獲得超8個贊

這個問題是由于沒有使用Google SDK進(jìn)行初始化,我試圖用GitBash進(jìn)行初始化,顯然配置沒有正確設(shè)置。

下一步是使用Requirements.txt文件初始化應(yīng)用程序。

pip freeze > requirements.txt

之后,僅將應(yīng)用程序所需的文件包括在requirements.txt文件中,并通過添加以下內(nèi)容來初始化應(yīng)用程序:

--requirements_file requirements.txt

另外,有必要從更改為firebase_admin==2.11.0,firebase_admin==2.8.0因為這會引起錯誤。


查看完整回答
反對 回復(fù) 2021-04-09
  • 1 回答
  • 0 關(guān)注
  • 169 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號