-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 issue because of missing __init__.py file #2706
Comments
ChatGPT and I have sat for several hours trying to resolve this issue. I've tried creating an empty .py file - No good. I get this message - Skip /Users/john/AI/ComfyUI/custom_nodes/insightface module for custom nodes due to the lack of NODE_CLASS_MAPPINGS. I've tried to use Manager in comfyUI to install missing custom nodes - no luck |
ChatGPT is saying that I need to define Node classes using the NODE_CLASS_MAPPINGS command line NODE_CLASS_MAPPINGS = { ¯_(ツ)_/¯ Any thoughts from the humans out there? |
Ok chatGPT coached me to create my own init.py file and then put the following code into it: class ExampleNode: Define the NODE_CLASS_MAPPINGS dictionaryNODE_CLASS_MAPPINGS = { ERRORS are gone!!!!! Import times for custom nodes: Starting server |
Trying to install into ComfyUI but upon bootup, the system is kicking back an error when it tries to import Insightface due to a missing init.py file
FileNotFoundError: [Errno 2] No such file or directory: '/Users/john/AI/ComfyUI/custom_nodes/insightface/init.py'
Cannot import /Users/john/AI/ComfyUI/custom_nodes/insightface module for custom nodes: [Errno 2] No such file or directory: '/Users/john/AI/ComfyUI/custom_nodes/insightface/init.py'
Import times for custom nodes:
0.0 seconds: /Users/john/AI/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds (IMPORT FAILED): /Users/john/AI/ComfyUI/custom_nodes/insightface
0.0 seconds: /Users/john/AI/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus
0.0 seconds: /Users/john/AI/ComfyUI/custom_nodes/ComfyUI_essentials
0.1 seconds: /Users/john/AI/ComfyUI/custom_nodes/ComfyUI-Manager
0.4 seconds: /Users/john/AI/ComfyUI/custom_nodes/comfyui_controlnet_aux
Anyone else having this issue?
Mac Studio M2 Ultra
The text was updated successfully, but these errors were encountered: