Closed philipstarkey closed 6 years ago
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Thanks for the report! That's strange. Easily fixed, but I can't guess why sys.modules would be modified during that loop. That would imply something's being imported mid-loop. Perhaps an import in another thread. Anyway, will fix.
Original comment by fretchen (Bitbucket: fretchen).
Hi Chris,
the error is raise within the following context:
#!python
from app import app
from app.forms import LoginForm, FileForm
from flask import render_template, flash, redirect
import labscript_utils
from lyse import *
One should also know that I did not go through the full installer as I want to have some flexibility on where I install lyse etc later-on. In the meantime, I found that running this many times the error disappears. So the bug still remains, but I have a hard time understanding it.
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Must be additional threads in flask or something else.
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Should be fixed by pull request #44
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Merged in cbillington/labscript_utils/bugfix (pull request #44)
Fix issue #17
→ \<\<cset a5c2833a6b098bd906b77408f2fde10395fb9a69>>
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Fix issue #17
→ \<\<cset 11cf5482f69bff150f95d80d67d7f58dd3965b47>>
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Merged in cbillington/labscript_utils/bugfix (pull request #44)
Fix issue #17
→ \<\<cset a5c2833a6b098bd906b77408f2fde10395fb9a69>>
Original report (archived issue) by fretchen (Bitbucket: fretchen).
If I run labscript_utils in python3 this error is raised.
It would seem that this is a known issue