-
-
Notifications
You must be signed in to change notification settings - Fork 357
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 [pyrevit.userconfig] Can not save user config. No data is available for encoding 0. #2583
Comments
You environment log doesn't list any clone registered... did you install the admin version? |
not sure how to answer that, the pyrevit is setup by IT. |
Ok, so it is an admin install, but I realized that the strange output I noticed is in line with the config file being empty, so let's not worry about that 😉
I only now noticed this part. Did you figure out which is the script that caused the issue? Can you share it? This will greatly increase the chance to spot the cause and solve the problem. |
This is a good clue, I used to have a func in the xxx_startup.py for initiation
no issue before rvt 2025 for years. interestingly, there is no [xxx.smartbutton] type button in the DuckMaker.extension. But based on the first line of error message, it encounter issue when checking that state. Will this be helpful information? |
From these new errors, I suspect there's something missing in the installation, not sure if it's an oversight on our part diring the packaging, or a problem in the installation procedure used by your IT. I kindly ask you (to ask your IT) to update to the version 5.0.1 to see if this was just a problem in the files signature (I don't believe it is, but it doesn't hurt to try 😉) uninstall the previous version and remove all the pyrevit paths (see the troubleshooting guide above) before installing the new release to make sure there's no interference from leftovers. |
more digging. I am able to recreate this issue, which might be related to the "encoding 0 topic". I mentioned earlier in the original post that the "traceback" module often does not work as expected in Rhino 8 and Revit 2025, compared to any previous version. still using 5.0.0.25015+1357-wip:2712:2025.4 |
finding more ways to break pyrevit, this time it is the logger |
I reiterate my request, your installation seems broken...
|
5.0.1 works! No more issues! |
✈ Pre-Flight checks
🐞 Describe the bug
a custom extension folder I have pointed to Revit 2024 and before, all fine.
same extension folder pointed to Revit 2025, generate error message below.
After this message show, the extension will still load but cannot stick after Revit closure and re-open. It also causes the Revit 2024 custom folder extension to detach.
I opened the pyRevit_config.ini in text editor and it show total empty file.
address for customized extension folder : C:\Users\szhang\design-repo\EnneadTab-OS\Apps_revit (but again this same address has not caused any problem in any pre-2025 Revit version)
pyrevit version: 5.0.0.25015+1357-wip:2712:2025.4
⌨ Error/Debug Message
♻️ To Reproduce
error msg only show in 2025 version. Fine in all previous Revit version.
other attempt to isolate problem:
⏲️ Expected behavior
save pyrevit_config.ini successfully,
if there are backward compatible issue with the new Revit 2025, output issue, but preserve the previous version of pyrevit_config.ini.
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
Love the pyrevit community, appreciate the big push for pyrevit 5! You brought fire to humanity!
The text was updated successfully, but these errors were encountered: