question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gui Option throws error

See original GitHub issue

Okay so I’ve spent some time digging through the current prdgui.py. The original error I got was

Traceback (most recent call last):
  File "C:\Users\kyle\progrockdiffusion\prdgui.py", line 77, in run
    self.func()
TypeError: do_run() missing 1 required positional argument: 'batch_num'

After moving prdgui.rungui(do_run(), side_x, side_y) a few lines down in prd.py and changing it to prdgui.run_gui(do_run(batch_image), side_x, side_y) I get a new error:

  File "prd.py", line 2859, in <module>
    prdgui.run_gui(do_run(batch_image), side_x, side_y)
  File "prd.py", line 1741, in do_run
    prdgui.update_image(image)
  File "C:\Users\kyle\progrockdiffusion\prdgui.py", line 94, in update_image
    window.setPixmap(img)
AttributeError: 'NoneType' object has no attribute 'setPixmap'

I have played around with the code and it seems that the global variable window is not being changed from the value None to Window(worker_func, width, height), or at least it is not sticking? I don’t have a clue. There is was too much OOP going on. My head explodes with all the constructors and self and idk… I need to go back to the basics.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
lowfuelcommented, Jul 23, 2022

Yeah you could totally just have a direct install, conda is not required it just makes it easy to have a contained environment. There are several people on Discord who have setup PRD to run via a Discord bot that might be able to help you there (reach out to bit_FLIP on the Disco Diffusion discord, he has one called Synthia).

1reaction
lowfuelcommented, Jul 22, 2022

Personally, I think the answer might be to simply create a GUI that can read/write settings files, provide controls and input mechanisms for those settings, and select command line options, and then fire off prd.py and display the results as they render. I don’t see a major reason to having the gui be inside prd itself, at least off the top of my head.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception Handling in a gui application
I e.g. have a function that saves a company newly created by the user in a (embedded) database. The function for saving the...
Read more >
Error Unable to Create GUI Exiting Kodi all Version 6 Easy ...
Error Unable to Create GUI Exiting #Kodi all Version 6 Easy Ways Fixedunable to ... windows 10, unable to create gui exiting windows...
Read more >
Installer UI Mode Error on windows 10
The installer cannot run in UI mode. to specify the interface mode, use the -i common-line option, followed by the UI mode identifier....
Read more >
Error Handling in Agents and Custom User Interfaces
When an agent cannot complete an operation, the operation method throws an exception. The error result propagates back through the server to the...
Read more >
Errors in GUI "Operation could not complete due to a ...
You have recently upgraded from v9 using the "restore from previous database" option and are getting errors in the GUI when accessing various...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found