I noticed that some clusters especially the Meshy components when run into Rhino v8 can generate the error below:
E:\Automatic 1111\webui>webui-user.bat
Already up to date.
Couldn't launch python
exit code: 1
stderr:
Python path configuration:
PYTHONHOME = '\\?\C:\Users\iamsa\.rhinocode\py39-rh8'
PYTHONPATH = (not set)
program name = 'python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable =
'C:\\Users\\iamsa\\AppData\\Local\\Programs\\Python\\Python310\\python.exe'
sys.base_prefix = '\\\\?\\C:\\Users\\iamsa\\.rhinocode\\py39-rh8'
sys.base_exec_prefix = '\\\\?\\C:\\Users\\iamsa\\.rhinocode\\py39-rh8'
sys.platlibdir = 'lib'
sys.executable =
'C:\\Users\\iamsa\\AppData\\Local\\Programs\\Python\\Python310\\python.exe'
sys.prefix = '\\\\?\\C:\\Users\\iamsa\\.rhinocode\\py39-rh8'
sys.exec_prefix = '\\\\?\\C:\\Users\\iamsa\\.rhinocode\\py39-rh8'
sys.path = [
'C:\\Users\\iamsa\\AppData\\Local\\Programs\\Python\\Python310\\python310.zip',
'\\\\?\\C:\\Users\\iamsa\\.rhinocode\\py39-rh8\\DLLs',
'\\\\?\\C:\\Users\\iamsa\\.rhinocode\\py39-rh8\\lib',
'C:\\Users\\iamsa\\AppData\\Local\\Programs\\Python\\Python310',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of
the filesystem encoding
Python runtime state: core initialized
ImportError: bad magic number in 'encodings': b'a\r\r\n'
Current thread 0x000037cc (most recent call first):
<no Python frame>
Launch unsuccessful. Exiting.
This kind of error depends on the RhinoCode component when it runs in Python v3 (v3.9.X) mode. Anyway, I am updating these components using IronPython (v2.X) configuration and now seems that they work fine.
Please, let me know if you have encountered this kind of issue, especially what component you have tried running. In this way, I will upload the new build for these components only to run them on Rhino v8, because the RhinoCode module is missing in Rhino v7 which still works like a charm with the old Python and C# version.
Thank you in advance
[UPDATE FOR Meshy]
Demo files and ghuser objects here