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

Error: IronPython Traceback #2093

Closed
iamian33 opened this issue Feb 16, 2024 · 15 comments
Closed

Error: IronPython Traceback #2093

iamian33 opened this issue Feb 16, 2024 · 15 comments

Comments

@iamian33
Copy link

🙏 Please use the search in the issue section before filing a new issue


🐞 Describe the bug

our company has a new IT with their new protocols. Now I cannot run PyRevit with R2024, 22 and 23 are fine. I get this error ...
image
IronPython Traceback

Tried installing the latest pyRevit version and pyRevit_4.8.12.22247_signed

This outside IT cannot understand how to fix things and their understanding of basic Autodesk products is limited.
They tried 👉 pyrevit attach master 2711 --installed with no success.

If someone can provide direction that I can pass on to our IT, I would be most grateful ... missing my _tools

Ian

If you have installed pyRevit, and the installation completed with no errors but pyRevit doesn't load, please run the command below in terminal / command line. This should fix the issue on your machine, however, please continue filing the issue with instructions below.

👉 pyrevit attach master 2711 --installed

If it does not work, try to disable your revit addins, all of them. Then, one at a time, reactivate them and restart Revit to figure out which one is interacting badly with pyRevit and Report.

♻️ To Reproduce

Steps to reproduce the behavior:

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

⏲️ Expected behavior

A clear and concise description of what you expected to happen.

🖼 Screenshots of the issue

If applicable, add screenshots to help explain your problem.

🖥️ Hardware and Software Setup (please complete the following information):

  • OS: [e.g. iOS]
  • pyRevit Version [e.g. 22]
  • 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.

👉 pyrevit env

Additional context

Add any other context about the problem here.

@sanzoghenzo
Copy link
Contributor

Hi,
please make sure to install the latest version (4.8.14) and post the error it gives you; it should be different from the one you posted (if any).

Also, please follow and fill the issue template in order to provide us as much info as possible to help you.

@iamian33
Copy link
Author

Hi and thanks for your response.
I have installed 4.8.14.2406:
image

Unfortunately CMD is disabled by our IT.
This is a new PC running Windows 11.
Please forgive my very limited programming ability but I cannot locate the issue template.
Ian

@sanzoghenzo
Copy link
Contributor

This is a common error, see here for possible resolutions.

@iamian33
Copy link
Author

iamian33 commented Feb 22, 2024 via email

@iamian33
Copy link
Author

iamian33 commented Feb 22, 2024 via email

@sanzoghenzo
Copy link
Contributor

HI @iamian33 ,
when replying by email, please delete the previous messages from the text, so that the GitHub discussion stays clean.

Also, I don't see any attached email, github issues doesn't work like an email. Paste the contents of the message in the discussion.

That being said, does your company use SentinelOne protection by any chance?

@iamian33
Copy link
Author

iamian33 commented Feb 22, 2024 via email

@sanzoghenzo
Copy link
Contributor

please, use the "view on GitHub" link at the bottom of the email message and post your info directly there, we lost all the pictures!

@BIMGSE
Copy link

BIMGSE commented Jun 10, 2024

Hello, we have the same exact problem. All machines in our company have the problem with Pyrevit not working for Revit 2024. This is extremely frustrating and our IT department have been working out for months how to fix it without any luck. It makes all of us lose our hair this is so stressful because PyRevit is so convinient to use.

Has a solution been found ?

@czwangxtt
Copy link

We are having this issue in our company too. A lot of machine shows exactly the same error when lunching the Revit. The issue is caused by an incompatible dependency that was loaded before pyRevit. The idea is to clean out the addins and let pyRevit load first. We find a solution from an older issue which solves the issue. However, it takes a lot of effort to fix all our machines.

Here are the steps we took.

  1. Uninstall all pyRevit versions
  2. Go to C:\Users<your computer user name>\AppData\Roaming and delete all folders related to pyrevit, i.e. pyRevit, pyRevit-Master.
  3. Go to C:\Users<your computer user name>\AppData\Roaming\Autodesk\Revit\Addins<revit version>, move everything in this folder to a temp location.
  4. Go to C:\ProgramData\Autodesk\Revit\Addins<revit version>, move everything in this folder to another temp location.
  5. Reinstall pyRevit
  6. Go to C:\Users<your computer user name>\AppData\Roaming\Autodesk\Revit\Addins<revit version> and rename pyRevit.addin to 0_pyRevit.addin
  7. Run Revit and close.
  8. Reverse step 3 and step 4 to bring all .addin to the original location.

@sanzoghenzo
Copy link
Contributor

I get the following when trying to use find all revisions sheets IronPython Traceback: Traceback (most recent call last): File "C:\Users\Ricardo\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Drawing Set.panel\Revision.pulldown\Find All Revised Sheets.pushbutton\script.py", line 16, in File "C:\Users\Ricardo\AppData\Roaming\pyRevit-Master\pyrevitlib\pyrevit\revit\report.py", line 16, in print_revision AttributeError: 'Revision' object has no attribute 'NumberType'

Please create a new issue for this, it is a totally unrelated problem!

@sanzoghenzo
Copy link
Contributor

Im going to close this issue since @iamian33 didn't reply in 5 months, and the solution provided is the one explained in the installation troubleshooting guide

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

5 participants
@sanzoghenzo @BIMGSE @czwangxtt @iamian33 and others