ImportError: No module named astdicts

i try to run the sip to pjsip and got that error:

ImportError: No module named astdicts

i try to google but no reference found so i ask here

That message is from Python.

I don’t believe Python is used by the core of Asterisk.

its a script from https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip

Migrate it manually, you will have full control of what you re doing, the wiki clearly say the script It is not intended to work for every scenario or configuration;

How are you running the script and from what directory? Did you just copy the sip_to_pjsip.py file and execute it? astdicts is found in the same directory (contrib/scripts/sip_to_pjsip/astdicts.py) along with other dependencies. For some reason when you are running the main script it is unable to locate the module in its search path.