Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error when loading Revit #2402

Open
5 tasks done
LaneKing opened this issue Sep 12, 2024 · 11 comments
Open
5 tasks done

[Bug]: Error when loading Revit #2402

LaneKing opened this issue Sep 12, 2024 · 11 comments
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]

Comments

@LaneKing
Copy link

✈ 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

Get the following error when I load Revit after the install. Install completes with no errors.
pyRevit Error Loading

⌨ Error/Debug Message

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.

♻️ 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 | Deploy: "basepublic" | Branch: "master" | Version: "4.8.16.24121+2117" | Path: "C:\Users\lane\AppData\Roaming\pyRevit-Master"
==> Attachments
Unnamed-363FBF8 | Product: "Autodesk Revit 2025" | Engine: DEFAULT (2711) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
Unnamed-363FBF8 | Product: "Autodesk Revit 2024" | Engine: DEFAULT (2711) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
Unnamed-363FBF8 | Product: "Autodesk Revit 2023" | Engine: DEFAULT (2711) | Path: "C:\Program Files\pyRevit-Master" | AllUsers
==> Installed Extensions
==> Default Extension Search Path
C:\Users\lane\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
Autodesk Revit 2025 | Version: 25.0.2.419 | Build: 20240307_1300(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2025\"
Autodesk Revit 2024 | Version: 24.2.20.41 | Build: 20240814_1400(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\"
Autodesk Revit 2023 | Version: 23.1.50.23 | Build: 20240709_1030(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\"
==> Running Revit Instances
Error: Object reference not set to an instance of an object.
Run with "--debug" option to see debug messages

Additional context

No response

@LaneKing LaneKing added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Sep 12, 2024
@inakidb
Copy link

inakidb commented Sep 23, 2024

same issue here, anyone solved?

@rJar
Copy link

rJar commented Sep 27, 2024

Same issue, unfortunately because of this we've had to move to another keynote editor...please help!

@treemulti
Copy link

same issue with us also,revit doesnt load if pyrevit is installed

@amagr0
Copy link

amagr0 commented Sep 27, 2024

Same issue.
Only on Revit 2025.2, on 2024.3 all good.

@avaldes12
Copy link

I think I have the same issue. I've also tried to use the install guide/other issues on the forum (to the best of my ability) but have not yet gotten it to work for 2024. Works in 2023 though, which I tried to use to get it to install on 2024 (screenshot below). Could just be a user issue from me because I am not fully understanding some of the solutions

Screenshot 2024-10-14 122218

@kevibarr
Copy link

I have the same issue, I have to deploy this to 8 computer labs but I can't. It was working fine with Revit 24

@treemulti
Copy link

For us its not working for any versions? Can someone help us to make it work on atleast one version

we have sentinel one enabled on the device

even though if we create the exceptions it wont work

@rJar
Copy link

rJar commented Oct 17, 2024

I was able to get this version to work on 2025: https://discourse.pyrevitlabs.io/t/error-loading-pyrevit-on-revit-2025/3409/5

@rJar
Copy link

rJar commented Oct 17, 2024

Here's the .exe, took me a minute to find on that link: https://drive.google.com/file/d/10kDw6V0ZgJSH-u0KjJcC_FCCkTgZwJ7U/view?usp=sharing

@amagr0
Copy link

amagr0 commented Oct 17, 2024

Yes, I can also confirm that the pyRevit_5.0.0.24229 executable is working fine on both the 2024.3 and 2025.2 versions.

Thanks for the tip!

@kevibarr
Copy link

kevibarr commented Oct 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
Projects
None yet
Development

No branches or pull requests

7 participants