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

[BUG] Access is denied: 'generated_images' on Windows #297

Open
PowZone opened this issue Dec 2, 2024 · 1 comment
Open

[BUG] Access is denied: 'generated_images' on Windows #297

PowZone opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
🐞 bug Something isn't working

Comments

@PowZone
Copy link

PowZone commented Dec 2, 2024

Issue Description

from command line:
Error during text to image generation: [WinError 5] Access is denied: 'generated_images'

from web ui:
Traceback: Traceback (most recent call last): File "C:\Program Files (x86)\Nexa-SDK_internal\nexa\gguf\streamlit\streamlit_image_chat.py", line 317, in images = generate_images( ^^^^^^^^^^^^^^^^ File "C:\Program Files (x86)\Nexa-SDK_internal\nexa\gguf\streamlit\streamlit_image_chat.py", line 97, in generate_images os.makedirs(output_dir) File "", line 225, in makedirs PermissionError: [WinError 5] Access is denied: 'generated_images'

Steps to Reproduce

  1. Install Nexa SDK with Windows installer
  2. Run lcm-dreamshaper model from command line or with -st

OS

Windows 11

Python Version

version of Window installer 0.0.9.5 ?

Nexa SDK Version

0.0.9.5

GPU (if using one)

RTX 4080

@PowZone PowZone added the 🐞 bug Something isn't working label Dec 2, 2024
@zhycheng614
Copy link
Collaborator

zhycheng614 commented Dec 7, 2024

Thank you for your question!

Your problem may due to your lack of admin access on your Windows machine, with your current logged in user., when trying to write the generated image file into a system directory.
To solve this problem, you can try one of the followings:

  1. Launch app with "Run as admin" option, generally in the right-click menu of the app, then run the same command as you did.
  2. Uninstall the windows app, then install it into a different location not under C:\Program Files (x86), but under C:\Users<your-user-name>\ or other disk that your current user has access to write file into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants