You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError Traceback (most recent call last)
<ipython-input-3-dea198b06e06> in <module>()
1 from metaopt.core.paramspec.util import param
----> 2 from metaopt.core.optimize.optimize import optimize
3
4 @param.float("a", interval=[-1, 1])
5 @param.float("b", interval=[0, 1])
C:\Anaconda3\lib\site-packages\metaopt\core\optimize\optimize.py in <module>()
8
9 # First Party
---> 10 from metaopt.concurrent.invoker.multiprocess import MultiProcessInvoker
11 from metaopt.concurrent.invoker.pluggable import PluggableInvoker
12 from metaopt.core.optimize.util.exception import GlobalTimeoutError, \
C:\Anaconda3\lib\site-packages\metaopt\concurrent\invoker\multiprocess.py in <module>()
13
14 # First Party
---> 15 from metaopt.concurrent.employer.process import ProcessWorkerEmployer
16 from metaopt.concurrent.invoker.invoker import Invoker
17 from metaopt.concurrent.invoker.util.call_handle import CallHandle
C:\Anaconda3\lib\site-packages\metaopt\concurrent\employer\process.py in <module>()
19
20
---> 21 class ProcessWorkerEmployer(Employer):
22 """
23 Keeps track of up to as many worker processes as there are CPUs.
C:\Anaconda3\lib\site-packages\metaopt\concurrent\employer\process.py in ProcessWorkerEmployer()
27 # These are a shared resource for all process provider instances.
28 # So we keep them in a shared space, by implementing the borg pattern.
---> 29 _lock = Lock()
30 _worker_processes = []
31
TypeError: __init__() missing 1 required keyword-only argument: 'ctx'
The text was updated successfully, but these errors were encountered:
This issue is solved when using Python 2.
I was able to solve it in Python 3 by adding ctx=None where it was needed, though I don't know if that is ok with the rest of the code.
I tried to run the first example from the docs:
http://metaopt.readthedocs.org/en/latest/#
The line:
produces the following error:
This happens on Python 3.4 / Windows 8 x64.
Here's the complete example:
And the whole stacktrace:
The text was updated successfully, but these errors were encountered: