Hi Hallison

You can do the following to get rid of the error:

   - Take the backup of the '*pgadmin4.db*' file and then delete it.
   - Restart the pgAdmin4

Have you upgraded your existing pgAdmin setup or it's a fresh installation?

On Mon, May 17, 2021 at 9:31 PM Hallison Rangel Silva <
hallisonrang...@hotmail.com> wrote:

> Boa noite!
> Estou com problemas ao tentar rodar o meu PgAdmin 4.
>
>
> pgAdmin Runtime Environment
> --------------------------------------------------------
> Python Path: "C:\Program Files\PostgreSQL\13\pgAdmin 4\python\python.exe"
> Runtime Config File:
> "C:\Users\halli\AppData\Roaming\pgadmin\runtime_config.json"
> pgAdmin Config File: "C:\Program Files\PostgreSQL\13\pgAdmin
> 4\web\config.py"
> Webapp Path: "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgAdmin4.py"
> pgAdmin Command: "C:\Program Files\PostgreSQL\13\pgAdmin
> 4\python\python.exe -s C:\Program Files\PostgreSQL\13\pgAdmin
> 4\web\pgAdmin4.py"
> Environment:
>   - ALLUSERSPROFILE: C:\ProgramData
>   - APPDATA: C:\Users\halli\AppData\Roaming
>   - CHROME_CRASHPAD_PIPE_NAME: \\.\pipe\crashpad_3140_YTOHJJAUTIWKVDBH
>   - CHROME_RESTART: NW.js|O NW.js travou. Reiniciar agora?|LEFT_TO_RIGHT
>   - CommonProgramFiles: C:\Program Files\Common Files
>   - CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
>   - CommonProgramW6432: C:\Program Files\Common Files
>   - COMPUTERNAME: DESKTOP-R10034R
>   - ComSpec: C:\Windows\system32\cmd.exe
>   - DriverData: C:\Windows\System32\Drivers\DriverData
>   - FPS_BROWSER_APP_PROFILE_STRING: Internet Explorer
>   - FPS_BROWSER_USER_PROFILE_STRING: Default
>   - HOMEDRIVE: C:
>   - HOMEPATH: \Users\halli
>   - LOCALAPPDATA: C:\Users\halli\AppData\Local
>   - LOGONSERVER: \\DESKTOP-R10034R
>   - NUMBER_OF_PROCESSORS: 8
>   - OneDrive: C:\Users\halli\OneDrive
>   - OS: Windows_NT
>   - Path:
> C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
> Files\Git\cmd;C:\Users\halli\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\halli\AppData\Local\Programs\Python\Python39\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Exercism
>   - PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
>   - PGADMIN_INT_KEY: ad7ab709-8bda-48ab-8883-63f6306bb4ae
>   - PGADMIN_INT_PORT: 62085
>   - PGADMIN_SERVER_MODE: OFF
>   - PROCESSOR_ARCHITECTURE: AMD64
>   - PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 140 Stepping 1,
> GenuineIntel
>   - PROCESSOR_LEVEL: 6
>   - PROCESSOR_REVISION: 8c01
>   - ProgramData: C:\ProgramData
>   - ProgramFiles: C:\Program Files
>   - ProgramFiles(x86): C:\Program Files (x86)
>   - ProgramW6432: C:\Program Files
>   - PSModulePath: C:\Program
> Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
>   - PUBLIC: C:\Users\Public
>   - SESSIONNAME: Console
>   - SystemDrive: C:
>   - SystemRoot: C:\Windows
>   - TEMP: C:\Users\halli\AppData\Local\Temp
>   - TMP: C:\Users\halli\AppData\Local\Temp
>   - USERDOMAIN: DESKTOP-R10034R
>   - USERDOMAIN_ROAMINGPROFILE: DESKTOP-R10034R
>   - USERNAME: halli
>   - USERPROFILE: C:\Users\halli
>   - windir: C:\Windows
> --------------------------------------------------------
>
> Traceback (most recent call last):
>   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'
>
>
> Poderia me ajudar ?
>


-- 
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*

*Mobile: +91 976-788-8246*
  • Problemas. Hallison Rangel Silva
    • Re: Problemas. Akshay Joshi

Reply via email to