InvokeAI
InvokeAI copied to clipboard
[bug] ModuleNotFoundError: No module named 'picklescan'
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
4GB
What happened?
Hi
I installed InvokeAI about a month ago and it was working prefectly fine but since yesterday it's giving me the same error when i try to open Invoke: ModuleNotFoundError: No module named 'picklescan'. The entire error:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\InvokeAI\scripts\invoke.py:4 in
I searched everywhere on the internet but I could not find anyone having this issue or a similar one. Can someone please help me? If you have some advice please write it out in a simplifed form because I am not the most familiar with coding and things like that.
Thank you in advance!
Screenshots
No response
Additional context
No response
Contact Details
@FilipTrichkov - If you installed manually, and recently updated, you likely didn't run
conda env update
in your InvokeAI directory.
@FilipTrichkov - If you installed manually, and recently updated, you likely didn't run
conda env update
in your InvokeAI directory.
Thank you for the response! I tried inputting conda env update in Anaconda but this is what I get when I run it: EnvironmentFileNotFound: 'C:\Users\InvokeAI\environment.yml' file not found
I tried with git pull in Powershell as well and I still get the same error. :(
Do you happen to know how I can proceed?
@FilipTrichkov Did you remember to copy the correct enviroment.yml by using
Macintosh and Linux using a symbolic link:
ln -sf environments-and-requirements/environment-xxx-yyy.yml environment.yml
Replace xxx and yyy with the appropriate OS and GPU codes.
Windows:
copy environments-and-requirements\environment-win-cuda.yml environment.yml
The details are in https://github.com/invoke-ai/InvokeAI/releases/tag/v2.2.3 under Upgrading
@Yorzaren Thank you! I followed the instruction in the Upgrading section of https://github.com/invoke-ai/InvokeAI/releases/tag/v2.2.3:
- I downlaoded the source code and unzipped it
- I ran 'cd invokeai-2.2.3' and then the command copy environments-and-requirements\environment-win-cuda.yml environment.yml
- Afterwards I ran conda env update conda activate invokeai python scripts/preload_models.py
- Then when I try to run python scripts/invoke.py I still get the same 'no module named pickescan' error. :(
Is there anything else you would suggest I should do?
Oh wait, @FilipTrichkov Are you doing the following?
- Opening Conda:
cd invokeai
>conda activate invokeai
>python scripts/invoke.py
If you do it the above way, it does toss errors.
I think the devs changed it. You have to start it using the invoke.bat