I have a python script that I want to make into an executable using py2exe. It fails when I try to import pandas (this is literally all I have in my example failing script):
It turns out that the solution is just resetting the recursion limit. So I added these lines to my setup.py file:
import sys sys.setrecursionlimit(3000)
Now the pandas import works just fine.