sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31540
[Question #264630]: why multiprocessing module is not recognized when python script is triggered by bat file ?
New question #264630 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264630
Hello,
[Problem:]
if the python script includes multiprocessing module and it is triggered by bat file, then system will return: [error] ImportError ( No module named multiprocessing )
[Input:]
import multiprocessing
number = multiprocessing.cpu_count()
print("Creating " + str(number) + " threads")
note: This is just a dummy example. The same code works when run from Python IDLE
[Output:]
[error] ImportError ( No module named multiprocessing )
Therefore, when you get the chance, please tell me what I have done wrong.
Take care
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.