Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Communications issue in sage after installing new package

I am running a Docker instance of Cocalc on a Ubuntu 16 server. Everything was working great until I was trying to debug why sage -pip install --user ffmpeg did not make the "OSError: Error: ffmpeg does not appear to be installed." message go away, even though it said it had been installed. Thinking it was a caching issue or something, I restarted everywhere that I could restart, however now I am not really able to use Sage at all because I keep getting the message below. The thing is, Jupyter and the terminal work fine so it is not a network issue. Is there a way I could get more detailed logs? Thanks.

ERROR: 'maximum time (=60000ms) exceeded - last error "restarted sage server 52955ms ago: not allowing too many restarts too quickly..."'

Communication with the Sage server is failing.

Here are some actions you could try to resolve this problem:
- check your internet connection,
- run this cell again,
- close and reopen this file,
- restart the project (in project settings, wrench icon),
- reload the browser tab or even restart your browser,
- delete some of the content in the project's ~/.local directory,
  (locally installed Python libraries might interfere with running this worksheet)

Communications issue in sage after installing new package

I am running a Docker instance of Cocalc on a Ubuntu 16 server. Everything was working great until I was trying to debug why sage -pip install --user ffmpeg did not make the "OSError: Error: ffmpeg does not appear to be installed." message go away, even though it said it had been installed. Thinking it was a caching issue or something, I restarted everywhere that I could restart, however now I am not really able to use Sage at all because I keep getting the message below. The thing is, Jupyter and the terminal work fine so it is not a network issue. Is there a way I could get more detailed logs? Thanks.

ERROR: 'maximum time (=60000ms) exceeded - last error "restarted sage server 52955ms ago: not allowing too many restarts too quickly..."'

Communication with the Sage server is failing.

Here are some actions you could try to resolve this problem:
- check your internet connection,
- run this cell again,
- close and reopen this file,
- restart the project (in project settings, wrench icon),
- reload the browser tab or even restart your browser,
- delete some of the content in the project's ~/.local directory,
  (locally installed Python libraries might interfere with running this worksheet)

Communications issue in sage after installing new package`sage -pip install --user ffmpeg` did not make the "`OSError: Error: ffmpeg does not appear to be installed.`" message go away

I am running a Docker instance of Cocalc on a Ubuntu 16 server. Everything was seems to be working great until but I was am trying to debug why sage -pip install --user ffmpeg did not make the "OSError: Error: ffmpeg does not appear to be installed." message go away, even though it said it had been installed. Thinking it was a caching issue or something, I restarted everywhere that I could restart, however now I am not really able to use Sage at all because I keep getting Here is the message below. The thing is, Jupyter and the terminal work fine so it is not a network issue. Is there a way I could get more detailed logs? Thanks.full message.

ERROR: 'maximum time (=60000ms) exceeded - last error "restarted sage server 52955ms ago: not allowing too many restarts too quickly..."'

Communication with the Sage server is failing.

Here are some actions you could Error in lines 9-9
Traceback (most recent call last):
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute
    flags=compile_flags) in namespace, locals
  File "", line 1, in <module>
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2944, in show
    s = show0(objs, combine_all=True)
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2903, in show0
    b = show0(a)
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2868, in show0
    show_animation(obj, **kwds)
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2642, in show_animation
    obj.ffmpeg(t, delay=delay, **kwds)
  File "/usr/local/sage/local/lib/python2.7/site-packages/sage/plot/animate.py", line 885, in ffmpeg
    raise OSError(msg)
OSError: Error: ffmpeg does not appear to be installed. Saving an animation to
a movie file in any format other than GIF requires this software, so
please install it and try to resolve this problem:
- check your internet connection,
- run this cell again,
- close and reopen this file,
- restart the project (in project settings, wrench icon),
- reload the browser tab or even restart your browser,
- delete some of the content in the project's ~/.local directory,
  (locally installed Python libraries might interfere with running this worksheet)
again.

`sage -pip install --user ffmpeg` did not make the "`OSError: Error: ffmpeg does not appear to be installed.`" message go away

I am running a Docker instance of Cocalc on a Ubuntu 16 server. Everything seems to be working but I am trying to debug why sage -pip install --user ffmpeg did not make the "OSError: Error: ffmpeg does not appear to be installed." message go away, even though it said it had been installed. Here is the full message.

Error in lines 9-9
Traceback (most recent call last):
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1188, in execute
    flags=compile_flags) in namespace, locals
  File "", line 1, in <module>
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2944, in show
    s = show0(objs, combine_all=True)
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2903, in show0
    b = show0(a)
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2868, in show0
    show_animation(obj, **kwds)
  File "/usr/local/sage/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2642, in show_animation
    obj.ffmpeg(t, delay=delay, **kwds)
  File "/usr/local/sage/local/lib/python2.7/site-packages/sage/plot/animate.py", line 885, in ffmpeg
    raise OSError(msg)
OSError: Error: ffmpeg does not appear to be installed. Saving an animation to
a movie file in any format other than GIF requires this software, so
please install it and try again.

For reference, here is the code that gives the error:

n = var("n")
frames = []
xr = (x, 0, 1)
for k in srange(1, 50):
    g = plot((sum((-1)^(n-1)*sin(n*x)/n,n,1,k)), xr, color="blue", legend_label='k = %d' % k)
    g += plot(x/2, xr, color="green", legend_label="x/2")
    frames.append(g)

a = animate(frames, ymin=0.0, ymax=1.0, legend_loc=(0.2,0.8))
a.show()