Skip to content

[Bug]: Why cant I choose Python 3 as the default Egnine? #2858

@soumiryder88-star

Description

@soumiryder88-star

✈ 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

Why can't I choose Python 3 as the default Engine? The arrow option beside ActiveEngine: Iron Python 2 is greyed out, and I can't choose CPython.
I am creating an additional plugin with ChatGPT integration, and in the config file, I used #! Python 3 as the first line still doesn't work.

⌨ Error/Debug Message

IronPython Traceback:
invalid syntax (line 22) 
unexpected token 'Bearer {api_key}' (line 22) 
invalid syntax (line 22) 
unexpected token 'Bearer {api_key}' (line 22) 
unexpected token ',' (line 22) 
unexpected token 'Content-Type' (line 22) 
unexpected token ':' (line 22) 
unexpected token 'application/json' (line 22) 
unexpected token '}' (line 22)

♻️ To Reproduce

No response

⏲️ 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: "4.8.16.24121+2117" | Path: "C:\Users\Soumitra.Soumitra\AppData\Roaming\pyRevit-Master"
==> Attachments
Unnamed-363FBF8 | Product: "2026 First Customer Ship" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
Unnamed-363FBF8 | Product: "2024.3.3" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
Unnamed-363FBF8 | Product: "2022.1.6" | Engine: DEFAULT (2712) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
==> Installed Extensions
==> Default Extension Search Path
C:\Users\Soumitra.Soumitra\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
C:\Users\Soumitra.Soumitra\AppData\Roaming\pyRevit\Extensions\SMP_AI.extension
==> 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\"
2024.3.3 | Version: 24.3.30.11 | Build: 20250516_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
2022.1.6 | Version: 22.1.60.18 | Build: 20240417_1700(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
==> Running Revit Instances
PID: 30264 | 2022.1.6 | Version: 22.1.60.18 | Build: 20240417_1700(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2022"
==> User Environment
Microsoft Windows 10 [Version 10.0.26200]
Executing User: MARCOPIVA\soumitra.soumitra
Active User: MARCOPIVA\soumitra.soumitra
Admin Access: No
%APPDATA%: "C:\Users\Soumitra.Soumitra\AppData\Roaming"
Latest Installed .Net Framework: 8.0.20
No .Net Target Packs are installed.
No .Net-Core Target Packs are installed.
pyRevit CLI v5.2.0.25181+1332.ad837f1fc6ac89979e64710991eb6d846b63c109

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions