RuntimeError: Bad magic number in .pyc file

Error when exec python -O backup dir user@gmail.com password.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

RE: RuntimeError: Bad magic number in .pyc file

This seems to be an issue with compiled python code. The bash script indicates that it's built for python 2.5, and it failed on 2.7.2 under Arch Linux x86_64.

I reluctantly built Python 2.5.6 from the unsupported repo, and the CLI one worked (the GUI one needed wx which wasn't in the AUR, so I didn't bother with it).

Great app, but annoying that it doesn't work on the current version of python2.

Other Linux distros can probably use the same type of workaround that I did to get it working.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <p> <img>

More information about formatting options