Python Forum
unexpected EOF while parsing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unexpected EOF while parsing
#1
Please can you help me where is the issue ? i do not know what i do wrong. thanks


import cx_Oracle

try:
    connection=cx_Oracle.connect("dw1","dw2","//local/DW3")
    
    with connection.cursor() as cursor:
        plsql= """select ce.num1 from tab ce where ce.num2=1"""
Error:
File "<ipython-input-28-410b62ddf535>", line 9 plsql = """select ce.num1 from tab ce where ce.num2=1""" ^ SyntaxError: unexpected EOF while parsing
buran write Jan-03-2024, 02:00 PM:
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
Reply
#2
You have a try without a corresponding except or finally. I get a different error message, but that is probably an Iron Python vs C Python thing.

Please use python tags (button in the editor) when posting code,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  unexpected EOF while parsing aaron92 3 3,554 Sep-11-2019, 10:01 PM
Last Post: aaron92
  unexpected EOF while parsing whatloop 3 8,669 Mar-09-2019, 06:59 PM
Last Post: whatloop
  SyntaxError: unexpected EOF while parsing donmerch 2 7,069 Oct-15-2018, 05:12 AM
Last Post: wavic
  unexpected output while parsing file anna 3 3,206 Apr-28-2018, 05:13 PM
Last Post: anna
  Unexpected Output after Running PArsing Script hotsea 7 5,089 Jan-10-2018, 09:55 AM
Last Post: hotsea

Forum Jump:

User Panel Messages

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