(Sep-22-2017, 02:25 PM)sylas Wrote: I put you new first line. Now i have:/usr/bin/python3.5 /home/sylvain/PycharmProjects/ping/game.pyI know you are changing the code from what is actually there.
Traceback (most recent call last):
File "/home/sylvain/PycharmProjects/ping/game.py", line 5, in <module>
from data.main import main
File "/home/sylvain/PycharmProjects/ping/data/main.py", line 3, in <module>
from .control import Control
File "/home/sylvain/PycharmProjects/ping/data/control.py", line 4, in <module>
from .states import (classic, menu, mode, options, controls, audio, ghost, splash, keybinding, getkey)
File "/home/sylvain/PycharmProjects/ping/data/states/classic.py", line 6, in <module>
from .. import AI
ImportError: bad magic number in 'data.AI': b'\x03\xf3\r\n'
Process finished with exit code 1
https://github.com/metulburr/pong/blob/m...trol.py#L4
There is no parenthesis on the original code, as well as no copyright symbol, you must of copy and pasted it wrong. Dont copy and paste, just download the repo. If you are changing the code from what is there, who knows what else you changed to cause the problems you are having.
As for py2, py3, linux, or windows.... I created the exe from python2.7.* on windows. As well as ran both python versions in linux and windows before uploading the repo.
Recommended Tutorials: