I’m trying to get background callback to work with diskcache. The example works find (sleep for 1 second, etc), but when I try to use my real function (which makes an api request using the requests package), i get this:
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
Is this typical? I’m on a new M1 mac, i thought maybe that could be the problem? Or my python version (which i’ve tried everywhere from 3.6 to 3.11).
I did finally figure this out. It turns out, I was importing a package that was importing something from turtle for some reason, and not even using it. Once I removed that import, everything worked like a charm.