Error: module 'inspect' has no attribute 'getargspec'

I’ve been suffered from the command of gunicorn yourapp:app command

I searched on render and found a solution: add gunicorn == version in requirements.txt
so I did.
then Error: module ‘inspect’ has no attribute ‘getargspec’
I don’t know what to do next!

Hey,

Try downgrading your Python version [https://docs.render.com/python-version] to version 3.10 getargspec isn’t a method of inspect in Python 3.11: https://docs.python.org/3.11/library/inspect.html#inspect.getargspec.

Jérémy.
Render Support, UTC+3