Re: `import somemodule` does not check all paths in `sys.path`

2018-07-30 Thread stefand986
Note that in the `sys.path`variable the path is given as absolute path (I only wrote it relative to `~` in the in my post, but in the script the absolute path is used everywhere). See line 2: ``` ['/home/pyuser/.homeassistant', '/home/pyuser/.homeassistant/deps/lib/python3.7/site-packag

Re: `import somemodule` does not check all paths in `sys.path`

2018-07-29 Thread Chris Angelico
On Mon, Jul 30, 2018 at 3:15 PM, dieter wrote: > stefand...@gmail.com writes: >> ... >> The "story" is: In homeassistant (short HA) some modules are installed at >> runtime during first start ("bootstrapping"), and for some reason loading >> the modules fails directly after installing the module

Re: `import somemodule` does not check all paths in `sys.path`

2018-07-29 Thread dieter
stefand...@gmail.com writes: > ... > The "story" is: In homeassistant (short HA) some modules are installed at > runtime during first start ("bootstrapping"), and for some reason loading the > modules fails directly after installing the modules. Subsequent starts work > fine. > > The modules tha

Re: `import somemodule` does not check all paths in `sys.path`

2018-07-29 Thread stefand986
Am Sonntag, 29. Juli 2018 01:32:07 UTC+2 schrieb MRAB: That was also my first suspicion, but I checked that the path exists by printing the directory contents out, right before the ìmport ` statement. The "please check your config" message are a result of another package (aiohttp_cors) that is a

Re: `import somemodule` does not check all paths in `sys.path`

2018-07-28 Thread MRAB
On 2018-07-28 22:16, stefand...@gmail.com wrote: Hi everyone, I am currently investigating an interesting bug in homeassistant which is a bit hard to reproduce. I already dug so deep that I ask here, because I think the root cause has to do with how Python locates and loads modules/packages. T

`import somemodule` does not check all paths in `sys.path`

2018-07-28 Thread stefand986
Hi everyone, I am currently investigating an interesting bug in homeassistant which is a bit hard to reproduce. I already dug so deep that I ask here, because I think the root cause has to do with how Python locates and loads modules/packages. The "story" is: In homeassistant (short HA) some mod