SeanScripts / ComfyUI-PixtralLlamaMolmoVision

For loading and running Pixtral models
Apache License 2.0
63 stars 8 forks source link

Error: Failed to import transformers.models.pixtral.processing_pixtral because of the following error (look up to see its traceback): No module named 'transformers.models.pixtral.processing_pixtral' #11

Open Latentnaut opened 1 month ago

Latentnaut commented 1 month ago

Hi, I'm getting this error:

image

and I updated transformers like this: ComfyUI folder, cmd: python -m venv venv venv\Scripts\activate python -m pip install --upgrade pip pip install transformers --upgrade

SeanScripts commented 1 month ago

The file is here in the most recent version of transformers: https://github.com/huggingface/transformers/blob/main/src/transformers/models/pixtral/processing_pixtral.py

The way you upgraded it seems correct, assuming that venv is the same as the one used by ComfyUI. Not sure what the problem could be, unless it failed to install for some reason. If you install the custom node from the manager, it should run the pip install within the ComfyUI venv correctly.

On Tue, Oct 15, 2024, 1:10 PM Latentnaut @.***> wrote:

Hi, I'm getting this error:

image.png (view on web) https://github.com/user-attachments/assets/73a04325-a0cb-4311-b670-44eba84aee09

and I updated transformers like this: ComfyUI folder, cmd: python -m venv venv venv\Scripts\activate python -m pip install --upgrade pip pip install transformers --upgrade

— Reply to this email directly, view it on GitHub https://github.com/SeanScripts/ComfyUI-PixtralLlamaMolmoVision/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/APK3JMZJ7STDJ462ZWMS6M3Z3VZEZAVCNFSM6AAAAABP75TGAOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4DSNZXGI3DKOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Latentnaut commented 1 month ago

It works in a fresh installation of ComfyUI. Thank you!

SudaBad commented 1 week ago

Im also getting this issue incase you have found a cure, i will try the new comfyui method but thats less than ideal atm. Thanks

SeanScripts commented 1 week ago

Have you tried updating transformers?

On Tue, Nov 19, 2024, 12:09 AM SudaBad @.***> wrote:

Im also getting this issue incase you have found a cure, i will try the new comfyui method but thats less than ideal atm. Thanks

— Reply to this email directly, view it on GitHub https://github.com/SeanScripts/ComfyUI-PixtralLlamaMolmoVision/issues/11#issuecomment-2484982167, or unsubscribe https://github.com/notifications/unsubscribe-auth/APK3JM2ISJBIK4VCLCWIURL2BLW2BAVCNFSM6AAAAABP75TGAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBUHE4DEMJWG4 . You are receiving this because you commented.Message ID: @.*** com>

SudaBad commented 1 week ago

i followed the steps at the top of this thread and just put that file you linked into the models folder but not sure ive followed instructions properly.. will try all the steps again and get back to you thanks!

SeanScripts commented 1 week ago

That file should be inside the transformers library, not inside the models folder. If you're on Windows and using the portable version of ComfyUI, open the command prompt in the folder that has ComfyUI and python_embeded in it, and run this:

.\python_embeded\python.exe -m pip install transformers --upgrade

On Tue, Nov 19, 2024, 11:35 PM SudaBad @.***> wrote:

i followed the steps at the top of this thread and just put that file you linked into the models folder but not sure ive followed instructions properly.. will try all the steps again and get back to you thanks!

— Reply to this email directly, view it on GitHub https://github.com/SeanScripts/ComfyUI-PixtralLlamaMolmoVision/issues/11#issuecomment-2487731842, or unsubscribe https://github.com/notifications/unsubscribe-auth/APK3JMYNJTOEEMKZQIGHMYT2BQ3TFAVCNFSM6AAAAABP75TGAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBXG4ZTCOBUGI . You are receiving this because you commented.Message ID: @.*** com>