9

I used to have a functioning PostgreSQL database, but upon reinstalling due to computer issues, I am now getting this error after launching:

  File "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgAdmin4.py", line 98, in <module>
    app = create_app()
  File "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgadmin\__init__.py", line 347, in create_app
    if not os.path.exists(SQLITE_PATH) or get_version() == -1:
  File "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgadmin\setup\db_version.py", line 19, in get_version
    return version.value
AttributeError: 'NoneType' object has no attribute 'value'```
joshiki
  • 167
  • 2
  • 11
  • I have this issue as well. never had it before. I made sure to allow these through windows firewall. You may want to specify a few things. 1. Is pgAdmin on the same machine as your database? 2. Have you tried anything to get this to work. – Chris Jones May 17 '21 at 14:06

1 Answers1

8

As this reply recommends, I removed described file (C:\Users{User name}\AppData\Roaming\pgadmin\pgadmin4.db on Windows), added user environment varible SQLITE_PATH = 'C:\Users{User name}\AppData\Roaming\pgadmin\pgadmin4.db' and launched pgAdmin. Worked for me.

Walrus94
  • 96
  • 1