[google-appengine] Re: App engine import multiprocessing error

2014-02-11 Thread pdknsk
You can't use multiprocessing, but threading works just fine. I haven't 
tried, but you might be able to use multiprocessing.dummy instead.

http://docs.python.org/2/library/multiprocessing.html#module-multiprocessing.dummy

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: App engine import multiprocessing error

2014-02-10 Thread timh
You can't use multiprocessing on appengine.  Multiprocessing is for 
creating and coordinating sub processes for parallelism.
That is not an option on appengine.  Appengine has other facilities like 
async methods, task queues and backends (which can use traditional 
threading).

You will need to rethink your plans in terms of the facilities that 
appengine provides.

T


On Tuesday, February 11, 2014 4:20:53 AM UTC+8, tao hong wrote:

 I would like to use `multiprocessing` library for my site. However, I ran 
 into some import error in the local test environment. Can I have any 
 suggestions on how to fix this issue? or I have to use `threading` library 
  instead of `multiprocessing`. Thanks!

 Below is the traceback information.

 ERROR2014-02-10 19:34:52,315 cgi.py:121] Traceback (most recent 
 call last):
 
   File D:\Dropbox\ubertool_src\przm/przm_batchoutput.py, line 23, in 
 module
 
 import multiprocessing
 
   File C:\Python27\Lib\multiprocessing\__init__.py, line 65, in 
 module
 
 from multiprocessing.util import SUBDEBUG, SUBWARNING
 
   File C:\Python27\Lib\multiprocessing\util.py, line 40, in module
 
 from subprocess import _args_from_interpreter_flags
 
 ImportError: cannot import name _args_from_interpreter_flags


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.