Skip to content

Hello,I want to ask you for some questions #4

Description

@Campary

I’m quite grateful for your shared code, it’s very well written, but I have some problems with this code, and I would like to ask you about these issues. When I input “from OBIA4RTM import install” and “install.install()”, I encounter these problems and can't solve them:

Settting up OBIA4RTM PostgreSQL backend
Connection to default Postgres Database failed!
Reason: connection to server at "localhost" (::1), port 5432 failed: Connection refused (0x0000274D/10061)
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused (0x0000274D/10061)
Is the server running on that host and accepting TCP/IP connections?

Traceback (most recent call last):
File "", line 1, in
File "D:\code\OBIA4RTM\OBIA4RTM\install.py", line 39, in install
setup.setup_backend()
File "D:\code\OBIA4RTM\OBIA4RTM\setup_db\setup_postgres.py", line 245, in setup_backend
status = self.create_OBIA4RTM_DB()
File "D:\code\OBIA4RTM\OBIA4RTM\setup_db\setup_postgres.py", line 86, in create_OBIA4RTM_DB
con, cursor = self.connect_to_postgres()
File "D:\code\OBIA4RTM\OBIA4RTM\setup_db\setup_postgres.py", line 72, in connect_to_postgres
return con, cursor
UnboundLocalError: local variable 'con' referenced before assignment

I’m looking forward to your favorable reply at you earliest convenience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions