Skip to content

Cannot run app.py on python 3.12.4 #259

@roccojhu

Description

@roccojhu

Hi there, Thanks for the great work and effort spent putting together this for python, a big help to social science researchers out there. However, I am having some trouble running the app without bugs in my anaconda environment.

I get this error, which makes me suspect that the agents and map aren't even loading.

in Line 141, which runs rect_x = pos[0] + (i * width), I get a TypeError from trying to subscript a NoneType object.

This traces back to line 1707:

ERROR: Component react.component(main.SpaceDrawer) raised exception TypeError("'NoneType' object is not subscriptable")
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.12/site-packages/reacton/core.py", line 1707, in _render
root_element = el.component.f(*el.args, **el.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions