Hi pyRevit foaks, what UI library would you recommend using for CPython scripts? . So far, I’ve only identified WinForms as an alternative.
pyRevit forms won’t run in CPython:
CPython Traceback:
ModuleNotFoundError : No module named 'System.Environment'; 'System' is not a package
gui.py", line 10, in <module>
from rpw.ui.forms import (
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\__init__.py", line 36, in <module>
import rpw.db
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\db\__init__.py", line 19, in <module>
from rpw.db.view import View, ViewPlan, ViewSheet, ViewSection
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\db\view.py", line 10, in <module>
from rpw.db.collector import Collector
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\db\collector.py", line 35, in <module>
from rpw.ui.selection import Selection
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\ui\__init__.py", line 1, in <module>
from rpw.ui import forms
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\ui\forms\__init__.py", line 12, in <module>
from rpw.ui.forms.flexform import FlexForm
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\ui\forms\flexform.py", line 6, in <module>
from rpw.ui.forms.resources import *
File "C:\Program Files\pyRevit-Master\pyrevitlib\rpw\ui\forms\resources.py", line 25, in <module>
from System.Environment import Exit, NewLine