Skip to content

which python version works with this tutorial? #216

@pifparfait

Description

@pifparfait

I’m encountering an issue with a model in Google Colab and would appreciate your help. Specifically, I’m trying to figure out which version of Python is required to execute the following notebook correctly: Google Colab Mesa-Geo Tutorial.

TypeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 model = GeoSIR()
2 model.step()

3 frames
/usr/local/lib/python3.10/dist-packages/mesa_geo/geoagent.py in create_agent(self, geometry, unique_id)
157 raise ValueError("Model must be a valid Mesa model object")
158
--> 159 new_agent = self.agent_class(
160 unique_id=unique_id,
161 model=self.model,

TypeError: NeighbourhoodAgent.init() got an unexpected keyword argument 'unique_id'

I believe this may be related to a compatibility issue between the Mesa-Geo package and the version of Python being used. Any guidance on which version of Python is best for running this notebook or how to resolve this error would be greatly appreciated.

Thanks in advance for your help!

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions