Receiving .async error when trying to import the firebase package

前端 未结 4 595
猫巷女王i
猫巷女王i 2021-01-11 09:46

I\'m trying to write a python script that requires a connection to firebase. I\'ve installed the python-firebase package, but when I import it into my program using \'

4条回答
  •  借酒劲吻你
    2021-01-11 10:25

    The problem is that async is a keyword in python 3.7 the solution is quite simple.

    Just rename the file async.py to something other like asyncn.py and replace every from .async import process_pool in the files firebase.py , decorators.py and others , to from .asyncn import process_pool

    Edit:

    Also it might still persist so change it from init.py file

提交回复
热议问题