watcher.py trying to import old VMAT class #136
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
HI James
I've picked up on pylinac after a while and when I run it I get the error below running on Fedora 26. It seems as though line 25 of watcher.py is still trying to import the VMAT class. I've changed it to DRGS, DRMLC which seems to work (at least on the demo images). I've created a pull request on my fork.
Regards
Alan
Traceback (most recent call last):
File "", line 1, in
File "/opt/pycharm-community-2018.2.2/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/alanphys/Programs/pylinac/pylinac/init.py", line 24, in
from pylinac.watcher import watch, process
File "/opt/pycharm-community-2018.2.2/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/alanphys/Programs/pylinac/pylinac/watcher.py", line 25, in
from pylinac import VMAT, Starshot, PicketFence, WinstonLutz, LeedsTOR, StandardImagingQC3, load_log, LasVegas
ImportError: cannot import name 'VMAT'