Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 590 Bytes

Python-3-Migration.md

File metadata and controls

29 lines (20 loc) · 590 Bytes

So, there are some complications when upgrading to python3.

Bad Magic Number

ImportError: bad magic number in...
  • Nix (Linux/Unix) based
    find /path/to/SickChill -name '*.pyc' -delete
    systemctl restart sickchill # or however you restart your service
    
  • Windows

    run command prompt as an administrator

    (Click on Start button -> type "cmd" -> right-click on "Command Prompt" -> click "Run as administrator")

    At the command prompt:

    net stop sickchill
    cd C:\SickChill\SickChill
    del /S *.pyc
    net start sickchill