bugGNU Health - Bugs: bug #63725, Initialize the thalamus demo...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #63725: Initialize the thalamus demo database folder

Submitter:  Rohit Gupta <rohyt>
Submitted:  Sun 29 Jan 2023 12:51:47 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
Module:  Thalamus Component:  Thalamus

Tue 07 Feb 2023 03:35:04 PM UTC, comment #2: 

Closing this because it is related to your specific PostgreSQL setup and not a bug.
If you provide more informations about your PostgreSQL setup I can help (wiese@gnuhealth.org).
Best
Gerald

Gerald Wiese <gerald_wiese>
Group Member
Tue 31 Jan 2023 03:22:26 PM UTC, comment #1: 

Hey,
not sure if this is actually a bug.

In "import_pg.py" you have:

"try:
    conn = psycopg2.connect(PG_URI)
except:
    print("Unable to connect to the database")"

This is rather a problem with your PostgreSQL configuration than a bug inside Thalamus.

Do you have log entries at PostgreSQL level connected to this?
What means "user of psql"?

Best
Gerald


Gerald Wiese <gerald_wiese>
Group Member
Sun 29 Jan 2023 12:51:47 PM UTC, original submission:  

$ bash ./populate.sh

the reply is

Importing ....
Unable to connect to the database
Traceback (most recent call last):
  File "/home/rohit/.local/lib/python3.10/site-packages/thalamus/demo/./import_pg.py", line 29, in <module>
    cur = conn.cursor()
NameError: name 'conn' is not defined

1.Postgresql is running and listening
2. writing the above code as user of psql

Please help

Rohit Gupta <rohyt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gerald_wiese (Posted a comment)
  • -email is unavailable- added by rohyt (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-02-07 gerald_wiese Open/ClosedOpen Closed
    2023-01-31 gerald_wiese ComponentNone Thalamus

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code