thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 525 forks source link

Error: cannot import name 'Mapping' from 'collections' #439

Open mansidak opened 1 year ago

mansidak commented 1 year ago

I made sure all of these:

[] Check that your version of Python is 3.4+ [] Check that you are on the newest version of Pyrebase [] Check that Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.

But I keep getting error: Error: cannot import name 'Mapping' from 'collections' (/home/ubuntu/miniconda/lib/python3.10/collections/init.py)

I belive Pyrebase is compatible with Python2 and not Python3. Thoughts on what's causing this error?

IronRocket commented 1 year ago

Ran into the same issue. I used pyenv to switch my python version to 3.9.13. I haven't had the issue again.

mansidak commented 1 year ago

@IronRocket So you downgraded from 3.10.9?

bvechiato commented 1 year ago
droneshire commented 1 year ago

Yeah its a bummer that this isn't compatible with python3.10+. Decided to not use it and just go with native firebase package again like I've done before.

AsifArmanRahman commented 1 year ago

For future reference firebase-rest-api supports 3.10 and 3.11 as well.