Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I fix this error?

Running sage in my terminal gives the following output

Rewriting paths for your new installation directory
===================================================

This might take a few minutes but only has to be done once.

patching /usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c
Traceback (most recent call last):
  File "/usr/lib/sagemath/relocate-once.py", line 85, in <module>
    p('src/build/cythonized/sage/structure/list_clone.c').substitute().save()
  File "/usr/lib/sagemath/relocate-once.py", line 70, in __call__
    return FilePatch(self, filename)
  File "/usr/lib/sagemath/relocate-once.py", line 21, in __init__
    self.st = os.stat(filename)
OSError: [Errno 2] No such file or directory: '/usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.10, Release Date: 2015-12-18                    │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage:

I'm curious how I can fix this error.

How can I fix this error?Rewriting paths gives OSError before launching Sage

Running sage in my terminal gives the following output

Rewriting paths for your new installation directory
===================================================

This might take a few minutes but only has to be done once.

patching /usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c
Traceback (most recent call last):
  File "/usr/lib/sagemath/relocate-once.py", line 85, in <module>
    p('src/build/cythonized/sage/structure/list_clone.c').substitute().save()
  File "/usr/lib/sagemath/relocate-once.py", line 70, in __call__
    return FilePatch(self, filename)
  File "/usr/lib/sagemath/relocate-once.py", line 21, in __init__
    self.st = os.stat(filename)
OSError: [Errno 2] No such file or directory: '/usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.10, Release Date: 2015-12-18                    │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage:

I'm curious how I can fix this error.

click to hide/show revision 3
retagged

Rewriting paths gives OSError before launching Sage

Running sage in my terminal gives the following output

Rewriting paths for your new installation directory
===================================================

This might take a few minutes but only has to be done once.

patching /usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c
Traceback (most recent call last):
  File "/usr/lib/sagemath/relocate-once.py", line 85, in <module>
    p('src/build/cythonized/sage/structure/list_clone.c').substitute().save()
  File "/usr/lib/sagemath/relocate-once.py", line 70, in __call__
    return FilePatch(self, filename)
  File "/usr/lib/sagemath/relocate-once.py", line 21, in __init__
    self.st = os.stat(filename)
OSError: [Errno 2] No such file or directory: '/usr/lib/sagemath/src/build/cythonized/sage/structure/list_clone.c'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.10, Release Date: 2015-12-18                    │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage:

I'm curious how I can fix this error.