Lunderberg commented on pull request #9203: URL: https://github.com/apache/tvm/pull/9203#issuecomment-936676542
Hmm. It looks like it's having trouble finding the `libtvm.so` file, but it finds it correctly during the initial import. From a quick 10-minute code dive, it looks like `sphinx_gallery` calls [`memory_profiler.memory_usage`](https://github.com/pythonprofilers/memory_profiler/blob/master/memory_profiler.py#L267). This starts a subprocess, which doesn't inherit the `sys.path` updates made in [our `conf.py`](https://github.com/hogepodge/tvm/blob/docs-refactor-respin/docs/conf.py#L55). Can you try adding `os.environ['PYTHONPATH'] = os.pathsep.join(sys.path)` to the `conf.py`, just after the modifications to `sys.path`? The environment variable should be passed to subprocesses, where the value of `sys.path` is not. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
