-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not implemented error from basic tutorial #281
Comments
Which version of theano are you running? Can you do
and let me know what output you get? |
@mikelty Any updates on this? |
here's the output, import gives nothing
|
Hey @mikelty the issue seems to be that there isn't a C++ compiler available to I've usually seen this issue on Windows when using the built-in Python installation. I'd recommend using the Anaconda distribution (https://www.anaconda.com/products/individual), which ships with the |
Describe the bug
during the following code block in the basic tutorial, the error below happened. the entire text of the error is pasted below.
Compiling
flux`... Done.NotImplementedError Traceback (most recent call last)
~\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\link\vm.py in call(self)
312 ):
--> 313 thunk()
314 for old_s in old_storage:
~\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\graph\op.py in rval(p, i, o, n)
475 def rval(p=p, i=node_input_storage, o=node_output_storage, n=node):
--> 476 r = p(n, [x[0] for x in i], o)
477 for o in node.outputs:
~\AppData\Local\Programs\Python\Python37\lib\site-packages\starry_core\ops\limbdark\base_op.py in perform(self, *args)
51 def perform(self, *args):
---> 52 raise NotImplementedError("Only C op is implemented")
NotImplementedError: Only C op is implemented
During handling of the above exception, another exception occurred:
NotImplementedError Traceback (most recent call last)
in
9 # Compute and plot the light curve
10 plt.figure(figsize=(12, 5))
---> 11 plt.plot(time, map.flux(xo=xo, yo=yo, ro=ro, zo=zo))
12 plt.xlabel("Time [arbitrary]", fontsize=20)
13 plt.ylabel("Flux [normalized]", fontsize=20);
~\AppData\Local\Programs\Python\Python37\lib\site-packages\starry\maps.py in flux(self, **kwargs)
1810
1811 # Compute & return
-> 1812 return self.amp * self.ops.flux(xo, yo, zo, ro, self._u)
1813
1814 def intensity(self, mu=None, x=None, y=None):
~\AppData\Local\Programs\Python\Python37\lib\site-packages\starry_core\utils.py in wrapper(instance, *args)
132
133 # Return the compiled version
--> 134 return getattr(instance, cname)(*args)
135
136 return wrapper
~\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\compile\function\types.py in call(self, *args, **kwargs)
973 outputs = (
974 self.fn()
--> 975 if output_subset is None
976 else self.fn(output_subset=output_subset)
977 )
~\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\link\vm.py in call(self)
315 old_s[0] = None
316 except Exception:
--> 317 raise_with_op(self.fgraph, node, thunk)
318
319
~\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\link\utils.py in raise_with_op(fgraph, node, thunk, exc_info, storage_map)
506 # Some exception need extra parameter in inputs. So forget the
507 # extra long error message in that case.
--> 508 raise exc_value.with_traceback(exc_trace)
509
510
~\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\link\vm.py in call(self)
311 self.thunks, self.nodes, self.post_thunk_clear
312 ):
--> 313 thunk()
314 for old_s in old_storage:
315 old_s[0] = None
~\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\graph\op.py in rval(p, i, o, n)
474 # default arguments are stored in the closure of
rval
475 def rval(p=p, i=node_input_storage, o=node_output_storage, n=node):
--> 476 r = p(n, [x[0] for x in i], o)
477 for o in node.outputs:
478 compute_map[o][0] = True
~\AppData\Local\Programs\Python\Python37\lib\site-packages\starry_core\ops\limbdark\base_op.py in perform(self, *args)
50
51 def perform(self, *args):
---> 52 raise NotImplementedError("Only C op is implemented")
NotImplementedError: Only C op is implemented
Apply node that caused the error: GetClOp(<TensorType(float64, vector)>)
Toposort index: 3
Inputs types: [TensorType(float64, vector)]
Inputs shapes: [(3,)]
Inputs strides: [(8,)]
Inputs values: [array([-1. , 0.5 , 0.25])]
Outputs clients: [[Subtensor{int64}(GetClOp.0, Constant{1}), Subtensor{int64}(GetClOp.0, Constant{0}), Elemwise{Composite{((i0 * i1) / i2)}}[(0, 1)](TensorConstant{(1,) of 0...8861837907}, GetClOp.0, Elemwise{Composite{(i0 + (i1 * i2))}}.0)]]
Backtrace when the node is created(use Theano flag traceback__limit=N to make it longer):
File "C:\Users\mik\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\interactiveshell.py", line 3337, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File "C:\Users\mik\AppData\Local\Programs\Python\Python37\lib\site-packages\IPython\core\interactiveshell.py", line 3417, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 11, in
plt.plot(time, map.flux(xo=xo, yo=yo, ro=ro, zo=zo))
File "C:\Users\mik\AppData\Local\Programs\Python\Python37\lib\site-packages\starry\maps.py", line 1812, in flux
return self.amp * self.ops.flux(xo, yo, zo, ro, self._u)
File "C:\Users\mik\AppData\Local\Programs\Python\Python37\lib\site-packages\starry_core\utils.py", line 126, in wrapper
func(instance, *dummy_args),
File "C:\Users\mik\AppData\Local\Programs\Python\Python37\lib\site-packages\starry_core\core.py", line 713, in flux
c = self._get_cl(u)
File "C:\Users\mik\AppData\Local\Programs\Python\Python37\lib\site-packages\theano\graph\op.py", line 250, in call
node = self.make_node(*inputs, **kwargs)
File "C:\Users\mik\AppData\Local\Programs\Python\Python37\lib\site-packages\starry_core\ops\limbdark\get_cl.py", line 21, in make_node
return Apply(self, [tt.as_tensor_variable(arg)], [arg.type()])
HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.
`To Reproduce
windows 10, python3.7.4,
pip install starry
and then copy and paste everything up to that step into a jupyter notebook.Expected behavior
the graph in the documentation site.
Your setup (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: