Pachrom error when porting to wave

Apr 25, 2013
I get this error and doesnt know how to fix it.I searched it on google and no answer find.
So i will ask to there
pull: /system/build.prop -> /home/ihavenick/patchrom/wave/out/target_files/SYSTEM/build.prop
3897 files pulled. 0 files skipped.
1284 KB/s (411634334 bytes in 312.842s)
Remount /system to be writable
remount succeeded
Run getfilesysteminfo to build filesystem_config.txt
130 KB/s (5572 bytes in 0.041s)
Run getfilesysteminfo and to recover symlink
Recovery link files success
Build apkcerts.txt
1511 KB/s (251784 bytes in 0.162s)
Generate metadata used to build target files...
Compress the target_files dir into zip file
Build full ota package: /home/ihavenick/patchrom/wave/
Traceback (most recent call last):
  File "../tools/releasetools/ota_from_target_files", line 76, in <module>
    import common
  File "/home/ihavenick/patchrom/tools/releasetools/", line 42, in <module>
    OPTIONS.search_path = os.path.join(os.environ["PORT_ROOT"], "tools");
  File "/usr/lib/python2.7/", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'PORT_ROOT'
How to fix KeyError: "PORT_ROOT"

But i passed this error via ota_from_phone from real andorid source.

But now its wants signapk pass. but i dont know it.Maybe i must change it too?