giused8
(Giuseppe Dotto)
July 5, 2024, 9:49am
1
pyRevit does not recognize the installed Revit versions. From the CLI, running pyrevit env
, the section ==> Installed Revits
appears to be empty.
Does anyone know how to make sure that pyRevit recognizes all the installed Revit versions?
for context:
I’m installing pyRevit using the latest version of the CLI and I already tried to
run pyrevit doctor
> 1) purge-installs
uninstall pyRevit CLI and install again
uninstall pyRevit CLI and install the whole pyRevit package
Thanks in advance
Steven
(Steven Hansen)
July 15, 2024, 8:28pm
2
When you say “does not recognize the installed Revit version” what do you mean?
I had some problems a while back were it would open the incorrect version of Revit.
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_
Jean-Marc
(Jean-Marc Couffin)
August 9, 2024, 10:12am
3
I don’t know the process 100%, but I know it uses the pyrevit-hosts.json file to identify version.
The update of this file and the version identified is a manual process. I just updated it 2 days ago with some missing version, so the wip installer should contain most if not all revit version listed.
You could grab the pyrevit-hosts.json file and replace it on your install to see if it helps.
if not, please rune pyrevit env --debug
and report an issue on the repo