architecture-building-systems / revitpythonshell

An IronPython scripting environment for Autodesk Revit and Vasari
MIT License
515 stars 118 forks source link

Error #139

Open Husam82 opened 1 year ago

Husam82 commented 1 year ago

Any solution for this problem, please auto2

jmcouffin commented 1 year ago

not sure about the overall cpython implementation of pyRevit whitin RPS, but in pyRevit scripts you need to declare the cpython usage like so:

#! python3

ay-ex commented 7 months ago

Sounds to me like it is related to some pyrevit.forms (e.g.: SelectFromList) with wpf not loading: https://github.com/architecture-building-systems/revitpythonshell/issues/155#issuecomment-2047264997

@jmcouffin the error from pyrevit.forms is not necessarily about CPython, in: C:\ProgramData\pyrevit_4.8.14\pyrevitlib\pyrevit\forms\__init__.py

if PY3 and not IRONPY340:
    raise PyRevitCPythonNotSupported('pyrevit.forms')

any unexpected python interpreter there will raise that error. 🤔