Closed number782 closed 3 months ago
here is output from retool.py
C:\RETOOL\retool-main>python retool.py
Traceback (most recent call last):
File "C:\RETOOL\retool-main\retool.py", line 17, in
maybe useful, ver command produces: Microsoft Windows [Version 10.0.20348.2322]
I didn't expect to see a Windows Server user running Retool :)
The fix is slated for the next release, which is some way out. If you're okay with code and running the pure Python version of Retool, you can get it working now by replacing the old_windows
function in modules\utils.py
with the following code:
def old_windows() -> bool:
"""Figures out if Retool is running on a version of Windows earlier than Windows 10 or Windows Server 2019."""
windows_version: str = platform.release()
if sys.platform.startswith('win'):
# Catch Windows Server
if re.search('[A-Za-z]', windows_version):
if int(re.sub('[A-Za-z]', '', windows_version)) < 2019:
return True
# Catch consumer versions of Windows
elif (float(windows_version) < 10):
return True
return False
Yeah should run it in a Windows 10 vm... haha.
Thanks I'll use the code.
Fixed in v2.03.0.
Describe the bug fails to run on Windows Server 2022 - Traceback (most recent call last): File "retoolgui.py", line 22, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "retool.py", line 17, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "modules\utils.py", line 408, in
File "modules\utils.py", line 411, in Font
File "modules\utils.py", line 296, in old_windows
ValueError: could not convert string to float: '2022Server'
[56948] Failed to execute script 'retoolgui' due to unhandled exception!
To reproduce download and run
Expected behavior should run, but seems to get the edition rather than just a numeric (from ver command)
Operating system windows server 2022
Retool edition
Retool version retool-2.02.2