cutright / DVH-Analytics

A DICOM Database Application for Radiation Oncology
Other
82 stars 30 forks source link

Graphs will not show #90

Closed SotiriStathakis closed 3 years ago

SotiriStathakis commented 4 years ago

Hi, I am new to python but I am very interested in the DVH analytics. I have recently installed DVH analytics on Windows 10 PC. I have imported a few patients but when we query the database the DVH, regression, correlation, etc graphs are not populated. What could be the issue?

Thank you in advance,

Sotiri Stathakis

cutright commented 4 years ago

Which version of Bokeh is installed?

SotiriStathakis commented 4 years ago

It is bokeh-1.4.0-py3.8.egg

-S


From: Dan Cutright notifications@github.com Sent: Wednesday, July 29, 2020 2:36 PM To: cutright/DVH-Analytics DVH-Analytics@noreply.github.com Cc: SotiriStathakis artakianos@gmail.com; Author author@noreply.github.com Subject: Re: [cutright/DVH-Analytics] Graphs will not show (#90)

Which version of Bokeh is installed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcutright%2FDVH-Analytics%2Fissues%2F90%23issuecomment-665861209&data=02%7C01%7C%7C7165890a415f4992484808d833f6b09b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637316481896187248&sdata=2Ld7Z%2FoOlegIsHb6D1dgnmS28vYHOhOBA3T2MXI5PKo%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMVYLWTB7AO7UC4IL6H5FLDR6B23XANCNFSM4PL6I45Q&data=02%7C01%7C%7C7165890a415f4992484808d833f6b09b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637316481896187248&sdata=w%2B1gJOch5SAiamgRnQHm8z9KS02HkDUZngeJTqhWwGY%3D&reserved=0.

cutright commented 4 years ago

If you go into the Database Administrator, click on the "Query" button. That should give you a table below of all imported plans. Do any show up?

Do you get any errors on screen? If you go to your Windows user folder ~/Apps/dvh_analytics/logs/dvha.log, does it say anything?

cutright commented 4 years ago

Also... are there any HTML files in ~/Apps/dvh_analytics/data/temp? For the Windows version of DVHA, all of the plot views are stored there.

SotiriStathakis commented 4 years ago

The dvha log file is there but has no content. it is a 0KB file. There are html files in the temp. I can open them if I double click them and direct IE to allow blocked content. How do I fix IE not to block the graphs

Sotiri


From: Dan Cutright notifications@github.com Sent: Wednesday, July 29, 2020 3:26 PM To: cutright/DVH-Analytics DVH-Analytics@noreply.github.com Cc: SotiriStathakis artakianos@gmail.com; Author author@noreply.github.com Subject: Re: [cutright/DVH-Analytics] Graphs will not show (#90)

Also... are there any HTML files in ~/Apps/dvh_analytics/data/temp? For the Windows version of DVHA, all of the plot views are stored there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcutright%2FDVH-Analytics%2Fissues%2F90%23issuecomment-665908137&data=02%7C01%7C%7C17b33527ad574a0d807e08d833fdb260%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637316511989649102&sdata=22la0bcerVNbTbIkx7o4G3Da7OHjPcpc%2BqwxkINgTwY%3D&reserved=0, or unsubscribehttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMVYLWXK5L6SQCWZHJM3HZ3R6CAXXANCNFSM4PL6I45Q&data=02%7C01%7C%7C17b33527ad574a0d807e08d833fdb260%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637316511989649102&sdata=oB2uSmatABM2LkK5KkKGpim0ut%2Bcs8wEk72mBj8rLRs%3D&reserved=0.

cutright commented 4 years ago

I was under the impression that issue was solved by this code: https://github.com/cutright/DVH-Analytics/blob/c23031ab246128593487caf6efe68301290fb657/dvha/tools/windows_reg_edit.py#L38-L42

But perhaps not. Maybe try editing your security settings in IE internet options directly? Unfortunately, wxPython uses IE by default for their Windows webview object. There's also a possibility you may need to be an admin user? This is the first time I've seen this error a long time.

SotiriStathakis commented 4 years ago

Hi, It seems that the problem is that the PC i am working on has the IE explorer restricted of using ActiveX. It is IT policy and they do not authorize it. I wonder if there is a way to bypass the ActiveX.

Thank you for your help troubleshooting the issue.

Sotiri


From: Dan Cutright notifications@github.com Sent: Wednesday, July 29, 2020 3:40 PM To: cutright/DVH-Analytics DVH-Analytics@noreply.github.com Cc: SotiriStathakis artakianos@gmail.com; Author author@noreply.github.com Subject: Re: [cutright/DVH-Analytics] Graphs will not show (#90)

I was under the impression that issue was solved by this code: https://github.com/cutright/DVH-Analytics/blob/c23031ab246128593487caf6efe68301290fb657/dvha/tools/windows_reg_edit.py#L38-L42https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcutright%2FDVH-Analytics%2Fblob%2Fc23031ab246128593487caf6efe68301290fb657%2Fdvha%2Ftools%2Fwindows_reg_edit.py%23L38-L42&data=02%7C01%7C%7Cf31745fd61684b21885708d833ff950d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637316520088070163&sdata=SQYFFNSU32IwNguSm%2Ft80%2BUq3wjgZpaF3ZOeSTAvBf8%3D&reserved=0

But perhaps not. Maybe try editing your security settings in IE internet options directly? Unfortunately, wxPython uses IE by default for their Windows webview object. There's also a possibility you may need to be an admin user? This is the first time I've seen this error a long time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcutright%2FDVH-Analytics%2Fissues%2F90%23issuecomment-665914737&data=02%7C01%7C%7Cf31745fd61684b21885708d833ff950d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637316520088070163&sdata=C1AbmnCFSgbMNuZeHw1dbMchOVWVAPpLlwOACTi3n8E%3D&reserved=0, or unsubscribehttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMVYLWRN6YIL7KMFZ7UHN6TR6CCKNANCNFSM4PL6I45Q&data=02%7C01%7C%7Cf31745fd61684b21885708d833ff950d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637316520088080160&sdata=n1yx27UXx99bXu5jSIDXBUcJ8Oz1BIb4%2FHf5UtzUHd4%3D&reserved=0.

cutright commented 4 years ago

Honestly, getting DVHA to work on Windows at all has been the most frustrating part because its web emulation uses Internet Explorer (IE). That's the reason I have to cap Bokeh at 1.4, I believe they stopped bothering to support IE on the next version (2.0)... and rightfully so... IE is the worst.

There is a way to get wxPython to use Edge per their documentation. Maybe you could have better luck than me? It's only one more line of code on the DVHA side I think, but the rest has to do with your local environment... not sure if IT would let you do that either?

Worst case scenario, and it's kind of a crappy one... but you could manually open the plots from the temp folder with Chrome (there's a reasonable chance IT hasn't locked down the ability to run Chrome since you don't have to "install" it).

cutright commented 3 years ago

Just noticed this in the wxPython Discuss board. Looks promising: https://discuss.wxpython.org/t/ms-edge-backend-for-webview/34953

cutright commented 3 years ago

I was able to switch the backend to Edge, but the plots didn't show on screen. I'll keep poking around.

cutright commented 3 years ago

Progress! I got Edge to work with the latest wxPython dev build, and its demo code works with DVHA's bokeh plots. Now just gotta figure out why DVHA won't display the web view when Edge is set as the backend. Also, the pan, box zoom, and legend interaction work with Edge!

cutright commented 3 years ago

Getting very close. It looks like the code to get this to work is very minimal. However, there is a bug in wxPython that crashes Edge webviews not in the first wx.Notebook page. Issue posted here: https://discuss.wxpython.org/t/ms-edge-backend-fails-in-notebook-other-than-first-page/35036

cutright commented 3 years ago

Making good progress finally. I know what needs to be done at least. I'll probably have MS Edge compatibility for v0.9.3.

image

cutright commented 3 years ago

Finally! MS Edge is supported in the current v0.9.3 branch, for Windows users only (macOS works just fine, so no need to switch the web backend).

Note that I don't, at the moment, have a way to verify this is all you have to do, but I'm pretty sure that's all I did on my MSW7 computer at work.

cutright commented 3 years ago

Just posted a pre-release of v0.9.3, which includes a Windows executable and support for MS Edge backend. Please read the release notes.

https://github.com/cutright/DVH-Analytics/releases/tag/v0.9.3.rc1

cutright commented 3 years ago

v0.9.3 has been released, if you install Edge beta per the release notes, I think this will resolve the ActiveX issue. https://github.com/cutright/DVH-Analytics/releases/tag/v0.9.3