Hi
I have installed WIM pyRevit_5.0.0.24315 on Revit 2023
But When I run Revit , Pyrevit is absent
It there an explanation about that ?
Thanks
Hi
I have installed WIM pyRevit_5.0.0.24315 on Revit 2023
But When I run Revit , Pyrevit is absent
It there an explanation about that ?
Thanks
It works here, try the newer build
pyRevit version 5.0024338
You may want to uninstall pyrevit before installing latest wip
On https://www.pyrevitlabs.io/
I just tested pyRevit_5.0.0.24354_admin_signed.exe
But same behavior, not visible in Revit 2023.
Of course pyRevit was uninstalled before
Removed WIP, and installed again pyRevit 4.8.16.24121
Which is of course Working !
What I have observed is that pyRevit is installed on AppData\Roaming\pyRevit-Master for both cases : “pyRevit 4” and “WIP pyRevit 5”
But for the last one, Autodesk\Revit\Addins\2023\pyRevit.addin is missing
@sanzoghenzo care ton have a look at what went wrong with the cli in the installer?
As always the pyrevit env
output would give us more information about the issue.
The last thing the installer does is to attach the default interpreter using the cli as the current user.
I believe that it is a permission problem with the cli itself, but I’m not sure.
I finally got an admin account on my work pc, so I could test my assumptions when I have a bit of time
In the meantime: @ckl6767 can you try to run pyrevit attach default --installed --debug
and paste the output here?
Sorry you need to clarify a bit.
Can you just explain where I have to run the command ?
Should I install pyRevit_CLI_5.0.0.24354_signed.exe instead of pyRevit_5.0.0.24354_signed.exe ?
No, the cli stands for command line interface
You can run the command sanzo pointed in the windows command line.
Type cmd in your windows search box and you should find the command line.
Then
The command line pointed
There must be something wrong with the command line…
C:\Users\kluges1>pyrevit attach default --installed --debug
Debug: Arg processing failed. | Usage:
pyrevit (-h | --help)
pyrevit (-V | --version)
pyrevit --usage
pyrevit (wiki | blog | docs | source | youtube | support)
pyrevit env [--json] [(-h | --help)] [--log=<log_file>]
pyrevit update [--help] [--log=<log_file>]
pyrevit clone (-h | --help)
pyrevit clone <clone_name> <deployment_name> [--dest=<dest_path>] [--branch=<branch_name>] [--log=<log_file>]
pyrevit clone <clone_name> --image=<image_url> [--dest=<dest_path>] [--log=<log_file>]
pyrevit clone <clone_name> [--dest=<dest_path>] [--source=<repo_url>] [--branch=<branch_name>] [--log=<log_file>] [(--username=<username> --password=<password> | --token=<auth_token>)]
pyrevit clones [(-h | --help)]
pyrevit clones (info | open) <clone_name>
pyrevit clones add this <clone_name> [--force] [--log=<log_file>]
pyrevit clones add <clone_name> <clone_path> [--force] [--log=<log_file>]
pyrevit clones forget (--all | <clone_name>) [--log=<log_file>]
pyrevit clones rename <clone_name> <clone_new_name> [--log=<log_file>]
pyrevit clones delete [(--all | <clone_name>)] [--clearconfigs] [--log=<log_file>]
pyrevit clones branch <clone_name> [<branch_name>] [--log=<log_file>]
pyrevit clones version <clone_name> [<tag_name>] [--log=<log_file>]
pyrevit clones commit <clone_name> [<commit_hash>] [--log=<log_file>]
pyrevit clones origin <clone_name> --reset [--log=<log_file>]
pyrevit clones origin <clone_name> [<origin_url>] [--log=<log_file>]
pyrevit clones update (--all | <clone_name>) [--log=<log_file>] [(--username=<username> --password=<password> | --token=<auth_token>)]
pyrevit clones deployments <clone_name>
pyrevit clones engines <clone_name>
pyrevit attach (-h | --help)
pyrevit attach <clone_name> (default | <engine_version>) (<revit_year> | --installed | --attached) [--allusers] [--log=<log_file>]
pyrevit attached [<revit_year>] [(-h | --help)]
pyrevit switch (-h | --help)
pyrevit switch <clone_name> [<revit_year>]
pyrevit detach (-h | --help)
pyrevit detach (--all | <revit_year>) [--log=<log_file>]
pyrevit extend (-h | --help)
pyrevit extend <extension_name> [--dest=<dest_path>] [--branch=<branch_name>] [--log=<log_file>]
pyrevit extend (ui | lib) <extension_name> <repo_url> [--dest=<dest_path>] [--branch=<branch_name>] [--log=<log_file>] [(--username=<username> --password=<password> | --token=<auth_token>)]
pyrevit extensions [(-h | --help)]
pyrevit extensions search <search_pattern>
pyrevit extensions (info | help ) <extension_name>
pyrevit extensions open <extension_name>
pyrevit extensions open <clone_name> <extension_name>
pyrevit extensions delete <extension_name> [--log=<log_file>]
pyrevit extensions origin <extension_name> --reset [--log=<log_file>]
pyrevit extensions origin <extension_name> [<origin_url>] [--log=<log_file>]
pyrevit extensions paths [(-h | --help)]
pyrevit extensions paths forget --all [--log=<log_file>]
pyrevit extensions paths (add | forget) <extensions_path> [--log=<log_file>]
pyrevit extensions (enable | disable) <extension_name> [--log=<log_file>]
pyrevit extensions (enable | disable) <clone_name> <extension_name> [--log=<log_file>]
pyrevit extensions sources [(-h | --help)]
pyrevit extensions sources forget --all [--log=<log_file>]
pyrevit extensions sources (add | forget) <source_json_or_url> [--log=<log_file>]
pyrevit extensions update (--all | <extension_name>) [--log=<log_file>] [(--username=<username> --password=<password> | --token=<auth_token>)]
pyrevit releases (-h | --help)
pyrevit releases [--pre] [--notes]
pyrevit releases latest [--pre] [--notes]
pyrevit releases <search_pattern> [--pre] [--notes]
pyrevit releases open latest [--pre]
pyrevit releases open <search_pattern> [--pre]
pyrevit releases download (installer | archive) <search_pattern> [--dest=<dest_path>] [--pre]
pyrevit revits
pyrevit revits (-h | --help)
pyrevit revits [--installed] [--log=<log_file>]
pyrevit revits --supported [--csv=<output_file>]
pyrevit revits killall [<revit_year>] [--log=<log_file>]
pyrevit revits fileinfo <file_or_dir_path> [--csv=<output_file>] [--rvt] [--rte] [--rfa] [--rft]
pyrevit run (-h | --help)
pyrevit run commands
pyrevit run <script_or_command_name> [--revit=<revit_year>] [--purge] [--allowdialogs] [--import=<import_path>]
pyrevit run <script_or_command_name> --models=<model_list_file> --revit=<revit_year> [--purge] [--allowdialogs] [--import=<import_path>]
pyrevit run <script_or_command_name> <model_file> [--revit=<revit_year>] [--purge] [--allowdialogs] [--import=<import_path>]
pyrevit caches (-h | --help)
pyrevit caches [bim360] clear (--all | <revit_year>) [--log=<log_file>]
pyrevit config (-h | --help)
pyrevit config --from=<template_config_path> [--log=<log_file>]
pyrevit configs (-h | --help)
pyrevit configs bincache [(enable | disable)] [--log=<log_file>]
pyrevit configs checkupdates [(enable | disable)] [--log=<log_file>]
pyrevit configs autoupdate [(enable | disable)] [--log=<log_file>]
pyrevit configs rocketmode [(enable | disable)] [--log=<log_file>]
pyrevit configs logs [(none | verbose | debug)] [--log=<log_file>]
pyrevit configs filelogging [(enable | disable)] [--log=<log_file>]
pyrevit configs startuptimeout [<timeout>] [--log=<log_file>]
pyrevit configs loadbeta [(enable | disable)] [--log=<log_file>]
pyrevit configs cpyversion [<cpy_version>] [--log=<log_file>]
pyrevit configs usercanupdate [(yes | no)] [--log=<log_file>]
pyrevit configs usercanextend [(yes | no)] [--log=<log_file>]
pyrevit configs usercanconfig [(yes | no)] [--log=<log_file>]
pyrevit configs colordocs [(enable | disable)] [--log=<log_file>]
pyrevit configs tooltipdebuginfo [(enable | disable)] [--log=<log_file>]
pyrevit configs routes [(-h | --help)]
pyrevit configs routes [(enable | disable)] [--log=<log_file>]
pyrevit configs routes port [<port_number>] [--log=<log_file>]
pyrevit configs routes coreapi [(enable | disable)] [--log=<log_file>]
pyrevit configs telemetry [(-h | --help)]
pyrevit configs telemetry [(enable | disable)] [--log=<log_file>]
pyrevit configs telemetry utc [(yes | no)] [--log=<log_file>]
pyrevit configs telemetry (file | server) [<dest_path>] [--log=<log_file>]
pyrevit configs telemetry hooks [(yes | no)] [--log=<log_file>]
pyrevit configs apptelemetry [(enable | disable)] [--log=<log_file>]
pyrevit configs apptelemetry flags [<flags>] [--log=<log_file>]
pyrevit configs apptelemetry server [<server_path>] [--log=<log_file>]
pyrevit configs outputcss [<css_path>] [--log=<log_file>]
pyrevit configs seed [--lock] [--log=<log_file>]
pyrevit configs <option_path> [(enable | disable)] [--log=<log_file>]
pyrevit configs <option_path> [<option_value>] [--log=<log_file>]
pyrevit doctor (-h | --help)
pyrevit doctor [--list]
pyrevit doctor <doctor_command> [--dryrun]
Usage: pyrevit COMMAND [OPTIONS]
pyRevit environment and clones manager
Options:
-h --help Show this help
-V --version Show version
--usage Print all usage patterns
--verbose Print info messages
--debug Print docopt options and logger debug messages
--log=<log_file> Output log messages to external log file
Management Commands:
env Print environment information
update Update remote resources used by this utility
clones Manage pyRevit clones
extensions Manage pyRevit extensions
attached Manage pyRevit attachments to installed Revit
releases Info about pyRevit releases
revits Manage installed Revits
caches Manage pyRevit caches
configs Manage pyRevit configurations
Commands:
clone Create a clone of pyRevit on this machine
extend Create a clone of a third-party pyRevit extension on this machine
attach Attach pyRevit clone to installed Revit
switch Switch active pyRevit clone
detach Detach pyRevit clone from installed Revit
config Configure pyRevit for current user
run Run python script in Revit
doctor Fix potential or real problems
Help Commands:
wiki Open pyRevit Wiki
blog Open pyRevit blog
docs Open pyRevit docs
source Open pyRevit source repo
youtube Open pyRevit on YouTube
support Open pyRevit support page
Run 'pyrevit COMMAND --help' for more information on a command.
Just for information
I have to install .NET in order to have an result of the command
The command was wrong
It should be
pyrevit attach master default --installed --debug
Run Revit and if nothing better
Run the diagnostic command
pyrevit env
In the command line and provide us with the results
Of course I gave you the wrong command
It should be
pyrevit attach master default --installed
But please note that this info is available to everyone and just a search away:
I just tried myself
pyrevit env
run in an administrative powershell correctly states that the attachments are thereOne thing, though: at first, running pyrevit env
as regular user trows an error about not being able to copy the config file from programdata to the user’s appdata, “could not find a part of the path” proalbably because the pyrevit folder is not created yet.
After the admin user runs the pyrevit env command (and after running revit), also the regular user can see the correct output.
I have no knowledge of the pyRevit skeleton, nor of WIP pyRevit.
Hence my question about the first debug command that didn’t work
*On the other hand, I do have a good knowledge of python with a few programs written a few years ago.
A problem of access rights through the directory on the virtual environment… makes sense
The command pyrevit attach master default --installed
gives no results
However, once I had run this command, I restarted Revit, and pyRevit suddenly appeared
After installing WIP PyRevit again last night.
I’m pretty sure I tried again and found that it still didn’t work
This morning the only thing I did a few minutes ago was to run the command
pyrevit attach master default --installed
Then I launched Revit
And then the plugin appeared!
Does the
pyrevit attach master default --installed
Copy the file from programdata to user’s appdata,
In any case, .addin is now present
Lastly, here is the result of the command
pyrevit env
pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Branch: "master" | Version: "5.0.0.24354+1726-wip" | Path: "C:\Users\kluges1\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "2023.0.2" | Engine: DEFAULT (2712) | Path: "C:\Users\kluges1\AppData\Roaming\pyRevit-Master"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\kluges1\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/pyrevitlabs/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
2023.0.2 | Version: 23.0.20.21 | Build: 20220726_1500(x64) | Language: 1033 | Path: "Revit 2023\"
==> Running Revit Instances
PID: 2784 | 2023.0.2 | Version: 23.0.20.21 | Build: 20220726_1500(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2023"
==> User Environment
Microsoft Windows 10 [Version 10.0.22631]
Executing User: CORP\kluges1
Active User: CORP\kluges1
Admin Access: No
%APPDATA%: "C:\Users\kluges1\AppData\Roaming"
Latest Installed .Net Framework: 8.0.11
No .Net Target Packs are installed.
Installed .Net-Core Target Packs: v8.0.404
pyRevit CLI v5.0.0.24354+1726-wip.cd59b0e8912c3ceb38fb2c881b99d8396a69a9a8
If you would like me to carry out any further manipulations, please don’t hesitate to get back to me.
Last and not the least
The first reason why I have upgraded to pyRevit 5 was an issue on PreflightCheck
See former topic which has been closed
First run gives the following error
But after all is working well
Closing and opening again Revit
Running again the same command preflight is perfect
I guess that this issue happens only once
Thanks to all for your quick answers
This is not an error per say, just a warning the .NET WebBrowser gives you when you run some external javascript library. Nothing to worry about, the issue is with the charts.js used to display the pie charts in this check. And nothing I can fix or is worth fixing IMHO. There is a good chance the output module gets refactored later in the game to use newer technologies.
I am preparing a more intense check for the preflight checks tool that will output data for all linked files as well without having to open them, just straight from the master file if they are loaded. sit tight.
@Jean-Marc Thank you very much !