pyrevitlabs / pyRevit

Rapid Application Development (RAD) Environment for Autodesk Revit®
http://wiki.pyrevitlabs.io
GNU General Public License v3.0
1.28k stars 331 forks source link

pyRevit_config.ini not save changes #2071

Open chttIE opened 7 months ago

chttIE commented 7 months ago

I'm not saving the settings I specify. For example, I'm trying to add userextensions. After clicking save, pyRevit_config.ini should be rewritten, but it doesn't happen and the settings are reset to factory defaults.

It turned out that there are several ways where pyRevit will look for the config file.

  1. C:/ProgramData / pyRevit
  2. C:\Users\%USERNAME%\AppData\Roaming\pyRevit

and that's exactly the problem. He's not using it. And the 2nd path is empty by default, but if you copy pyRevit_config.ini there by hand, the settings will be saved.

As I see the situation. using pyRevit it tries to find and resave the file by 2 path, it doesn't find it and abandons this idea, but if you manually copy it, everything starts working.

I tried both admin and user installer.

chttIE commented 7 months ago

image Once again reinstalled everything and when trying to open the config file by pressing the settings button shifr + click. I got an error. If I understood correctly it did not find the config

sanzoghenzo commented 6 months ago

Hi @chttIE, sorry for the delay!

Did you install the admin version or the single user/non admin one? Is your user a regular (non admin) one?

Can you please post the output of the pyrevit env command?

chttIE commented 4 months ago

==> Registered Clones (full git repos) ==> Registered Clones (deployed from archive/image) master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.14.24016+1909" | Path: "C:\Program Files\pyRevit-Master" ==> Attachments master | Product: "24.2" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2023.1.1" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2021.1.7" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2020.2.9" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2019.2.5" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers ==> Installed Extensions pyApex | Type: UIExtension | Repo: "https://github.com/apex-project/pyApex.git" | Installed: "C:\Users\i.nistratov\AppData\Roaming\pyRevit\Extensions\pyApex.extension" pyChilizer | Type: UIExtension | Repo: "https://github.com/dnenov/pyChilizer" | Installed: "C:\Users\i.nistratov\AppData\Roaming\pyRevit\Extensions\pyChilizer.extension" ==> Default Extension Search Path C:\Users\i.nistratov\AppData\Roaming\pyRevit\Extensions ==> Extension Search Paths C:\Users\i.nistratov\AppData\Roaming\pyRevit\Extensions ==> Extension Sources - Default https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json ==> Extension Sources - Additional ==> Installed Revits 24.2 | Version: 24.2.0.63 | Build: 20231029_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2024\" 2023.1.1 | Version: 23.1.10.4 | Build: 20221122_1550(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\" 2021.1.7 | Version: 21.1.70.21 | Build: 20220517_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\" 2020.2.9 | Version: 20.2.90.12 | Build: 20220517_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\" 2019.2.5 | Version: 19.2.50.16 | Build: 20220111_1110(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019\" ==> Running Revit Instances PID: 1488 | 2019.2.5 | Version: 19.2.50.16 | Build: 20220111_1110(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2019" ==> User Environment Microsoft Windows 10 [Version 10.0.19045] Executing User: PP\i.nistratov Active User: Admin Access: Yes %APPDATA%: "C:\Users\i.nistratov\AppData\Roaming" Latest Installed .Net Framework: 4.8 Installed .Net Target Packs: v4.0 v4.5 v4.5.1 v4.5.2 v4.6 v4.6.1 v4.7.2 v4.8 v4.X Installed .Net-Core Target Packs: v7.0.203 pyRevit CLI v4.8.14.24016+1909.ee814ee2f686d23db8bb6ff80d8bb918ff9adc99

sanzoghenzo commented 4 months ago

If you are the only user of the machine, just uninstall this version and use the single user installer (the first one in the release page, not the admin/all users one).

This is of course a workaround, this issue still needs to be investigated and fixed. Unfortunately I'm not able to reproduce since my only windows/revit installation is my company laptop in which I dont have admin permissions.

@jmcouffin can you reproduce this in any way?

github-actions[bot] commented 1 month ago

"👋 Hi there! It looks like there hasn't been any activity on this issue for the past 60 days. We understand that things can get busy. Just a friendly reminder that this issue is scheduled to be automatically closed in 14 days if there's no further activity. If you still need assistance or have additional information to share, please feel free to comment, and we'll be happy to help! 🚀 Thanks for your understanding!"

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

jmcouffin commented 1 month ago

It needs to be fixed.