11cafe / comfyui-workspace-manager

A ComfyUI workflows and models management extension to organize and manage all your workflows, models in one place. Seamlessly switch between workflows, as well as import, export workflows, reuse subworkflows, install models, browse your models in a single workspace
GNU General Public License v3.0
1.01k stars 47 forks source link

dbm.error: db type is dbm.gnu, but the module is not available #436

Open darkmirrors opened 1 month ago

darkmirrors commented 1 month ago

今天用 conda 来统一环境,但是报这个错误,有头绪吗?

Traceback (most recent call last):
  File "/mnt/data0/work/ComfyUI/nodes.py", line 1906, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/__init__.py", line 16, in <module>
    from .service.model_manager.model_installer import *
  File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in <module>
    from .model_list import start_populate_file_hash_dict, save_file_hash
  File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in <module>
    with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 243, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 227, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
                         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/dbm/__init__.py", line 91, in open
    raise error[0]("db type is {0}, but the module is not "
dbm.error: db type is dbm.gnu, but the module is not available

Cannot import /mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available
Weixuanf commented 1 month ago

ohh ok 我回头加个catch这里 你用的什么python版本


From: darkmirrors @.> Sent: Wednesday, July 10, 2024 6:03:29 PM To: 11cafe/comfyui-workspace-manager @.> Cc: Subscribed @.***> Subject: [11cafe/comfyui-workspace-manager] dbm.error: db type is dbm.gnu, but the module is not available (Issue #436)

今天用 conda 来统一环境,但是报这个错误,有头绪吗?

Traceback (most recent call last): File "/mnt/data0/work/ComfyUI/nodes.py", line 1906, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/init.py", line 16, in from .service.model_manager.model_installer import * File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in from .model_list import start_populate_file_hash_dict, save_file_hash File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 243, in open return DbfilenameShelf(filename, flag, protocol, writeback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 227, in init Shelf.init(self, dbm.open(filename, flag), protocol, writeback) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/dbm/init.py", line 91, in open raise error[0]("db type is {0}, but the module is not " dbm.error: db type is dbm.gnu, but the module is not available

Cannot import /mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available

― Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/436, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOJ7DJVLX6FOXGXKGJ3ZLUBHDAVCNFSM6AAAAABKUR4QJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDAMZQGE2DIMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Weixuanf commented 1 month ago

噢我看到了你用的11,奇怪..没事 我回头加个catch吧这个不是必须要用的 主要是缓存models list


From: Weixuan F @.> Sent: Wednesday, July 10, 2024 6:12:23 PM To: 11cafe/comfyui-workspace-manager @.>; 11cafe/comfyui-workspace-manager @.> Cc: Subscribed @.> Subject: Re: [11cafe/comfyui-workspace-manager] dbm.error: db type is dbm.gnu, but the module is not available (Issue #436)

ohh ok 我回头加个catch这里 你用的什么python版本


From: darkmirrors @.> Sent: Wednesday, July 10, 2024 6:03:29 PM To: 11cafe/comfyui-workspace-manager @.> Cc: Subscribed @.***> Subject: [11cafe/comfyui-workspace-manager] dbm.error: db type is dbm.gnu, but the module is not available (Issue #436)

今天用 conda 来统一环境,但是报这个错误,有头绪吗?

Traceback (most recent call last): File "/mnt/data0/work/ComfyUI/nodes.py", line 1906, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/init.py", line 16, in from .service.model_manager.model_installer import * File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in from .model_list import start_populate_file_hash_dict, save_file_hash File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 243, in open return DbfilenameShelf(filename, flag, protocol, writeback) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 227, in init Shelf.init(self, dbm.open(filename, flag), protocol, writeback) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/dbm/init.py", line 91, in open raise error[0]("db type is {0}, but the module is not " dbm.error: db type is dbm.gnu, but the module is not available

Cannot import /mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available

― Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/436, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOJ7DJVLX6FOXGXKGJ3ZLUBHDAVCNFSM6AAAAABKUR4QJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDAMZQGE2DIMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Icedcocon commented 2 weeks ago

Same promblem.

Traceback (most recent call last):
  File "/root/ComfyUI/nodes.py", line 1993, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/ComfyUI/custom_nodes/comfyui-workspace-manager/__init__.py", line 16, in <module>
    from .service.model_manager.model_installer import *
  File "/root/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in <module>
    from .model_list import start_populate_file_hash_dict, save_file_hash
  File "/root/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in <module>
    with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open:
  File "/opt/conda/lib/python3.10/shelve.py", line 243, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/opt/conda/lib/python3.10/shelve.py", line 227, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
  File "/opt/conda/lib/python3.10/dbm/__init__.py", line 91, in open
    raise error[0]("db type is {0}, but the module is not "
dbm.error: db type is dbm.gnu, but the module is not available

Cannot import /root/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available