Re: __import__ fails randomly due to missing file

2018-03-12 Thread Arkadiusz Bulski
I inserted importlib.invalidate_caches() instead of os.sync() and at a glance, it seems to have fixed it. Big thanks Paul! pon., 12 mar 2018 o 11:00 użytkownik Paul Moore napisał: > On 12 March 2018 at 09:12, Arkadiusz Bulski wrote: > > Hi, > > > > For the record, I am the developer of Constr

Re: __import__ fails randomly due to missing file

2018-03-12 Thread Paul Moore
On 12 March 2018 at 09:12, Arkadiusz Bulski wrote: > Hi, > > For the record, I am the developer of Construct library. And the question > relates to it. > https://construct.readthedocs.io/en/latest/# > > I have an issue of Travis failing randomly at test cases. The cause is > always __import__ fail

__import__ fails randomly due to missing file

2018-03-12 Thread Arkadiusz Bulski
Hi, For the record, I am the developer of Construct library. And the question relates to it. https://construct.readthedocs.io/en/latest/# I have an issue of Travis failing randomly at test cases. The cause is always __import__ failing to import a dynamically generated code. Library generates a st