DIGITS icon indicating copy to clipboard operation
DIGITS copied to clipboard

Network visualization not working (Caffe)

Open enoonIT opened this issue 10 years ago • 6 comments

Using the latest version of digits, whenever I try to visualize a network I get:

500: INTERNAL SERVER ERROR
'module' object has no attribute 'poll'

screenshot from 2016-07-27 12 20 47

enoonIT avatar Jul 27 '16 10:07 enoonIT

Works for me. I bet this is some sort of library version mismatch. Can you run the server in debug mode to get a more detailed error message?

./digits-devserver --debug

lukeyeager avatar Jul 27 '16 16:07 lukeyeager

Traceback (most recent call last):
  File "/home/jamin/anaconda/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/jamin/anaconda/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/jamin/git/DIGITS/digits/webapp.py", line 67, in decorated
    return f(*args, **kwargs)
  File "/home/jamin/git/DIGITS/digits/model/views.py", line 113, in visualize_network
    ret = fw.get_network_visualization(flask.request.form['custom_network'])
  File "/home/jamin/git/DIGITS/digits/frameworks/caffe_framework.py", line 131, in get_network_visualization
    return ''
  File "/home/jamin/git/caffe/python/caffe/draw.py", line 204, in draw_net
    return get_pydot_graph(caffe_net, rankdir).create(format=ext)
  File "/home/jamin/anaconda/lib/python2.7/site-packages/pydot.py", line 1879, in create
    stdout_data, stderr_data = p.communicate()
  File "/home/jamin/anaconda/lib/python2.7/subprocess.py", line 800, in communicate
    return self._communicate(input)
  File "/home/jamin/anaconda/lib/python2.7/subprocess.py", line 1417, in _communicate
    stdout, stderr = self._communicate_with_poll(input)
  File "/home/jamin/anaconda/lib/python2.7/subprocess.py", line 1447, in _communicate_with_poll
    poller = select.poll()
AttributeError: 'module' object has no attribute 'poll'

mingtop avatar Aug 02 '16 02:08 mingtop

Hello @mingtop do you have Pydot 1.0.28 as recommended in requirements.txt.

gheinrich avatar Aug 02 '16 10:08 gheinrich

Thank you very much!!

Sent from my iPhone

On Aug 2, 2016, at 18:02, Greg Heinrich [email protected] wrote:

Hello @mingtop do you have Pydot 1.0.28 as recommended in requirements.txt.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

mingtop avatar Aug 02 '16 13:08 mingtop

I'm just curious - did you have a newer version of pydot that caused the problem?

lukeyeager avatar Aug 02 '16 16:08 lukeyeager

@lukeyeager yes, change to the certain version by pip install pydot=1.0.*.

mingtop avatar Sep 12 '16 03:09 mingtop