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

PyRevit not loading after installing last verison #1614

Closed
osdj-a opened this issue Sep 13, 2022 · 9 comments
Closed

PyRevit not loading after installing last verison #1614

osdj-a opened this issue Sep 13, 2022 · 9 comments

Comments

@osdj-a
Copy link

osdj-a commented Sep 13, 2022

Describe the bug
Currently installed the latest version of PyRevit not i get "PyRevitLoader - Error Loading pyRevit" error in Revit 2022.
I´ve tried pyrevit attach master 277 --installed. Also uninstalling etc.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
To run

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • pyRevit Version [ 4.8.12
  • pyRevit Environment: Open a command prompt and run the command below. Replace these lines with the results. Take a look at this markdown guide and wrap the command results in ``` when pasting here for correct formatting.

image

Additional context
Version before worked like a charm.

@jmcouffin
Copy link
Contributor

Hi @osdj-a , Can you please check it it works with

pyrevit attach master 2710 --installed --allusers
It might have to do with the ironpython engine

If it still does not work, I would check these two articles:

  1. https://www.notion.so/pyRevit-Is-Installed-But-Does-Not-Load-f6495adb56254e9e8021f8a68e3b2ab7 (probably not related)
  2. https://www.notion.so/Can-Not-Uninstall-pyRevit-or-pyRevit-CLI-24978bb1aa3f4e419f61272bd1b19ffb

if nothing else works:

  • Uninstall pyRevit and pyRevit CLI (if installed)
  • delete or move every folder like %appdata%/pyrevit and %appdata%/pyrevit-master and c:/programdata/pyrevit
  • restart
  • re-install the latest release

@osdj-a
Copy link
Author

osdj-a commented Sep 14, 2022

Hi @osdj-a , Can you please check it it works with

pyrevit attach master 2710 --installed --allusers It might have to do with the ironpython engine

If it still does not work, I would check these two articles:

  1. https://www.notion.so/pyRevit-Is-Installed-But-Does-Not-Load-f6495adb56254e9e8021f8a68e3b2ab7 (probably not related)
  2. https://www.notion.so/Can-Not-Uninstall-pyRevit-or-pyRevit-CLI-24978bb1aa3f4e419f61272bd1b19ffb

if nothing else works:

  • Uninstall pyRevit and pyRevit CLI (if installed)
  • delete or move every folder like %appdata%/pyrevit and %appdata%/pyrevit-master and c:/programdata/pyrevit
  • restart
  • re-install the latest release

Tried all of them but still have the same error

@jmcouffin
Copy link
Contributor

@osdj-a
Other possible solution (less probable), might be due to a dll interaction
try this: #1612 (comment)

@osdj-a
Copy link
Author

osdj-a commented Sep 14, 2022

Tried but still, error. Are there anyway to completely wipe off pyRevit and retry an clean install?

@jmcouffin
Copy link
Contributor

  • Uninstall pyRevit and pyRevit CLI (if installed)
  • delete or move every folder like %appdata%/pyrevit and %appdata%/pyrevit-master and c:/programdata/pyrevit
  • restart
  • re-install the latest release

@osdj-a
besides what I mentioned earlier #1614 (comment), there is the pyrevit doctor command to tries to reset registry keys.

The install is not so intrusive. The unistall process (hte regular one) usually does the job and leaves in %appdata% the pyrevit-master and pyrevit folders that you can just delete.
you could use an external tool to uninstall it as well, I used iobit uninstaller in the past with success in the past https://www.iobit.com/en/advanceduninstaller.php

@jmcouffin
Copy link
Contributor

jmcouffin commented Sep 14, 2022

There is a list of related issues on github and on the pyRevit forum but they tend to have different reasons. The most seen being dll incompatibility between a revit addin and pyrevit

@GiovannaGGS
Copy link

Hello I have the Revit 2021.1.4 and the pyrevit it doesn't work with this version. What could I do?

Thank you

@osdj-a
Copy link
Author

osdj-a commented Sep 14, 2022

There are a lit of related issues on github and on the pyRevit forum but they tend to have different reasons. The most seen being dll incompatibility between a revit addin and pyrevit

Nothing really seems to work.
I know Ive had this problem before, I believe it had something to do with Python 2&3 / IronPython but cant really remmember.

@osdj-a
Copy link
Author

osdj-a commented Sep 15, 2022

Apperently I had an internal company add-in for Revit which had an older version of Python that loaded in before pyRevit. Worked by disable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants