thisbejim / Pyrebase

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

Compatibility issues #450

Open hamdivazim opened 10 months ago

hamdivazim commented 10 months ago

On import this exception is raised:

AttributeError: module 'collections' has no attribute 'MutableMapping'
hamdivazim commented 10 months ago

Full exception:

Traceback (most recent call last):
  File "/[LOCATION]/venv/bin/poetry", line 5, in <module>
    from poetry.console import main
  File "/[LOCATION]/venv/lib/python3.10/site-packages/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/[LOCATION]/venv/lib/python3.10/site-packages/poetry/console/application.py", line 7, in <module>
    from .commands.about import AboutCommand
  File "/[LOCATION]/venv/lib/python3.10/site-packages/poetry/console/commands/__init__.py", line 4, in <module>
    from .check import CheckCommand
  File "/[LOCATION]/venv/lib/python3.10/site-packages/poetry/console/commands/check.py", line 2, in <module>
    from poetry.factory import Factory
  File "/[LOCATION]/venv/lib/python3.10/si
Traceback (most recent call last):
  File "main.py", line 4, in <module>
    import pyrebase
  File "/[LOCATION]/venv/lib/python3.10/site-packages/pyrebase/__init__.py", line 1, in <module>
    from .pyrebase import initialize_app
  File "/[LOCATION]/venv/lib/python3.10/site-packages/pyrebase/pyrebase.py", line 1, in <module>
    import requests
  File "/[LOCATION]/venv/lib/python3.10/site-packages/requests/__init__.py", line 63, in <module>
    from . import utils
  File "/[LOCATION]venv/lib/python3.10/site-packages/requests/utils.py", line 27, in <module>
    from .cookies import RequestsCookieJar, cookiejar_from_dict
  File "[LOCATION]/venv/lib/python3.10/site-packages/requests/cookies.py", line 172, in <module>
    class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'

[LOCATION] is the location of the code.

hamdivazim commented 10 months ago

Turns out it is a compatibility issue (I was using py3.10)

AsifArmanRahman commented 10 months ago

firebase-rest-api for python3.6 to python3.11.

hamdivazim commented 10 months ago

Thanks, just discovered your project - looks great!

0xWr41th commented 5 months ago

Not working even-tough using python 3.10 Python 3.10.12 (main, Nov 20 2023, 15:14:05)