Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

unexpected EOF while parsing #1

Open
ghost opened this issue Apr 3, 2020 · 2 comments
Open

unexpected EOF while parsing #1

ghost opened this issue Apr 3, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 3, 2020

Input a proxy, press enter for none.
eg: 1.1.1.1:1111

Traceback (most recent call last):
File "main.py", line 17, in
PROXY = input()
File "", line 0

^

SyntaxError: unexpected EOF while parsing

@die-dimitry
Copy link

getting same error. Admin plz revert back

@johnmalib
Copy link

Unexpected EOF( End Of File ) while parsing is a syntax error which means the end of source code is reached even before all the blocks of code are completed. This happens in a number of situations in Python, such as:

  • Missing or unmatched parentheses.
  • Forget to enclose code inside a special statement.
  • Unfinished try statement.

To solve this error, first check to make sure that every if statement, for loop, while loop, try statement and function contains code. Second, check to make sure you close all the parenthesis in your code. Moreover, you can avoid this problem by keeping code neat and readable, making it easier to find and fix the problem whenever the error does occur.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants