Problem with WinstonLutz module

Dear All

Firstly kudos to James for provinding such a wonderful opensource QA analysisi module!

I am trying to give the recently introduced WinstonLutz module a try and I get the following error

from pylinac import WinstonLutz
Traceback (most recent call last):
File “C:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py”, line 3066, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File “”, line 1, in
from pylinac import WinstonLutz
File “C:\Data\PyCharm Community Edition 5.0.2\helpers\pydev\pydev_import_hook.py”, line 21, in do_import
module = self.system_import(name, *args, **kwargs)
File "C:\Anaconda\lib\site-packages\pylinac_init
.py", line 16, in
from pylinac.winston_lutz import WinstonLutz
File “C:\Data\PyCharm Community Edition 5.0.2\helpers\pydev\pydev_import_hook.py”, line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File “C:\Anaconda\lib\site-packages\pylinac\winston_lutz.py”, line 23, in
from pylinac.cbct import get_filled_area_ratio, get_bounding_box
ImportError: cannot import name ‘get_filled_area_ratio’

Any ideas?

Thanks

Jothy

Medical Physicist
The Canberra Hospital
ACT,Australia

Someone else notified me of this and I’ve been investigating it. As far as I can tell the .whl file got corrupted somehow. I was able to replicate the problem if I installed via wheels, which is now the pip default.

If you use the --no-use-wheel flag with pip it will install the zip file. I’ve run through twice now and confirmed that installing via the zip file directly works.

I’ll work on fixing the wheel; not sure how that happened though.

Let me know if you still have problems using the zip file,

James

I’ve uploaded a new wheel/zip build to pypi as v1.2.1. The wheel and zip work correctly.