Sibiryakanton opened a new issue, #1327:
URL: https://github.com/apache/age/issues/1327

   **Describe the bug**
   A clear and concise description of what the bug is.
   
   **How are you accessing AGE (Command line, driver, etc.)?**
   - Python (psycopg2 + python package apache-age-python)
   
   **What data setup do we need to do?**
   ```Started Docker container with Apache Age
   ```
   
   I am started Docker container of Apache Age and trying to use the container 
in Python script. But even after LOAD extension i still got the exception - 
like extension never activated.
   
   ```
       conn = psycopg2.connect(
           host="apache_age",
           port="5432",
           dbname='dbname',
           user=config.postgresql.username(),
           password=config.postgresql.password(),
       )
       with conn.cursor() as cursor:
           cursor.execute("LOAD 'age';")
           logger.info("Age extension enabled.")
           cursor.execute("SET search_path = ag_catalog, '$user', public;")
   
           cursor.execute("SELECT typelem FROM pg_type WHERE typname='_agtype'")
           oid = cursor.fetchone()
           if oid is None:
               raise AgeNotSet("age")
   ```
   
   And i got the error in the testcase:
   Even if i remove this checks and goes to the graph creation:
   
   `    age.checkGraphCreated(conn=conn, graphName=graph_name)
   `
   
   I will get another exception:
   ```
   `FAILED tests/domain/test_apache_age.py::test_apache_age_create_node - 
psycopg2.errors.UndefinedTable: relation "ag_graph" does not exist
   `
   
   **Environment (please complete the following information):**
   - Version: 0.7.0
   - Python: 3.10.13
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to