MolecularNodes icon indicating copy to clipboard operation
MolecularNodes copied to clipboard

KeyError: 'bpy_prop_collection[key]: key "Group Input" not found'

Open yamaguchiraf opened this issue 2 years ago • 6 comments

Hi, I'm trying "Download from the PDB" and "Load MD Trajectory File" according to your document. However, I got the same error in both cases. Thanks!

Python: Traceback (most recent call last):
  File "C:\Users\ryohei.yamaguchi\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\molecular_nodes\__init__.py", line 2471, in invoke
    return self.execute(context)
  File "C:\Users\ryohei.yamaguchi\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\molecular_nodes\__init__.py", line 2458, in execute
    sna_func_import_structure_EE5B6(
  File "C:\Users\ryohei.yamaguchi\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\molecular_nodes\__init__.py", line 1583, in sna_func_import_structure_EE5B6
    sna_setup_node_tree_272D6(output_name, unique_chains, base_model,
  File "C:\Users\ryohei.yamaguchi\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\molecular_nodes\__init__.py", line 2599, in sna_setup_node_tree_272D6
    create_starting_node_tree(collection_of_properties=col_properties,
  File "C:\Users\ryohei.yamaguchi\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\molecular_nodes\__init__.py", line 2523, in create_starting_node_tree
    node_input = node_mod.node_group.nodes['Group Input']
KeyError: 'bpy_prop_collection[key]: key "Group Input" not found'

location: <unknown location>:-1

yamaguchiraf avatar May 24 '22 15:05 yamaguchiraf

Thanks for reporting the bug! Are you able to give more info as to what version of Molcular Nodes you are using, which Blender version and what OS you are working on?

BradyAJohnston avatar May 24 '22 23:05 BradyAJohnston

Molecular Nodes: 0.5.20 Blender: 3.1.2 OS: Windows11 mdanalysis: 2.1.0 (Build: py310hf5e1058_4, Repository: conda-forge)

yamaguchiraf avatar May 25 '22 00:05 yamaguchiraf

I can't seem to replicate the issue at all. Are you able to provide screenshots of what Blender looks like after attempting import? It seems like the protein might be imported correctly but that the node trees fail when being set up.

This is a known issue for Blender 3.2 beta which I am yet to fix, but I haven't come across it in earlier versions.

BradyAJohnston avatar May 25 '22 01:05 BradyAJohnston

I switched the Blender's language from Japanese to English to take screenshots and the error was resolved! Thanks!

yamaguchiraf avatar May 25 '22 02:05 yamaguchiraf

An interesting bug - I wouldn't have thought that language would cause this kind of error, but glad to know it's resolved!

BradyAJohnston avatar May 25 '22 02:05 BradyAJohnston

Reopening this issue to coincide with #41, I will be attempting to fix the broken python API in non-english language settings.

BradyAJohnston avatar Jul 10 '22 01:07 BradyAJohnston

Now tracking in #63

BradyAJohnston avatar Aug 17 '22 07:08 BradyAJohnston