This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author simonsteiner
Recipients simonsteiner
Date 2010-04-26.10:52:13
SpamBayes Score 3.1934924e-08
Marked as misclassified No
Message-id <1272279135.33.0.722115657871.issue8534@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-04-26 10:52:15simonsteinersetrecipients: + simonsteiner
2010-04-26 10:52:15simonsteinersetmessageid: <1272279135.33.0.722115657871.issue8534@psf.upfronthosting.co.za>
2010-04-26 10:52:13simonsteinerlinkissue8534 messages
2010-04-26 10:52:13simonsteinercreate