Closed coditect closed 1 year ago
Thank you for the suggestion , @coditect . However, I can confirm that this is unfortunately not a complete solution. Even if we could install the software in a folder with Non-ASCII characters, the simulation engines (EnergyPlus and Radiance) do not support non-ASCII characters. So users installing to such a location will be unable to run simulations.
If you think it helps, I can add a check into the installer.gh for non-ASCII characters and give users an explicit warning that they need to create an account with a username containing only ASCII characters. Just let me know if you think this is better than the current failure message and I'll add it.
This has all been addressed in LBT 1.5 and above. As long as the user installs with the Pollination Single-Click installer available here, they will be able to use the plugin while having any unicode character in their username.
The LBSetup component in
installer.gh
fails when it tries to createset_python_path.bat
when it is run on Windows by a user whose home folder contains non-ASCII characters. The symptoms of this issue have been described on Discourse.The problem can be resolved fairly easily by writing
set_python_path.bat
using UTF-8 instead of ASCII. The built-inopen()
function inwrite_iron_python_batch_file()
would need to be replaced withio.open()
so that an explicit character encoding could be specified, and a call tochcp
would need to be added to the top of the batch file. The modified code would look something like this:It is important to note, however, that resolving this issue alone may not allow all users with non-ASCII home folder names to install Ladybug. Issue #1002 may apply as well.