-
Notifications
You must be signed in to change notification settings - Fork 60
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
(IMPORT FAILED) error occured #99
Comments
Hi, I already answered a similar question #93 (comment) |
(venv) ComfyUI % pip install argostranslate × Preparing metadata (pyproject.toml) did not run successfully.
|
Hello try reinstall PyQt5, in your enviroment where comfyu installed or in Comfyu Manager . pip install PyQt5==5.15.4 and then pip install argostranslate or uninstall pip uninstall PyQt5==5.15.4
pip install PyQt5==5.15.4 and then pip install argostranslate |
Pip install PyQt5==5.15.4 prompts failure The details are as follows: (venv) lishrliu@lishrliudeMacBook-Pro ComfyUI % pip install sip==5.5.0 (venv) lishrliu@lishrliudeMacBook-Pro ComfyUI % pip install PyQt5==5.15.4 × Preparing metadata (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. (venv) lishrliu@lishrliudeMacBook-Pro ComfyUI % pip install PyQt5 (venv) lishrliu@lishrliudeMacBook-Pro ComfyUI % pip install argostranslate × Preparing metadata (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. [START] ComfyUI AlekPet Nodes v1.0.35Node -> ChatGLMNode: ChatGLM4TranslateCLIPTextEncodeNode, ChatGLM4TranslateTextNode [Loading] Node -> ExtrasNode: PreviewTextNode, HexToHueNode, ColorsCorrectNode [Loading] × Preparing metadata (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
I see it still complains about PyQt, it says that your version is higher than necessary.The error occurs because PyQt5==5.15.4 is being installed from source, and it relies on a specific version of qmake that is missing or not configured properly in your system. However, newer versions of PyQt5 (e.g., 5.15.11) are being installed successfully because they come with prebuilt wheels for your macOS environment. argostranslate is requiring an older PyQt5==5.15.4, which complicates things. If you don't need argostranslate, you don't have to use it, read here #95 (comment), #93 (comment) . If you still need it, look here, it's related to macOS need before install argostranslate argosopentech/argos-translate#112 (comment) Or:
pip install PyQt5
pip install argostranslate --no-deps
pip install requests tqdm |
I gave up, even manual installation was unsuccessful。 |
Try disabling argostranslate as I wrote above if you don't need it #93 (comment) . And so manual installation implies first completely removing argostranslate, installing the latest PyQt5 for your machine and then manually installing argostranslate without packages and installing packages manually in accordance with the packages (not use spacy on used PyQt5) Or Prebuilt wheels for PyQt5==5.15.4 may not be available for your macOS version, but you can force a compatible version.
pip install PyQt5==5.15.4 --only-binary :all: Or Build and Install PyQt5==5.15.4 Locally If you must use PyQt5==5.15.4:
brew install qt@5
export PATH="/usr/local/opt/qt@5/bin:$PATH"
pip install PyQt5==5.15.4 Or ask questions on https://github.com/argosopentech/argos-translate |
Created environment again, specified qt@5 It has been successful, thank you very much. |
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "/Users/lishrliu/StableDiffusion/ComfyUI/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
The text was updated successfully, but these errors were encountered: