The blow error occurs:
D:\Python34>monkeyrunner d:\Python34\AutoTestFrame\testIni.py
160204 11:57:53.685:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
Script terminated due to an exception
160204 11:57:53.685:S [main]
[com.android.monkeyrunner.MonkeyRunnerOptions]Traceback (most recent call
last):
File "d:\Python34\AutoTestFrame\testIni.py", line 1, in <module>
import configparser
ImportError: No module named configparser
But this below testIni.py can works on python IDE, so what's happens and
how can I do it work, Thanks a lot.
=================================testIni.py=====================================================
import configparser
config = configparser.ConfigParser()
# set a number of parameters
config.add_section("book")
config.set("book", "title", "the python standard library")
config.set("book", "author", "fredrik lundh")
config.add_section("ematter")
config.set("ematter", "pages", '250')
# write to file
config.write(open('1.ini', "w"))
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/2ea75607-fec8-44e2-90ef-838180004aea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.