-
-
Notifications
You must be signed in to change notification settings - Fork 423
Closed
Labels
BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
Description
✈ Pre-Flight checks
- I don't have SentinelOne antivirus installed (see above for the solution)
- I have searched in the issues (open and closed) but couldn't find a similar issue
- I have searched in the pyRevit Forum for similar issues
- I already followed the installation troubleshooting guide thoroughly
- I am using the latest pyRevit Version
🐞 Describe the bug
following #3092 , after upgrading from 6.0 to 6.1, pyrevit does run the script in CPython. But at the very start gives an error: "CPython Traceback: interface takes exactly one argument".
Same error also raises when running "Test CPython Command" from the pyRevitDev tab.
⌨ Error/Debug Message
CPython Traceback:
interface takes exactly one argument
pyRevitLabs.PythonNet
File "C:\Users\betsalel\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\revit\events.py", line 160, in <module>
_HANDLER = _GenericExternalEventHandler()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\betsalel\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\revit\__init__.py", line 26, in <module>
from pyrevit.revit import events
File "<string>", line 102, in <module>
at Python.Runtime.PythonException.ThrowLastAsClrException()
at Python.Runtime.PythonException.ThrowIfIsNull(NewReference& ob)
at Python.Runtime.PyModule.Exec(String code, BorrowedReference _globals, BorrowedReference _locals)
at Python.Runtime.PyModule.Exec(String code, PyDict locals)
at PyRevitLabs.PyRevit.Runtime.CPythonEngine.Execute(ScriptRuntime& runtime♻️ To Reproduce
run "Test CPython Command" from the pyRevitDev tab
⏲️ Expected behavior
No response
🖥️ Hardware and Software Setup (please complete the following information)
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Branch: "master" | Version: "6.1.0.26047+2255" | Path: "C:\Users\betsalel\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "2026 First Customer Ship" | Engine: DEFAULT (2712) | Path: "C:\Users\****\AppData\Roaming\pyRevit-Master"
==> Installed Extensions
Fa | Type: UIExtension | Repo: "https://github.com/FeiginArch/pyRevit-Fa.git" | Installed: "S:\BIM Utilities\pyRevit\Fa.extension"
FaManager | Type: UIExtension | Repo: "https://github.com/FeiginArch/pyRevit-FaManager.git" | Installed: "S:\BIM Utilities\pyRevit\FaManager.extension"
PyArea | Type: UIExtension | Repo: "https://github.com/blliav/pyArea.git" | Installed: "S:\BIM Utilities\pyRevit\pyArea.extension"
==> Default Extension Search Path
C:\Users\betsalel\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
S:\BIM Utilities\pyRevit
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
2026 First Customer Ship | Version: 26.0.4.409 | Build: 20250227_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2026\"
==> Running Revit Instances
PID: 10132 | 2026.4 | Version: 26.4.0.32 | Build: 20251103_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2026"
==> User Environment
Microsoft Windows 10 [Version 10.0.26200]
Executing User: FEIGIN\****
Active User:
Admin Access: No
%APPDATA%: "C:\Users\****\AppData\Roaming"
Latest Installed .Net Framework: 10.0.2
No .Net Target Packs are installed.
No .Net-Core Target Packs are installed.
Active CPython Engine Version: 3123
pyRevit CLI v6.1.0.26047+2255.64fcf31ad284fe73a7a3ea3fead3a840f8a408ebAdditional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]Bug that stops user from using the tool or a major portion of pyRevit functionality [class]