ValueError: Not enough samples to build a trace

No. Even if I put all the code in if __name__ == "__main__", I still get the same error. Is there any debugging flag I could enable to help figure out what’s happening?