Ask Your Question

Revision history [back]

Problem with %attach on version 8.3.

The version of SageMath I use was recently updated to 8.3.

I use %attach.

When I update my source code I got the following error (I got no problem with my previous version).

How to solve this problem?

sage:       1 [main] python2.7 1512 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5https://mathoverflow.net/users/34538/sebastien-palcouxQV19T\14432\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 19:15:58 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-4-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
       59             return func(*args, **kwargs)

     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use was recently updated to 8.3.

I use %attach.

When I update my source code I got get the following error (I got no problem with my previous version).

How to solve this problem?

sage:       1 [main] python2.7 1512 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5https://mathoverflow.net/users/34538/sebastien-palcouxQV19T\14432\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 19:15:58 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-4-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
       59             return func(*args, **kwargs)

     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use was recently updated to 8.3.

I use %attach.

When I update save my updated source code I get the following error (I got no problem with my previous version).

How to solve this problem?

sage:       1 [main] python2.7 1512 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5https://mathoverflow.net/users/34538/sebastien-palcouxQV19T\14432\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 19:15:58 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-4-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
       59             return func(*args, **kwargs)

     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version). version of SageMath).

How to solve this problem?

sage:       1 [main] python2.7 1512 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5https://mathoverflow.net/users/34538/sebastien-palcouxQV19T\14432\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 19:15:58 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-4-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
       59             return func(*args, **kwargs)

     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage:       1 %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 1512 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5https://mathoverflow.net/users/34538/sebastien-palcouxQV19T\14432\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 19:15:58 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-4-5e6cb74ebb82> <ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
      59             return func(*args, **kwargs)
      60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
     59             return func(*args, **kwargs)
     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use (on Windows 10) was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
     59             return func(*args, **kwargs)
     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use (on Windows 10) was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
     59             return func(*args, **kwargs)
     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.

The version of SageMath I use (on Windows 10) was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
     59             return func(*args, **kwargs)
     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3.8.3. with Windows 10

EDIT (30/01/2020): The problem is not yet fixed (today on version 8.9)

The version of SageMath I use (on Windows 10) was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
     59             return func(*args, **kwargs)
     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach on version 8.3. with Windows 10

EDIT (30/01/2020): The problem is not yet fixed (today on version 8.9)

The version of SageMath I use (on Windows 10) was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
     59             return func(*args, **kwargs)
     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach for SageMath on version 8.3. with Windows 10

EDIT (30/01/2020): (01/02/2020): The problem is not yet fixed still unfixed (today on version 8.9)9.0)

The version of SageMath I use (on Windows 10) was recently updated to 8.3.

I use %attach.

When I save my updated source code I get the following error (I got no such problem with my previous version of SageMath).

How to solve this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, Release Date: 2018-08-03                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
Compiling ./SAGE/3by3.spyx...
sage:       0 [main] python2.7 16028 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, Win32 error 126
### reloading attached file 3by3.spyx modified at 22:01:59 ###
Compiling /home/sage/SAGE/3by3.spyx...
---------------------------------------------------------------------------
EnvironmentError                          Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    265         if attach:
    266             add_attached_file(fpath)
--> 267         exec(load_cython(fpath), globals)
    268     elif ext == '.f' or ext == '.f90':
    269         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612             try:
    613                 ext, = cythonize([ext],
--> 614                         aliases=cython_aliases(),
    615                         include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc in cython_aliases()
    308     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309         var = lib.upper().replace("-", "") + "_"
--> 310         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311         pc = pkgconfig.parse(lib)
    312         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in cflags(package)
    103     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104     """
--> 105     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc in _wrapper(*args, **kwargs)
     59             return func(*args, **kwargs)
     60         except OSError:
---> 61             raise EnvironmentError("pkg-config is not installed")
     62
     63     return _wrapper

EnvironmentError: pkg-config is not installed

Problem with %attach for SageMath on Windows 10

EDIT (01/02/2020): The problem is still unfixed (today (01/02/2020) on version 9.0)9.0.

The version of SageMath I use (on Windows 10) was recently updated Consider a source code reduced to 8.3. the following line:

I use %attach.

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save my updated the source code I get again, there is the following error (I got no such problem with my previous (which appears from version of SageMath).

8.3 at most). How to solve fix this problem?problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.3, 9.0, Release Date: 2018-08-03 2020-01-01                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Using Python 3.7.3. Type "help()" for help.                         │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/3by3.spyx
SAGE/AttachTest.spyx
Compiling ./SAGE/3by3.spyx...
./SAGE/AttachTest.spyx...
sage:       0 [main] python2.7 16028 python3.7 1214 child_info_fork::abort: unable to map C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\16688\spyx\_home_sage_SAGE_3by3_spyx\_home_sage_SAGE_3by3_spyx_0.dll, \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file 3by3.spyx AttachTest.spyx modified at 22:01:59 05:48:32 ###
Compiling /home/sage/SAGE/3by3.spyx...
/home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
EnvironmentError BlockingIOError                           Traceback (most recent call last)
<ipython-input-2-5e6cb74ebb82> /opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFLzNieTMuc3B5eA=="),globals(),True)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    265 274         if attach:
    266 275             add_attached_file(fpath)
--> 267 276         exec(load_cython(fpath), globals)
    268 277     elif ext == '.f' or ext == '.f90':
    269 278         from sage.misc.inline_fortran import fortran

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/repl/load.pyc /opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/cython.pyc /opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    612 324             try:
    613 325                 ext, = cythonize([ext],
--> 614 326                                  aliases=cython_aliases(),
    615 327                                  include_path=includes,
    616                         quiet=(verbose <= 0),

/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.pyc 328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    308 392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    309 393         var = lib.upper().replace("-", "") + "_"
--> 310 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    311 395         pc = pkgconfig.parse(lib)
    312 396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc /opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    103 106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    104 107     """
--> 105 108     return _query(package, '--cflags')
    106
    107

/opt/sagemath-8.3/local/lib/python2.7/site-packages/pkgconfig/pkgconfig.pyc 109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59 60             return func(*args, **kwargs)
     60 61         except OSError:
OSError as e:
---> 61 62             raise EnvironmentError("pkg-config is probably not installed")
     62
installed. Could not run pkg-config: %r"%e)
     63     return _wrapper

EnvironmentError:      64

OSError: pkg-config is probably not installed
installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath on Windows 10

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save the source code again, there is the following problem (which appears from version 8.3 at most). How to fix this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath 9.0 on Windows 10

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save again the source code again, code, there is the following problem (which appears from version 8.3 at most). How to fix this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath 9.0 on Windows 10

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save again the source code, there is the following problem (which appears from version 8.3 at most). or less). How to fix this problem?

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath 9.0 on Windows 10

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save again the source code, there is the following problem (which appears from version 8.3 or less). How to fix this problem?

Note that this problem is specific to .spyx files, as everything works well for .sage file

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath 9.0 on Windows 10

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save again the source code, there is the following problem (which appears from version 8.3 or less). How to fix this problem?

Note that this problem is specific to .spyx files, as everything works well for .sage filefiles.

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath 9.0 on Windows 10

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save again the source code, there is the following problem (which appears from version 8.3 or less). How to fix this problem?

Note that this problem is specific to .spyx files, as everything works well for .sage files.

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath 9.0 on Windows 1010 with .spyx files

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save again the source code, there is the following problem (which appears from version 8.3 or less). How to fix this problem?

Note that this problem is specific to .spyx files, as everything works well for .sage files.

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:

Problem with %attach for SageMath 9.0 on Windows 10 with .spyx files

EDIT (01/02/2020) on version 9.0.

Consider a source code reduced to the following line:

# %attach SAGE/AttachTest.spyx

When I attach it the first time, it is OK, but if I save again the source code, there is the following problem (which appears from version 8.3 or less). How to fix this problem?

Note that this problem is specific to .spyx files, as everything works well for .sage files.

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage:       0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\Sébastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError                           Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     59         try:
---> 60             return func(*args, **kwargs)
     61         except OSError as e:

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
     69     cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70     proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
     71     out, err = proc.communicate()

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    774                                 errread, errwrite,
--> 775                                 restore_signals, start_new_session)
    776         except:

/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1452                             errpipe_read, errpipe_write,
-> 1453                             restore_signals, start_new_session, preexec_fn)
   1454                     self._child_created = True

BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
    274         if attach:
    275             add_attached_file(fpath)
--> 276         exec(load_cython(fpath), globals)
    277     elif ext == '.f' or ext == '.f90':
    278         from sage.misc.inline_fortran import fortran

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
     65     """
     66     from sage.misc.cython import cython
---> 67     mod, dir = cython(name, compile_message=True, use_cache=True)
     68     import sys
     69     sys.path.append(dir)

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
    324             try:
    325                 ext, = cythonize([ext],
--> 326                                  aliases=cython_aliases(),
    327                                  include_path=includes,
    328                                  compiler_directives=directives,

/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
    392     for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
    393         var = lib.upper().replace("-", "") + "_"
--> 394         aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
    395         pc = pkgconfig.parse(lib)
    396         # INCDIR should be redundant because the -I options are also

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
    106     If ``pkg-config`` not on path, raises ``EnvironmentError``.
    107     """
--> 108     return _query(package, '--cflags')
    109
    110

/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
     60             return func(*args, **kwargs)
     61         except OSError as e:
---> 62             raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
     63     return _wrapper
     64

OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage: