-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Error: Instalation AI Krita, on a Mac Pro 2009, OS Montery, GPU Raedon VII #528
Comments
Maybe not a supported Python version? Check client.log to see which version it is using. |
I'm experiencing a similar issue in the Mac environment. I can't seem to get rid of the error. Error:
PyTorch cannot be installed. My environment is as follows: macOS Monterey 12.74 M1 MAX (updated from 12.3) Similar errors occurred with all versions. Error log:
I'm installing krita-ai-diffusion in the default folder: However, some users seem to be installing it in the following location: If this issue cannot be resolved, is there a way to manually install PyTorch instead of relying on the automatic installation? I'm looking forward to using krita-ai-diffusion. Any advice on getting it to work would be greatly appreciated. |
This is an issue. It seems I'm not sure how you change that on Mac though.
No, prefer the new location not inside the plugin folder, makes updates easier (or you can choose any other path to install in) |
Thank you very much for your help. I now understand the issue with the installation folder. I thought I was using Python 3.10.6, but I realized that Python 3.8 was actually being used. When I check in the terminal, it shows 3.10.6. (Sorry, I made a mistake, it's 3.10.6, not 3.10.7)
I understood that the cause was the installer using a different Python environment. Originally, the pre-installed Python on my Mac was 3.8. For krita-ai-diffusion, I tried installing Python 3.11, but it didn't work, so I additionally installed Python 3.10. However, it seems that it wasn't being referenced. I have never used Python before, so I don't understand it well. However, I tried rewriting server.py as follows. _find_program couldn't find the correct Python.
By doing this, I was able to start the installation. The additional Python seems to be installed in /usr/local/bin/. However, the pre-installed Python doesn't seem to be in this folder. The installation proceeded smoothly up to a point, but then the following error occurred.
Manually installing this won't fundamentally solve the problem, right?
Would it be possible to add the safetensors module to the dependencies? |
Sounds like what happened might be that you started installation the first time with Python 3.8 as default python3. The first thing the installer does is create a "venv" (virtual environment), a separate place to store copies/links of all modules in order to not mess up your system Python. It's located in .../krita/ai_diffusion/server/venv At this point, if you retry the installer without deleting the venv, it will continue to use it instead of restarting from scratch. So installing additional Python versions has no effect at this point.
It already is. but maybe it was installed into the venv before the error occured, and now you're using a different environment. Anyway, it would be interesting if it picks up the correct Python and works without modifications, when you install into an empty (or non existing) folder. That's assuming you didn't already try that, then it must be something else... |
Thank you for your reply. I tried deleting ai_diffusion and reinstalling it from the beginning. However, I encountered the same error.
The safetensors module was indeed installed.
The installation log also shows:
However, I still get an error.
Why is there an error even though safetensors is installed? The result of pip list is provided below.
The installation seems to have completed successfully, but is there anything missing? I'm not sure how to solve this issue. I would appreciate any suggestions for improvement. |
It's strange. Can you try running ComfyUI from console directly?
Does it run into the same error? print anything else? |
Thanks for your reply.
However, I cannot start krita-ai-diffusion.
When I press the Configure button, an error is displayed.
|
You should be able to use the "Custom server (local or remote)" option now and connect. I don't understand either why it works manually, but not from the plugin... Maybe it makes a difference if it's start with
|
Thanks for your advice. I managed to connect successfully using the Custom server (local or remote) option. I didn't quite understand the difference between this and the -su option. The menu appeared, but I couldn't generate images. When I tried to generate an image, Python crashed with an unexpected error. Also, when I attempted live drawing, I encountered the following error: I found this article: I took the plunge and updated from Monterey to Sonoma. The Krita-AI-Diffusion plugin was grayed out, but after replacing the PyKrita data, I was able to use Krita-AI-Diffusion again. On Sonoma, I can use the Local Managed Server without any errors. Krita-AI-Diffusion is truly amazing. Thank you! |
Error: Could not find a version that satisfies the requirement torch ( from version none) Error: No matching distribution found for torch
The text was updated successfully, but these errors were encountered: