Forums

bash console

hi guys. Whenever i try to load something on the bash console it results in this error:

(mysite-virtualenv) 08:20 ~ $ python3 bot6.py
Traceback (most recent call last):
  File "bot6.py", line 1, in <module>
    import telebot
  File "/home/pilotdamiano98/telebot.py", line 1
    Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
             ^
SyntaxError: invalid syntax

if i put my python code on a syntax checker, it says that there aren't syntax errors. can someone help me?

[edit by admin: formatting]

That error is saying that the first line of your code file telebot.py is this:

Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32

That is not valid Python code -- it looks like you might have copied and pasted the output from a Python session on your own machine?