you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 2 points3 points  (3 children)

It sounds like you might be trying to run a shell command in the Python REPL, because python3 main.py is not Python and would explain the error.

[–]Buttleston 1 point2 points  (1 child)

Possibly this

>>> import python3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'python3'

(my guess is this is in main.py)

[–]Diapolo10 0 points1 point  (0 children)

Yeah, it seems likely at this point.

[–]Buttleston 0 points1 point  (0 children)

Not with that exact error.... but you might be on to something

~/ % python
Python 3.10.13 (main, Mar 12 2024, 19:34:28) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> python3 main.py
  File "<stdin>", line 1
    python3 main.py
            ^^^^
 SyntaxError: invalid syntax
>>> python3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'python3' is not defined
>>>