Steven
(Steven Hansen)
May 22, 2024, 9:05pm
1
Hi all, I have been using the CLI to run scrips for nearly two years now without a problem. I recently received some 2024 Revit files (all my other projects are older). So I installed 2024 and figured I would update pyRevit at the same time (see below for the installed version).
When I run my processes “pyrevit run “Tool Path” “File Path” --revit==2023 --purge ” it boots Revit 2024. I have tested on 2021 and 2022 and they boot the correct version.
pyRevit:
4.8.16.24121 Installer
CLI 4.8.16.24121 Installer
Revit:
2018, 2021, 2022, 2023, 2024
If you need the version let me know and I will get them
Edit:
If I open 2023 and manually run it everything works fine.
Edit:
I posted a bug on git as well.
opened 03:42AM - 23 May 24 UTC
Bug
### ✈ Pre-Flight checks
- [X] I **don't have SentinelOne** antivirus installed … (see above for the solution)
- [X] I have **searched in the issues** (open and closed) but couldn't find a similar issue
- [X] I have **searched in the [pyRevit Forum](https://discourse.pyrevitlabs.io)** for similar issues
- [X] I already **followed the [installation troubleshooting guide](https://pyrevitlabs.notion.site/Installation-issues-f6495adb56254e9e8021f8a68e3b2ab7) thoroughly**
- [X] I am using the **latest pyRevit Version**
### 🐞 Describe the bug
Hi, I am using the following CLI command to launch a script to be run on Revit 2023 but it opens 2024 instead. If I manually launch 2023 and run the script everything works fine.
CLI input: pyrevit run “Tool Path.py” “File Path.rvt” --revit=2023 --purge
PyRevit:
pyRevit_4.8.16.24121_signed
Revit 2023:
23.1.30.97
20230828_1515(x64)
2023.1.3
Revit 2024:
24.2.10.64
20240408_1515(x64)
2024.2.1
I have also posted to the forum here.
https://discourse.pyrevitlabs.io/t/cli-booting-2024-when-it-should-be-2023/3084
### ⌨ Error/Debug Message
```shell
I have uninstalled and reinstalled pyRevit. I have uninstalled Revit 2024 and the command worked as expected. When I reinstalled 2024 the problem came back.
```
### ♻️ To Reproduce
_No response_
### ⏲️ Expected behavior
I expected Revit 2023 to be opened when specifying --revit=2023
### 🖥️ Hardware and Software Setup (please complete the following information)
```shell
master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.16.24121+2117" | Path: "C:\Users\SHansen\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "24.2.1" | Engine: DEFAULT (2711) | Path: "C:\Users\SHansen\AppData\Roaming\pyRevit-Master"
master | Product: "23.1.3" | Engine: DEFAULT (2711) | Path: "C:\Users\SHansen\AppData\Roaming\pyRevit-Master"
master | Product: "2022.1.5" | Engine: DEFAULT (2711) | Path: "C:\Users\SHansen\AppData\Roaming\pyRevit-Master"
master | Product: "2021.1.9" | Engine: DEFAULT (2711) | Path: "C:\Users\SHansen\AppData\Roaming\pyRevit-Master"
master | Product: "2018.3.3 Security Fix" | Engine: DEFAULT (2711) | Path: "C:\Users\SHansen\AppData\Roaming\pyRevit-Master"
```
### Additional context
_No response_
2 Likes
Steven
(Steven Hansen)
May 23, 2024, 10:15pm
2
I also just tried the second from the latest installer and I am getting the same result.
pyRevit 4.8.15.24089 Installer
Revit is also installed on a secondary drive (not my c: drive) I am not sure if this could be messing with anything.