-
Notifications
You must be signed in to change notification settings - Fork 693
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
Plugin can't find an installed package #392
Comments
By default, the code will be executed in the container mode. Therefore, please make sure the package install environment is the docker. Or, you can try with the local mode first as your packages are usually installed there. |
I added and then, I built the image
I still get the same error. Should I register the newly built image somewhere?
|
The new image should be in your local env, which can be checked by |
OK, I see the newly built image
but the plugin still can't find the package. |
can you try to use the tag "latest" instead of 0.2 for your image? |
I deleted all containers and images, then built it with "latest" tag. Now I have only 1 image:
When I start Taskweaver, it downloads the old image again and removes the name of the image I built:
and Taskweaver gives the same error. |
The lines 148-159 in taskweaver/ces/environment.py are responsible of downloading the old image from the repo if it's not the same as the local image. Thus, I commented out these lines
This prevented Taskweaver from downloading the old image, now it's using the image I built and the plugin works well. |
okay. @liqul Can you take a look? |
I see this log from your previous reply. Did you miss adding |
@liqul no, I later split that line to multiple lines. I confirm that it is redownloading the old docker image instead of the newly built one. |
So you are saying that, after commenting out the lines in environment.py, the code still downloads the old image instead of loading your newly built one? This sounds weird and can you check if you are running the modified code? for instance, did you somehow installed TaskWeaver as a package? I'm pretty sure that the code you commented out is the only place determining which image is going to be loaded. |
No, it's the other way around. It was always re-downloading the image instead of using the one I built. I commented out these lines, now it doesn't download anything. |
Describe the bug
The plugin can't find a package which is already installed in the virtual environment.
To Reproduce
Steps to reproduce the behavior:
pip install easyocr
``Plugin image2text failed to load: Plugin image2text failed to register: failed to load plugin image2text Please install easyocr with
pip install easyocr
.`Expected behavior
use the easyocr package installed in the virtual environment.
Environment Information (please complete the following information):
The text was updated successfully, but these errors were encountered: