Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing files and directories #4

Open
tht12837a opened this issue Feb 15, 2023 · 2 comments
Open

Missing files and directories #4

tht12837a opened this issue Feb 15, 2023 · 2 comments

Comments

@tht12837a
Copy link

tht12837a commented Feb 15, 2023

Several issues that prevent the code from running. Trying to run on Windows 11, 64-bit, Changed the Build target to 64-bit.

  1. The app is looking for a "App.xml" file, which is not found. \

  2. After circumventing that by creating an App object with random version, say "0001," the app proceeds throwing "Could not find part of path..." which makes sense if you look at the code. The app is actually searching for hard-coded paths in the bin "Debug" or "Release" folder, depending on what you are running. These directories are "output," "stable-diffusion," etc. and they are not created. On top of that, it sets the "samplesDir" variable to:
    var samplesDir = WorkingDirectory + "\stable-diffusion\outputs\" + samples;

and then deletes the directory if it exists. A few lines down, it is actually trying to use it, which throws another error:
var dir = Directory.GetDirectories(WorkingDirectory + @"\stable-diffusion\outputs" + samples)[0];

In order to reproduce, install the app in a new folder and try to run it. You should see the errors that I am getting as well. Screenshot from the one that pops up after I comment the "App.xml" code:

image

@securigy
Copy link

securigy commented Feb 18, 2023

I am getting the same as described... I selected: "Start with Visual Studio"... what a shame...

@AldeRoberge
Copy link

You are correct, this is the problematic code.

image

I was not able to find the fix for the "Could not find a part of the path..." error.

Any help @SocketByte?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants