Skip to content
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 #95

Open
maiqunshan opened this issue Nov 24, 2024 · 6 comments
Open

(IMPORT FAILED) error occured #95

maiqunshan opened this issue Nov 24, 2024 · 6 comments

Comments

@maiqunshan
Copy link

Traceback (most recent call last):
File "C:\ComfyUI_MAI\ComfyUI\nodes.py", line 2024, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_MAI\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet-master_init
.py", line 185, in
installNodes()
File "C:\ComfyUI_MAI\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet-master_init_.py", line 181, in installNodes
addComfyUINodesToMapping(nodeElement)
File "C:\ComfyUI_MAI\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet-master_init_.py", line 129, in addComfyUINodesToMapping
spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_MAI\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet-master\TranslateNode\translate_node.py", line 2, in
from googletrans import Translator, LANGUAGES
File "C:\ComfyUI_MAI\python_embeded\Lib\site-packages\googletrans_init
.py", line 6, in
from googletrans.client import Translator
File "C:\ComfyUI_MAI\python_embeded\Lib\site-packages\googletrans\client.py", line 25, in
class Translator:
File "C:\ComfyUI_MAI\python_embeded\Lib\site-packages\googletrans\client.py", line 55, in Translator
proxies: typing.Dict[str, httpcore.SyncHTTPTransport] = None, timeout: Timeout = None):
AttributeError: module 'httpcore' has no attribute 'SyncHTTPTransport'

Cannot import C:\ComfyUI_MAI\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet-master module for custom nodes: module 'httpcore' has no attribute 'SyncHTTPTransport'

How to solve it?

@AlekPet
Copy link
Owner

AlekPet commented Nov 24, 2024

Hello! Usied this my comment #93 (comment) , run shell in the your direvtory (C:\ComfyUI_MAI\) or inside comfyu manager pip commands.
Updgrade or uninstall and install:

pip uninstall googletrans
pip install googletrans==4.0.0-rc1

or

pip install googletrans --upgrade

Also: https://stackoverflow.com/a/73005547/23512000

@maiqunshan
Copy link
Author

Following your method, the problem was solved, but a new problem arose. "comfyui-supir" went wrong and there was a dependency conflict. I don't know what to do? Thank you

@AlekPet
Copy link
Owner

AlekPet commented Nov 26, 2024

You can try to install the old version, I don't know if it works. googletrans==3.1.0a0. Or find the file C:\ComfyUI_MAI\python_embeded\Lib\site-packages\httpcore\client.py and replace httpcore.SyncHTTPTransport to httpcore.AsyncHTTPProxy how write this https://stackoverflow.com/a/73005547/23512000

@maiqunshan
Copy link
Author

I can't solve it, I can only give up one of them

@AlekPet
Copy link
Owner

AlekPet commented Nov 27, 2024

I can't solve it, I can only give up one of them

Or used this my branch #93 (comment) __init__.py and config.json, disable googletranlate only nodes. 😉

@maiqunshan
Copy link
Author

ok,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants