Hi Chris,
This problem is not solved in the new version (1.5.0)
I can’t change the name of the \C:\Users[username] folder
It is inconvenient to work with a new username
Created a new ASCII User
Installed both steps. Everything works correctly
Copied all installed files from C:\Users [ASCII-USERNAME] and C:\Users and [ASCII-USERNAME]\AppData\roaming\grasshopper\library folders in old [non-ascii-username]
Launched a new definition in gh (not ascii user)
ladybug did not work correctly
How do I install ladybug 1.5.0 correctly for a non-ascii username folder (home_folder)?
In the oldest version, all the steps were installed correctly
In version 1.4.0 only the first step
In version 1.5.0 none
STEP 1
Runtime error (EncoderFallbackException): ‘ascii’ codec can’t encode character ‘\u412’ in position 9: ordinal not in range(128)
Traceback: line 121, in script
line 117-138
if _setup_python:
# create the installation folder
home_folder = os.getenv('HOME') or os.path.expanduser('~')
try:
home_folder.decode('ascii')
except UnicodeDecodeError:
msg = 'Your username folder "{}" contains non-ASCII characters\n' \
'While the latest version of Ladybug Tools supports most non-ASCII ' \
'characters, there are some characters that can still cause issues.\n' \
'To avoid all poential problems, you can create a new username with ' \
'non-ASCII characters and install Ladybug Tools from that'.format(home_folder)
print(msg)
give_warning(msg)
lb_folder = os.path.join(home_folder, 'ladybug_tools')
if not os.path.isdir(lb_folder):
os.makedirs(lb_folder)
print('Ladybug Tools installation folder created at:\n'
'{}\n '.format(lb_folder))
else:
print('Ladybug Tools installation folder already exists at:\n'
'{}\n '.format(lb_folder))
That will set up the installation in “Program Files” instead of your user folder and this should save you from a lot of headaches and hacking that you seem to be doing now.