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 iritkatriel
Recipients drougge, iritkatriel
Date 2020-08-17.13:51:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597672274.38.0.706419067144.issue41567@roundup.psfhosted.org>
In-reply-to
Content
I see the same in Python 3.10 on windows 10.

If I change the relative imports to absolute imports in a couple of functions in multiprocessing.context as below, the attached (pool_error_on_3.9.py) script not longer raises the exception.

    def SimpleQueue(self):
        '''Returns a queue object'''
        from multiprocessing.queues import SimpleQueue
        return SimpleQueue(ctx=self.get_context())

    def Pool(self, processes=None, initializer=None, initargs=(),
             maxtasksperchild=None):
        '''Returns a process pool object'''
        from multiprocessing.pool import Pool
        return Pool(processes, initializer, initargs, maxtasksperchild,
                    context=self.get_context())
History
Date User Action Args
2020-08-17 13:51:14iritkatrielsetrecipients: + iritkatriel, drougge
2020-08-17 13:51:14iritkatrielsetmessageid: <1597672274.38.0.706419067144.issue41567@roundup.psfhosted.org>
2020-08-17 13:51:14iritkatriellinkissue41567 messages
2020-08-17 13:51:14iritkatrielcreate