Open KatiaFugazza opened 2 years ago
I can't find a link to Ladybug Tools. From where did you download it?
I can't find a link to Ladybug Tools. From where did you download it?
You can find versions on this page. The one and only download source I could find. https://blenderbim.org/builds/
It's difficult to suggest anything without add-on documentation. The problem is that it does not know how to convert data from File type to LB type. I guess that the node does not know how to work with data from the File Path node without conversion. I think you have to past the pass directly into the property of the socket.
Is there a more specific error with the line number? That might be helpful.
2022-09-30 08:13:34,116 [ERROR] sverchok.core.socket_conversions:156 : Implicit conversion from socket type SvFilePathSocket to socket type SvLBSocket is not supported for socket _epw_file of node LB Import EPW. Please use explicit conversion nodes.
Traceback (most recent call last):
File "\sverchok\core\update_system.py", line 462, in main_update
prepare_input_data(prev_socks, node.inputs)
File "\sverchok\core\update_system.py", line 725, in prepare_input_data
data = implicit_conversion.convert(ns, ps, data)
File "\sverchok\core\socket_conversions.py", line 209, in convert
super().convert(to_sock, from_sock, source_data)
File "\sverchok\core\socket_conversions.py", line 156, in convert
raise ImplicitConversionProhibited(socket)
sverchok.core.sv_custom_exceptions.ImplicitConversionProhibited: Implicit conversion from socket type SvFilePathSocket to socket type SvLBSocket is not supported for socket _epw_file of node LB Import EPW. Please use explicit conversion nodes.
Thank you, @Durman - this is on the Sverchok side and I don't know how it works. Maybe @Moult can give you some direction here.
I already explained the logic of the error. It's to LB developers to decide how to fix.
It's difficult to suggest anything without add-on documentation. The problem is that it does not know how to convert data from File type to LB type. I guess that the node does not know how to work with data from the File Path node without conversion. I think you have to past the pass directly into the property of the socket.
Sorry! I missed your comment there. Yes. The inputs expects a string with the path to the file and not a File object.
As a temporary workaround you can replace SvLBSocket
by SvFilePathSocket
in LB_Import_EPW.py
line 17
As LB_Import_EPW
node is auto-generated from generate_nodes.py I don't know yet how to fix it but I have 2 ideas:
SvFilePathSocket
to SvLBSocket
but it is a bit strangeFixed after #44 by specifying lenient conversion type for sockets (https://github.com/ladybug-tools/ladybug-blender/commit/5e5e11538ccf690b3030cfb4d7d47220551c4fca)
Need help. I installed ladybug today in blender and I'm trying to do a solar study, but even without the *epw file it gives an error.