classification
Title: multiprocessing not working from egg
Type: behavior Stage: needs patch
Components: Library (Lib) Versions: Python 3.2, Python 3.1, Python 2.7, Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: jnoller Nosy List: asksol, eric.araujo, jnoller, simonsteiner
Priority: low Keywords: needs review, patch

Created on 2010-04-26 10:52 by simonsteiner, last changed 2011-06-14 15:48 by eric.araujo.

Files
File name Uploaded Description Edit
forking.patch simonsteiner, 2010-04-26 12:00
Messages (2)
msg104215 - (view) Author: simon (simonsteiner) Date: 2010-04-26 10:52
testmultiprocessing.py:

def main():
    import multiprocessing

    proc = multiprocessing.Process(target=runhi)
    proc.start()
    proc.join()
    
def runhi():
    print 'hi'
    
if __name__ == "__main__":
    main()

testmultiprocessing.py is inside myegg.egg

set PYTHONPATH=myegg.egg

python -m testmultiprocessing

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python26\lib\multiprocessing\forking.py", line 341, in main
    prepare(preparation_data)
  File "C:\Python26\lib\multiprocessing\forking.py", line 450, in prepare
    file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named testmultiprocessing
msg138337 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-06-14 15:48
I’m not sure this belongs on the Python tracker.
History
Date User Action Args
2011-06-14 15:48:57eric.araujosetnosy: + eric.araujo
messages: + msg138337
2010-08-31 11:00:54asksolsetkeywords: + needs review
nosy: + asksol
2010-04-26 12:00:21simonsteinersetfiles: + forking.patch
keywords: + patch
2010-04-26 11:29:35pitrousetnosy: + jnoller
versions: + Python 3.1, Python 2.7, Python 3.2
priority: low
assignee: jnoller
type: behavior
stage: needs patch
2010-04-26 10:52:14simonsteinercreate