3 ms·
This reminds of the time I was not able to get setproctitle to work in certain code base. Eventually I narrowed the issue to this line: import numpy setproc
by janmatejka 2y ago
This reminds of the time I was not able to get setproctitle to work in certain code base. Eventually I narrowed the issue to this line:
import numpy
setproctitle() worked before numpy import but not after because it couldn't find the memory address of **environ.
I'm hazy on the details but it led me to a somethingenv call (possibly getenv or setenv) in numpy initialization and it turned out that function changed the address of **environ and that was the reason for why setproctitle couldn't find it.