user6386155
user6386155

Reputation: 857

Multiprocess not found with Pathos

This is the first time I am using pathos library in python under Visual Studio 2019 on windows 10. When the debugger encounters the line

solver.SetMapper(Pool(self.Config.NumberOfProcessors).map)

I get error

ModuleNotFoundError: No module named 'multiprocess'

I have the following statement at the beginning of my code

from pathos.pools import ProcessPool as Pool

I have C++ compilers(multiple version of Visual studios) and I have used latest version of pip to install the packages. I also see that the multiprocess package has been installed under pathos.

I do see multiple question on the same topic on the web, but unable to resolve the issue

Actually I can reproduce the same situation with a simple example like:

def foo(x): return x def bar(x): return foo(x) x=Pool(4).map(bar, [0, 1]) print (x)

Upvotes: 0

Views: 222

Answers (1)

user6386155
user6386155

Reputation: 857

A new installation of python 3.8.1 seems to make this issue go away

Upvotes: 0

Related Questions