py.list bug in R2024a
I believe I’m experiencing a bug in R2024a with py.list. After a clear all, I get the error No module or function named ‘list’.:
clear all;res = py.list({"Name1","Name2","Name3"});
In this interface, the code runs just fine. When I run it locally, I get this:
>> clear all;res = py.list({"Name1","Name2","Name3"})
No module or function named ‘list’.
I can get py.list to work again if I use another Python command. For example, this works:
>> handlers = py.logging.getLogger().handlers;
>> res = py.list({"Name1","Name2","Name3"});
>> clear all;res = py.list({"Name1","Name2","Name3"});
No module or function named ‘list’.
I’m running MATLAB Version: 24.1.0.2628055 (R2024a) Update 4. I cannot replicate on R2023b.I believe I’m experiencing a bug in R2024a with py.list. After a clear all, I get the error No module or function named ‘list’.:
clear all;res = py.list({"Name1","Name2","Name3"});
In this interface, the code runs just fine. When I run it locally, I get this:
>> clear all;res = py.list({"Name1","Name2","Name3"})
No module or function named ‘list’.
I can get py.list to work again if I use another Python command. For example, this works:
>> handlers = py.logging.getLogger().handlers;
>> res = py.list({"Name1","Name2","Name3"});
>> clear all;res = py.list({"Name1","Name2","Name3"});
No module or function named ‘list’.
I’m running MATLAB Version: 24.1.0.2628055 (R2024a) Update 4. I cannot replicate on R2023b. I believe I’m experiencing a bug in R2024a with py.list. After a clear all, I get the error No module or function named ‘list’.:
clear all;res = py.list({"Name1","Name2","Name3"});
In this interface, the code runs just fine. When I run it locally, I get this:
>> clear all;res = py.list({"Name1","Name2","Name3"})
No module or function named ‘list’.
I can get py.list to work again if I use another Python command. For example, this works:
>> handlers = py.logging.getLogger().handlers;
>> res = py.list({"Name1","Name2","Name3"});
>> clear all;res = py.list({"Name1","Name2","Name3"});
No module or function named ‘list’.
I’m running MATLAB Version: 24.1.0.2628055 (R2024a) Update 4. I cannot replicate on R2023b. python MATLAB Answers — New Questions