Are you trying to add a node into the logic pack or are you trying to put your node into a separate library?
Both are possible.
About the logic packs file structure:
Having all the nodes in the single blender.py file was not optimal. Thus all the nodes were separated into their own files. To load them all, the blender.py file contains “from logicnode_definitions import *”. You will also note that there is a init.py file in the logicnode_definitions folder, which is part of that loading mechanism. This way, it is possible to add a new node to the logic pack by simply dropping the nodes .py file into the logicnode_definitions folder and the nodes .hx into Sources/armory/logicnode.
To fix your issue, have a look at your imports. I guess you copied them from the blender.py in the logic pack. Compare them to the imports of the LerpVectorsNode you posted. The lines “import arm.nodes_logic” and “from logicnode_definitions import *” are not present in the LerpVectorsNode. These two lines are what allow the blender.py file to load all the nodes in the logicnode_definitions folder and register those within blender.
If you want to insert your node into the logic pack, remove these two lines (oh, and you don’t need semicolons in python).
If you want to create your own library, I suggest copying the logic pack and removing all “node”.py files in the logicnode definitions as well as all associated “node”.hx files in Sources/arm/logicnode.
Keep the blender.py and the init.py from the logicnode_definitions folder.
Another thing that you need to do is rename the logicnode_definitions folder into something else and change the line in the blender.py file.
Then you can just add your nodes as seperate .py files into your renamed folder.