Make SURE you downloaded the right ROM for P765. If you sure that is the right ROM, open the ROM zip with 7zip and go to META-INF/com/google/android/ and extract updater-script. Open it with Notepad++ (only Notepad++, not Notepad/Wordpad), and delete the first assert() command, like this:
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?