This is a problem with your installation of pydot_ng. We can't help to fix it. Make sure to use Theano dev version, remove/reinstall pydot_ng or try other pydot package like pydot.
On Sun, Nov 20, 2016 at 6:00 PM, Ragav Venkatesan < [email protected]> wrote: > Infact, in macOs, even the first line (static printer) gives the following > error: > > File > "/Users/ragav/anaconda/lib/python2.7/site-packages/theano/d3viz/d3viz.py", > line 81, in d3viz > > dot_graph = graph.create_dot() > > File "/Users/ragav/anaconda/lib/python2.7/site-packages/pydot_ > ng-1.0.1.dev0-py2.7.egg/pydot_ng/__init__.py", line 1656, in <lambda> > > > > File "/Users/ragav/anaconda/lib/python2.7/site-packages/pydot_ > ng-1.0.1.dev0-py2.7.egg/pydot_ng/__init__.py", line 1849, in create > > > > File "/Users/ragav/anaconda/lib/python2.7/subprocess.py", line 711, in > __init__ > > errread, errwrite) > > File "/Users/ragav/anaconda/lib/python2.7/subprocess.py", line 1343, in > _execute_child > > raise child_exception > > OSError: [Errno 86] Bad CPU type in executable > > On Sunday, November 20, 2016 at 3:50:58 PM UTC-7, Ragav Venkatesan wrote: >> >> Say I import as following. >> >> from theano.printing import pydotprint as static_theano_print >>> >>> from theano.d3viz import d3viz as dynamic_theano_print >>> >>> >> and I create a theano function which is function. and I have a path and a >> filename in the variable filename and I do the following: >> >> >>> static_theano_print(function, filename + '.png') >> >> dynamic_theano_print(function, filename + '.html') # this is not >>> working for something >> >> >> The static printer is printing a beautiful png file. But the dynamic >> printer is throwing me the following error: >> >> File >> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/d3viz/d3viz.py", >> line 80, in d3viz >> >> graph = formatter(fct) >> >> File >> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/d3viz/formatting.py", >> line 203, in __call__ >> >> vparams['tag'] = var_tag(var) >> >> File >> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/d3viz/formatting.py", >> line 315, in var_tag >> >> path = os.path.basename(path) >> >> File "/home/ragav/anaconda2/lib/python2.7/posixpath.py", line 114, in >> basename >> >> i = p.rfind('/') + 1 >> >> AttributeError: 'tuple' object has no attribute 'rfind' >> >> I wonder why and how I can solve this ? >> >> > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
