[devel at bb.net] Request for Python 3 porting help: master.cfg not in PYTHONPATH

Pierre Tardy tardyp at gmail.com
Wed Feb 1 10:24:07 UTC 2017


https://github.com/buildbot/buildbot/pull/2704


Le mer. 1 févr. 2017 à 11:07, Pierre Tardy <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/f6e54f53/attachment.html>


More information about the devel mailing list