manoj-g-nair / droidbox

Automatically exported from code.google.com/p/droidbox
0 stars 0 forks source link

Error: <ImportError: cannot import name OrderedDict> #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run ./startemu.sh <AVD name>
2. Run ./droidbox.sh <file.apk> <duration in secs (optional)> 
3. Error

What is the expected output? What do you see instead?
- The expected is to open the emulator and run the dynamic analysis.

What version of the product are you using? On what operating system?
- Latest version

Please provide any additional information below.
- The problem can be solved changing in the file droidbox.py the:

from collections import OrderedDic

to

try:
    from collections import OrderedDict
except ImportError:
    # python 2.6 or earlier, use backport
    from ordereddict import OrderedDict

Original issue reported on code.google.com by nikchris...@gmail.com on 20 Mar 2014 at 4:12

GoogleCodeExporter commented 9 years ago
DroidBox and all scripts are build for python2.7, if you are using python2.6 or 
even python3.x it won't work properly.

Original comment by spreitze...@googlemail.com on 18 Apr 2014 at 11:17