To solve ‘NoneType’ object has no attribute ‘value’ PgAdmin4 error follow below methods.
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'```
How to solve ‘NoneType’ object has no attribute ‘value’ PgAdmin4 ?
This is a bug in pgAdmin. This looks to be a widespread bug, as evidenced by the number of reports on the pgAdmin bug list. The standalone pgAdmin may be downloaded at pgadmin.org/download and installed without any problems.
The problem was solved by removing the /.pgadmin directory (made during installation) and then executing “python pgAdmin4.py” again.
Alternative to Solve ‘NoneType’ object has no attribute ‘value’ PgAdmin4
This is a temporary solution in which you may execute the “pgAdmin 4” software in Python.
- First of all delete C:\Users\username\AppData\Roaming\pgadmin.
- Open terminal.
- Run C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py file using python
- Run as administrator the “pgAdmin 4” app from the windows menu and it works.
Hope the above solution works.
Also read :
java.lang.IllegalStateException: function =
The type already contains a definition Error