Missing "pyrevit_config.ini" file

Hello,

I was trying to find the solutions but with no avail. Basically, no setting are saved whenever I use pyrevit - especially UI/UX. I saw that people had this problem, and it seems it’s a problem of missing “pyrevit_config.ini” which indeed I do not have, but no solution for me worked:

-reinstalling pyrevit in default or other paths

-pyrevit no matter what never recreates “pyrevit_config.ini”

-I’ve tried to recreate the file myself but I ended up with this error:

”WARNING [pyrevit.userconfig] Can not create config file under: C:\Users\sweldy\AppData\Roaming\pyRevit\pyRevit_config.ini | File contains no section headers.”

It’s a first time it happened for me, on all previous computers it worked pretty well, so if anybody has a solution I would be grateful!

My software:
Revit 2024.1
Windows 10 22H2
Pyrevit 5.3.1

I’ve had that in the past on one machine, never was able to reproduce the issue later but…

  • Added a blank config file like you seemed to have done, got the same error.
  • I ended up adding just one of the possible headers

[core]

And it did the trick

it worked, I manually recreated “pyrevit_config.ini” file with [core] on the top and next time I opened Revit, it wrote down setting to the file. Thanks!

1 Like