Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tornado psycopg2
#1
Alright when I run python3 main.py I get this :
2020-02-20 12:50:29,223 Database.py:22 _error_: _error_ connecting to database
2020-02-20 12:50:29,224 Database.py:27 _error_: Intialization needs connection fir st
2020-02-20 12:50:29,228 main.py:69 INFO: Application listening on port 8000

when I enter my servers ip:8000

I get this _error_:
Error:
2020-02-20 12:50:55,098 web.py:1788 _error_: Uncaught exception GET /login (myip) HTTPServerRequest(protocol='http', host='serversip:8000', method='GET', uri='/login', version='HTTP/1.1', remote_ip='myip') Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/tornado/web.py", line 1697, in _execute result = method(*self.path_args, **self.path_kwargs) File "/var/www/biriba/html/Source/View/LoginHandler.py", line 17, in get self.render(data) File "/var/www/biriba/html/Source/View/BaseHandler.py", line 43, in render for key, valueType in self.contract.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' 2020-02-20 12:50:55,104 web.py:2246 _error_: 500 GET /login (myip) 6.96ms
here is the repo :
https://github.com/nikoszn/Biriba-master

I think it doesnt connect to postgres,is that the issue if so how do I fix it? I hope someone can help me
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,707 Oct-08-2021, 11:22 AM
Last Post: Larz60+
  Psycopg2 doesn't work with python2 MedianykEugene 3 3,001 Aug-10-2021, 07:00 AM
Last Post: ndc85430
  PostgreSQL psycopg2.errors.DuplicateColumn: column specified more than once rajnish_nationfirst 2 3,848 Jun-21-2020, 08:17 AM
Last Post: ibreeden
  Frequency and timing of psycopg2 commits acecase 0 2,220 Nov-01-2019, 05:50 PM
Last Post: acecase
  Create table with psycopg2 on postgreSQL DB yhecohen 2 3,361 Aug-23-2019, 05:56 AM
Last Post: massimo_m
  psycopg2 insert error Wonder_women 0 2,695 Jun-10-2019, 11:56 AM
Last Post: Wonder_women
  import psycopg2 issue bhuvneshdogra 1 3,025 Dec-27-2018, 04:03 PM
Last Post: Larz60+
  Need help on a psycopg2 question badfish 1 5,531 Nov-28-2018, 10:16 PM
Last Post: badfish
  Error when Inserting CSV file values into a postgreSQL using psycopg2 klllmmm 8 13,293 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 29,797 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