What I am trying to do is to generate an array using Python inside Mathematica but I getting
TypeError required field:type_ignores missing Module.
Here is the image:
And then I check if the session is available with the 2+2.
You're probably using Python 3.8:
Here's the fix that worked for me, although I still have to call the python from ExternalEvaluate:
C:\Program Files\Wolfram Research\Mathematica\12.0\SystemFiles\Links\WolframClientForPython\wolframclient\utils\externalevaluate.py
Go to line 66
exec(compile(ast.Module(expressions), '', 'exec'), current)
exec(compile(ast.Module(expressions, ), '', 'exec'), current)
Referenced from: https://gist.github.com/Riebart/7622c17237a6ddb2516fd09ea67307ff