Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mansidak opened this issue Mar 4, 2023 · 5 comments
Open

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

mansidak opened this issue Mar 4, 2023 · 5 comments

Comments

@mansidak
Copy link

mansidak commented Mar 4, 2023

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
Copy link

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
Copy link
Author

@IronRocket So you downgraded from 3.10.9?

@bvechiato
Copy link

  • downgrade to Python3.9
  • uninstall pycryptodome
  • reinstall pycryptodome to the newest version (pip will give you a dependency error, just ignore it)

@droneshire
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants