[devel at bb.net] Request for Python 3 porting help: master.cfg not in PYTHONPATH
Craig Rodrigues
rodrigc at crodrigues.org
Wed Feb 1 18:24:32 UTC 2017
It worked! Thanks
--
Craig
On Wednesday, February 1, 2017, Pierre Tardy <tardyp at gmail.com> wrote:
> https://github.com/buildbot/buildbot/pull/2704
>
>
> Le mer. 1 févr. 2017 à 11:07, Pierre Tardy <tardyp at gmail.com
> <javascript:_e(%7B%7D,'cvml','tardyp at gmail.com');>> a écrit :
>
>>
>>> For some reason, on Python 3, it cannot consistently find othermodule,
>>> because othermodule was not in the PYTHONPATH used when originally
>>> starting buildbot.
>>>
>> This one was quite interresting.
>> It looks like python3 added some optimization for the import method.
>> both tests are importing files from _trialtemp/configdir , but between
>> the two tests, the list available modules actually change.
>> In the second test however, if you run from within the same python
>> runtime, then python won't look again at the directory, and thus wont see
>> it has changed since last time.
>> So it will not find the new module. If we change 'configdir' with
>> mkstemp, then it will work.
>>
>> I'll send a PR with a fix.
>>
>> Pierre
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/devel/attachments/20170201/04c761a4/attachment.html>
More information about the devel
mailing list