bifacial_radiance
bifacial_radiance copied to clipboard
Images and Tkinter issue
Hi, I've followed all the instructions to install bifacial_radiance and I got two errors when trying to run the GUI using bifacial_radiance.gui().
The first error was , to solve it I had to copy the folder "images" from the downloaded files to my site-packages folder. Apparently the installation didn't copy this folder and files. Has anyone experienced the same?
A different error occurred when trying to call the GUI again, this time was "TclError: image "pyimage3" doesn't exist". After searching the web, I found what is probably a compatibility issue. The GUI code uses Tkinter.Tk() was used and once I changed it to Tkinter.Toplevel() the GUI worked fine. Anyone else experiencing the same?
Cheers.
I've seen the "pyimage3" error usually when it crashes (it's not suuper solid sorry!) and I try to run it again without restarting the kernel ~~ did you try restarting the kernel, without modifying the code to fix that?
Thanks for the reply shirubana.
I mentioned two distinct errors, though both take the word "image" in is description. The first one I'm reporting to check whether the issue was on my side or could be on the installation package. I think what's happening is that the "Images" folder is not been copied to the package folder, see error below, but this one was easily solved by manually copying the folder form the downloaded from the repo to the package folder (...\Lib\site-packages\bifacial_radiance).
The second error was the "pyimage3", it ocurred when trying to call the GUI with bifacial_radiance.gui(), but I wasn't running any script I just tried to call it in the kernel. Your suggestion worked like a charm, I restarted the kernel and the GUI worked fine. I could also circumvent this issue by changing tk.Tk at line 31 of the gui code to tk.Toplevel, however this created a second blank window that I couldn't get rid of.
Either way, I'm being able to run my simulations. Thanks a lot!
I get the same first error when using pip install. I think just adding the images folder to the package data in setup.py should resolve this.