You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting "AttributeError: module 'collections' has no attribute 'Mapping'" error when trying to create a simple Gemini Server with a recent version of Python (Python 3.11). Here is what the test service looks like:
$ cat test.py
from gemeaux import App, StaticHandler
if name == "main":
urls = {}
app = App(urls)
app.run()
Here is the error when executing:
$ python3.11 ./test.py
Traceback (most recent call last):
File "/home/jgstratton/Code/gemeaux/./test.py", line 5, in <module>
app = App(urls)
^^^^^^^^^
File "/home/jgstratton/Code/gemeaux/gemeaux/init.py", line 137, in init
if not isinstance(urls, collections.Mapping):
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Mapping'
Getting "AttributeError: module 'collections' has no attribute 'Mapping'" error when trying to create a simple Gemini Server with a recent version of Python (Python 3.11). Here is what the test service looks like:
Here is the error when executing:
Here is a stackoverflow link describing the underlying issue
I have a fix, and I will be submitting a PR fairly soon.
The text was updated successfully, but these errors were encountered: