Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tornado psycopg2
#2
It seems that your code is written for Python2.x (dict.iteritems()), but you are trying to use it Python3.6. Try to rename .iteritems() to .items() in BaseHandler. However, there are probably other errors in the code.
Reply


Messages In This Thread
tornado psycopg2 - by Nikosznb - Feb-20-2020, 03:51 PM
RE: tornado psycopg2 - by scidam - Feb-23-2020, 10:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How psycopg2 autocommit works ? johntay 3 10,926 Oct-08-2021, 11:22 AM
Last Post: Larz60+
  Psycopg2 doesn't work with python2 MedianykEugene 3 3,066 Aug-10-2021, 07:00 AM
Last Post: ndc85430
  PostgreSQL psycopg2.errors.DuplicateColumn: column specified more than once rajnish_nationfirst 2 3,910 Jun-21-2020, 08:17 AM
Last Post: ibreeden
  Frequency and timing of psycopg2 commits acecase 0 2,324 Nov-01-2019, 05:50 PM
Last Post: acecase
  Create table with psycopg2 on postgreSQL DB yhecohen 2 3,410 Aug-23-2019, 05:56 AM
Last Post: massimo_m
  psycopg2 insert error Wonder_women 0 2,720 Jun-10-2019, 11:56 AM
Last Post: Wonder_women
  import psycopg2 issue bhuvneshdogra 1 3,054 Dec-27-2018, 04:03 PM
Last Post: Larz60+
  Need help on a psycopg2 question badfish 1 5,573 Nov-28-2018, 10:16 PM
Last Post: badfish
  Error when Inserting CSV file values into a postgreSQL using psycopg2 klllmmm 8 13,446 Oct-07-2016, 06:48 PM
Last Post: klllmmm
  Error when using copy_expert(sql, file) in psycopg2 to insert data from several CSV klllmmm 5 30,172 Oct-03-2016, 01:13 AM
Last Post: klllmmm

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020