Python Forum

Full Version: Open file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. I am trying to open a file in Python IDLE but nothing happends besides theese signs and letters appearing:

Does somone know why this is happening? 
Kind regards,
 Alex

Moderator sparkz_alot:
Moved to proper location.  Added spoiler tags.
Posting a big slab of bytecode isn't going to get you anywhere.

Post:
  • Your code
  • Your error traceback verbatim, complete!
  • Where you think the problem may lie (if you have a clue)
Is the file extension .pyc ? If it is, this is compiled python source code. You need file with .py at the end
Sorry, I did not know how else to formulate the question as I have noe clue whatsoever why the bytecode is appearing. Yes, the file ends with .py
This file is compiled python. The original extension was .pyc and was copied to a .py or the extension changed.
You need to find the original .py file to run the code.
If you can't find the original python code, you can try to decompile with https://pypi.python.org/pypi/uncompyle6