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

Compatibility issues #450

Open
hamdivazim opened this issue Sep 6, 2023 · 5 comments
Open

Compatibility issues #450

hamdivazim opened this issue Sep 6, 2023 · 5 comments

Comments

@hamdivazim
Copy link

On import this exception is raised:

AttributeError: module 'collections' has no attribute 'MutableMapping'
@hamdivazim
Copy link
Author

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

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

@hamdivazim hamdivazim changed the title AttributeError: module 'collections' has no attribute 'MutableMapping' Compatibility issues Sep 7, 2023
@AsifArmanRahman
Copy link

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

@hamdivazim
Copy link
Author

Thanks, just discovered your project - looks great!

@0xWr41th
Copy link

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

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

3 participants