gil_load icon indicating copy to clipboard operation
gil_load copied to clipboard

ImportError: cannot import name preload_path

Open lsmithso opened this issue 6 years ago • 2 comments

Hi: I'd like to contribute a simple gil_load decorator. I tried forking master but get the following error:

import gil_load Traceback (most recent call last): File "", line 1, in File "gil_load/init.py", line 1, in from .gil_load import init, test, start, stop, get, preload_path ImportError: cannot import name preload_path

There are no 'preload_path*' files in the repo.

lsmithso avatar Sep 16 '17 10:09 lsmithso

Ah, sorry, master is not functional at the moment - I'm in the middle of adding functionality so that statistics for how long each individual thread is waiting for the GIL can be collected. This is changing how gil_load works considerably, and necessitating that LD_PRELOAD be set in order to do profiling (hence the error talking about "preload path").

It's almost done. I just pushed the unpushed commits I had so far, but there's a little bit of work to be done still. I'll finish it and probably make the context manager myself I think before releasing as a new version.

chrisjbillington avatar Sep 16 '17 17:09 chrisjbillington

I know this is very late, but I have made master functional again and released v0. 4. I'll leave this issue open as a feature request for such a decorator, and will likely implement it soon.

chrisjbillington avatar Sep 23 '19 18:09 chrisjbillington