Open ArmiSchm opened 11 months ago
@ArmiSchm , thanks for the issue. We will look into it right away. Can you please confirm which version of the python module are you using (pip show aesim.simba
)?
@AdriPWS, are you able to reproduce this issue ? If yes, can you please share a project file for 23.05 and a script causing those exceptions ? Thanks.
Hi, Please could you give me the version of the python module that you are using as asked by Emmanuel? In command prompt, just type : pip show aesim.simba
Then I tried to reproduce your issue but I failed (sorry for that):
I downloaded SIMBA.exe version 23.5.5.0 and did a simple buck converter + saved the project (.jsimba file) I downloaded aesim.simba version 2023.5.19 and run this simple buck converter in python and it worked well.
Now I downloaded aesim.simba version 2023.8.1a1 and launched the same script and it worked as well Now I downloaded aesim.simba version 2023.8.31 and launched the same script and it worked as well
So I also loaded the .jsimba project created earlier into SIMBA.exe 23.08.31 and launched the same script as before with still aesim.simba version 2023.8.31 and it worked again.
Sorry I don't succeed to reproduce your behavior. Did you think to update the python version? pip install aesim.simba==2023.9.25a1 Can you try also please? We can set up a meeting as well.
Thanks, Adrien
aesim.simba Version: 2023.5.19
Find attached the necessary files to reproduce.
Hi, I just updated to pip install aesim.simba==2023.9.25a1 and the error did not occur. THX
Hi, Ok perfect, thanks for your positive feedback. So everything is solved now.
Yes. Perfect. I suggest to add some kind of revision check between the Simba.exe and the API.
You can now close the topic. THX.
I totally agree with you and we already do that but I have tried to reproduce your issue without success. I used 2023.9.25a1, 2023.8.31 and 2023.5.19 and even with those version I don't have your error message. So I don't understand what's happened.
As your problem is fixed, yes we can close. But for sure we will double check that for later revision.
Thanks,
I have observed two issue:
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo
1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter
1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonCollectionConverter
2.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TCollection& value)