Open philipstarkey opened 4 years ago
I have the same issue when I compile a shot after changing a connection table, and the only solution is to restart runmanager:
Z:\K_ML\userlib\labscriptlib\K_ML\connection_table.py modified: all non-whitelisted modules will be reloaded next run.
Traceback (most recent call last):
File "Z:\K_ML\userlib\labscriptlib\K_ML\Cell_Fluorescence.py", line 6, in
I'm pretty late to the party here, but I've seen a similar bug before. I resolved it by adding empty __init__.py
files to the directories in userlib
wherever modules were imported from. Those files aren't in general needed for Python 3 but I've seen that some of the import machinery that labscript uses can break without them. I'm not sure that adding those files would resolve this issue as well, but it might be worth a try. If that does work, it may be worth opening another feature request issue to make the import stuff work without __init__.py
files.
Original report (archived issue) by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Labscript compilation using
import_or_reload
can crash with the following after a module has been modified:Saw this on a fresh install with Python 3.7 in miniconda, and the latest released versions of everything as of a week ago.