[sage-devel] Re: threejs as standard package

2016-12-28 Thread Andrey Novoseltsev
On Wednesday, 28 December 2016 18:12:36 UTC-7, Paul Masson wrote:
>
>
>
> On Wednesday, December 28, 2016 at 3:47:53 PM UTC-8, Andrey Novoseltsev 
> wrote:
>>
>> On Tuesday, 27 December 2016 15:34:51 UTC-7, Paul Masson wrote:
>>>
>>> I'm very much in favor of making Three.js a standard package, with the 
>>> following caveats:
>>>
>>> 1) As of r80 the Three.js library has been reorganized to use ES6 
>>> Modules. There is little point in asking people to download the entire 
>>> library (even with examples excluded as in the current optional package) 
>>> unless we're going to make Node.js a standard package as well.
>>>
>>> 2) The template only needs two files to function: the main build file, 
>>> minified or not, and OrbitControls.js for allowing user interaction. As a 
>>> standard package I'm in favor of Three.js only including the parts of the 
>>> library that will actually be used. If another file is needed in the 
>>> future, it can be added then.
>>>
>>
>> If nobody objects and you can make a package taking care of these points 
>> I should be able to review it!
>>
>
> Should I rewrite the current optional package to download only the minimum 
> needed files, or leave it alone and create a new threejs_min package?
>

I am not sure what are uses of the current package beyond SageMathCell. If 
someone is aware of other cases, would be nice to know, otherwise I think 
it is fine to trim it as much as necessary to keep your new code 
operational. (For the record, the current size is 14M, so it would be nice 
if the standard package was a little smaller, although the long term plan 
is probably to make jmol optional and that will cut 37M.)

 
>
>>  
>>
>>>
>>> 3) As part of the review process of #12402, Andrey asked 
>>>  me explicitly about 
>>> the ease of embedding Three.js output in web pages. While I certainly want 
>>> to add a local copy of the required Three.js files for offline use, I'd 
>>> like to keep the output as portable as possible, and the simplest way to 
>>> achieve that is with a CDN link in the file. The template can be modified 
>>> to check for a local copy and fall back to the CDN or vice versa, but the 
>>> HTTPS issue would still need to be fixed on the server.
>>>   Alternately, a flag can be added to the viewer to specify that 
>>> generated output will be for online use and the template modified at 
>>> runtime to use the CDN rather than the local copy. That would of course 
>>> require an extra input from the end user, but may be preferable to the 
>>> majority.
>>>
>>
>> Well, if someone is going to embed plots into their webpage, presumably 
>> that someone is capable of following simple instructions like "add this 
>> script tag to the head". Note also that most of the time people will not 
>> save the output, so while it is important to support saving/embedding, 
>> proper showing is the first priority and at the moment SageNB does not work 
>> over HTTPS. Presumably there would be no problems if scripts were served 
>> from local installation.
>>
>
> I'm not understanding what the problem is with SageNB: the Three.js viewer 
> already works just fine in the legacy notebook. What issue is there with 
> downloading an external script securely?
>

It is not working: I have SageNB running over HTTPS and using threejs shows 
just blank area and messages in console about mixed content blocked. My 
understanding is that if you are loading a page over HTTPS it should not 
requests components over HTTP or browsers will complain or just show 
nothing. There is no problem in the opposite case, so perhaps you can just 
always use secure CDN.

 
>
>>
>> On Monday, December 26, 2016 at 7:16:55 PM UTC-8, Andrey Novoseltsev 
>> wrote:
>>>
>>> Hello,
>>>
>>> How about making threejs a standard package?
>>>
>>> It was optional for a while, used in SageMathCell to power its own 
>>> version of threejs viewer. https://trac.sagemath.org/ticket/12402 has 
>>> added threejs as possible output for a bunch of backends and ideally it 
>>> will become standard for all interfaces. One of the problems now - the 
>>> template loads scripts from the Internet, which means no offline use and 
>>> causes issues with HTTPS anyway.
>>>
>>> Thank you,
>>> Andrey
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: threejs as standard package

2016-12-28 Thread Paul Masson


On Wednesday, December 28, 2016 at 3:47:53 PM UTC-8, Andrey Novoseltsev 
wrote:
>
> On Tuesday, 27 December 2016 15:34:51 UTC-7, Paul Masson wrote:
>>
>> I'm very much in favor of making Three.js a standard package, with the 
>> following caveats:
>>
>> 1) As of r80 the Three.js library has been reorganized to use ES6 
>> Modules. There is little point in asking people to download the entire 
>> library (even with examples excluded as in the current optional package) 
>> unless we're going to make Node.js a standard package as well.
>>
>> 2) The template only needs two files to function: the main build file, 
>> minified or not, and OrbitControls.js for allowing user interaction. As a 
>> standard package I'm in favor of Three.js only including the parts of the 
>> library that will actually be used. If another file is needed in the 
>> future, it can be added then.
>>
>
> If nobody objects and you can make a package taking care of these points I 
> should be able to review it!
>

Should I rewrite the current optional package to download only the minimum 
needed files, or leave it alone and create a new threejs_min package?
 

>  
>
>>
>> 3) As part of the review process of #12402, Andrey asked 
>>  me explicitly about 
>> the ease of embedding Three.js output in web pages. While I certainly want 
>> to add a local copy of the required Three.js files for offline use, I'd 
>> like to keep the output as portable as possible, and the simplest way to 
>> achieve that is with a CDN link in the file. The template can be modified 
>> to check for a local copy and fall back to the CDN or vice versa, but the 
>> HTTPS issue would still need to be fixed on the server.
>>   Alternately, a flag can be added to the viewer to specify that 
>> generated output will be for online use and the template modified at 
>> runtime to use the CDN rather than the local copy. That would of course 
>> require an extra input from the end user, but may be preferable to the 
>> majority.
>>
>
> Well, if someone is going to embed plots into their webpage, presumably 
> that someone is capable of following simple instructions like "add this 
> script tag to the head". Note also that most of the time people will not 
> save the output, so while it is important to support saving/embedding, 
> proper showing is the first priority and at the moment SageNB does not work 
> over HTTPS. Presumably there would be no problems if scripts were served 
> from local installation.
>

I'm not understanding what the problem is with SageNB: the Three.js viewer 
already works just fine in the legacy notebook. What issue is there with 
downloading an external script securely?
 

>
> On Monday, December 26, 2016 at 7:16:55 PM UTC-8, Andrey Novoseltsev wrote:
>>
>> Hello,
>>
>> How about making threejs a standard package?
>>
>> It was optional for a while, used in SageMathCell to power its own 
>> version of threejs viewer. https://trac.sagemath.org/ticket/12402 has 
>> added threejs as possible output for a bunch of backends and ideally it 
>> will become standard for all interfaces. One of the problems now - the 
>> template loads scripts from the Internet, which means no offline use and 
>> causes issues with HTTPS anyway.
>>
>> Thank you,
>> Andrey
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: threejs as standard package

2016-12-28 Thread Andrey Novoseltsev
On Tuesday, 27 December 2016 15:34:51 UTC-7, Paul Masson wrote:
>
> I'm very much in favor of making Three.js a standard package, with the 
> following caveats:
>
> 1) As of r80 the Three.js library has been reorganized to use ES6 Modules. 
> There is little point in asking people to download the entire library (even 
> with examples excluded as in the current optional package) unless we're 
> going to make Node.js a standard package as well.
>
> 2) The template only needs two files to function: the main build file, 
> minified or not, and OrbitControls.js for allowing user interaction. As a 
> standard package I'm in favor of Three.js only including the parts of the 
> library that will actually be used. If another file is needed in the 
> future, it can be added then.
>

If nobody objects and you can make a package taking care of these points I 
should be able to review it!
 

>
> 3) As part of the review process of #12402, Andrey asked 
>  me explicitly about 
> the ease of embedding Three.js output in web pages. While I certainly want 
> to add a local copy of the required Three.js files for offline use, I'd 
> like to keep the output as portable as possible, and the simplest way to 
> achieve that is with a CDN link in the file. The template can be modified 
> to check for a local copy and fall back to the CDN or vice versa, but the 
> HTTPS issue would still need to be fixed on the server.
>   Alternately, a flag can be added to the viewer to specify that generated 
> output will be for online use and the template modified at runtime to use 
> the CDN rather than the local copy. That would of course require an extra 
> input from the end user, but may be preferable to the majority.
>

Well, if someone is going to embed plots into their webpage, presumably 
that someone is capable of following simple instructions like "add this 
script tag to the head". Note also that most of the time people will not 
save the output, so while it is important to support saving/embedding, 
proper showing is the first priority and at the moment SageNB does not work 
over HTTPS. Presumably there would be no problems if scripts were served 
from local installation.

On Monday, December 26, 2016 at 7:16:55 PM UTC-8, Andrey Novoseltsev wrote:
>
> Hello,
>
> How about making threejs a standard package?
>
> It was optional for a while, used in SageMathCell to power its own version 
> of threejs viewer. https://trac.sagemath.org/ticket/12402 has added 
> threejs as possible output for a bunch of backends and ideally it will 
> become standard for all interfaces. One of the problems now - the template 
> loads scripts from the Internet, which means no offline use and causes 
> issues with HTTPS anyway.
>
> Thank you,
> Andrey
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Error in compiling Sage in Ubunt 16.04u from source

2016-12-28 Thread David Roe
Either add a symlink from somewhere in your path (e.g. /usr/local/sage ->
/path/to/sage-install/sage) or add /path/to/sage-install to your $PATH.
David

On Wed, Dec 28, 2016 at 3:48 AM, Fjordforsk A/S 
wrote:

> Sage doesnt run except in the installation directory as ./sage . How can I
> add a link so that it starts from everywhere under the call "sage" ?
>
>
> tirsdag 27. desember 2016 11.54.18 UTC+1 skrev Dima Pasechnik følgende:
>
>>
>>
>> On Tuesday, December 27, 2016 at 10:34:44 AM UTC, Fjordforsk A/S wrote:
>>>
>>> Just tried to do a fresh installation again. I got a different result
>>> now.
>>>
>>> e/sem/SageMath/sage-7.4/local/var/tmp/sage/build/jmol-14.6.1
>>> _2016.07.11.p0
>>> [jmol-14.6.1_2016.07.11.p0] Finished installing
>>> jmol-14.6.1_2016.07.11.p0.spkg
>>> sage-logger -p 'sage-spkg thebe-9624e0a0' '/home/sem/SageMath/sage-7.4/l
>>> ogs/pkgs/thebe-9624e0a0.log'
>>> [thebe-9624e0a0] mkdir: cannot create directory '/home/sem/.sage':
>>> Permission denied
>>> [thebe-9624e0a0] /home/sem/SageMath/sage-7.4/src/bin/sage-env: line
>>> 465: /home/sem/.sage//R/Makevars.user: Permission denied
>>> [thebe-9624e0a0] Found local metadata for thebe-9624e0a0
>>> [thebe-9624e0a0] Using cached file /home/sem/SageMath/sage-7.4/up
>>> stream/thebe-9624e0a0.zip
>>> [thebe-9624e0a0] thebe-9624e0a0
>>> [thebe-9624e0a0] 
>>> [thebe-9624e0a0] Setting up build directory for thebe-9624e0a0
>>> [thebe-9624e0a0] Finished extraction
>>> [thebe-9624e0a0] 
>>> [thebe-9624e0a0] Host system:
>>> [thebe-9624e0a0] Linux Fjordforsk 4.4.0-57-generic #78-Ubuntu SMP Fri
>>> Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>>> [thebe-9624e0a0] 
>>> [thebe-9624e0a0] C compiler: gcc
>>> [thebe-9624e0a0] C compiler version:
>>> [thebe-9624e0a0] Using built-in specs.
>>> [thebe-9624e0a0] COLLECT_GCC=gcc
>>> [thebe-9624e0a0] COLLECT_LTO_WRAPPER=/home/sem/
>>> SageMath/sage-7.4/local/libexec/gcc/x86_64-unknown-linux-
>>> gnu/4.9.3/lto-wrapper
>>> [thebe-9624e0a0] Target: x86_64-unknown-linux-gnu
>>> [thebe-9624e0a0] Configured with: ../src/configure
>>> --prefix=/home/sem/SageMath/sage-7.4/local
>>> --with-local-prefix=/home/sem/SageMath/sage-7.4/local
>>> --with-gmp=/home/sem/SageMath/sage-7.4/local
>>> --with-mpfr=/home/sem/SageMath/sage-7.4/local
>>> --with-mpc=/home/sem/SageMath/sage-7.4/local --with-system-zlib
>>> --disable-multilib --disable-nls --enable-languages=c,c++,fortran
>>> --disable-libitm
>>> [thebe-9624e0a0] Thread model: posix
>>> [thebe-9624e0a0] gcc version 4.9.3 (GCC)
>>> [thebe-9624e0a0] 
>>> [thebe-9624e0a0]
>>> [thebe-9624e0a0] real0m0.010s
>>> [thebe-9624e0a0] user0m0.004s
>>> [thebe-9624e0a0] sys0m0.000s
>>> [thebe-9624e0a0] Successfully installed thebe-9624e0a0
>>> [thebe-9624e0a0] Deleting temporary build directory
>>> [thebe-9624e0a0] /home/sem/SageMath/sage-7.4/lo
>>> cal/var/tmp/sage/build/thebe-9624e0a0
>>> [thebe-9624e0a0] Finished installing thebe-9624e0a0.spkg
>>> cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links all html '
>>> logs/dochtml.log
>>> [dochtml] mkdir: cannot create directory ‘/home/sem/.sage’: Permission
>>> denied
>>> [dochtml] /home/sem/SageMath/sage-7.4/src/bin/sage-env: line 465:
>>> /home/sem/.sage//R/Makevars.user: Permission denied
>>> [dochtml] Traceback (most recent call last):
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py",
>>> line 151, in _run_module_as_main
>>> [dochtml] mod_name, loader, code, fname =
>>> _get_module_details(mod_name)
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py",
>>> line 109, in _get_module_details
>>> [dochtml] return _get_module_details(pkg_main_name)
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py",
>>> line 101, in _get_module_details
>>> [dochtml] loader = get_loader(mod_name)
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py",
>>> line 464, in get_loader
>>> [dochtml] return find_loader(fullname)
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py",
>>> line 474, in find_loader
>>> [dochtml] for importer in iter_importers(fullname):
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py",
>>> line 430, in iter_importers
>>> [dochtml] __import__(pkg)
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/l
>>> ocal/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line
>>> 22, in 
>>> [dochtml] import sage.all
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/l
>>> ocal/lib/python2.7/site-packages/sage/all.py", line 92, in 
>>> [dochtml] from sage.misc.all   import * # takes a while
>>> [dochtml]   File "/home/sem/SageMath/sage-7.4/l
>>> ocal/lib/python2.7/site-packages/sage/misc/all.py", line 5, in 
>>>

[sage-devel] Re: Error in compiling Sage in Ubunt 16.04u from source

2016-12-28 Thread Fjordforsk A/S
Sage doesnt run except in the installation directory as ./sage . How can I 
add a link so that it starts from everywhere under the call "sage" ?


tirsdag 27. desember 2016 11.54.18 UTC+1 skrev Dima Pasechnik følgende:
>
>
>
> On Tuesday, December 27, 2016 at 10:34:44 AM UTC, Fjordforsk A/S wrote:
>>
>> Just tried to do a fresh installation again. I got a different result now.
>>
>> e/sem/SageMath/sage-7.4/local/var/tmp/sage/build/jmol-14.6.1_2016.07.11.p0
>> [jmol-14.6.1_2016.07.11.p0] Finished installing 
>> jmol-14.6.1_2016.07.11.p0.spkg
>> sage-logger -p 'sage-spkg thebe-9624e0a0' 
>> '/home/sem/SageMath/sage-7.4/logs/pkgs/thebe-9624e0a0.log'
>> [thebe-9624e0a0] mkdir: cannot create directory '/home/sem/.sage': 
>> Permission denied
>> [thebe-9624e0a0] /home/sem/SageMath/sage-7.4/src/bin/sage-env: line 465: 
>> /home/sem/.sage//R/Makevars.user: Permission denied
>> [thebe-9624e0a0] Found local metadata for thebe-9624e0a0
>> [thebe-9624e0a0] Using cached file 
>> /home/sem/SageMath/sage-7.4/upstream/thebe-9624e0a0.zip
>> [thebe-9624e0a0] thebe-9624e0a0
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] Setting up build directory for thebe-9624e0a0
>> [thebe-9624e0a0] Finished extraction
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] Host system:
>> [thebe-9624e0a0] Linux Fjordforsk 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 
>> 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] C compiler: gcc
>> [thebe-9624e0a0] C compiler version:
>> [thebe-9624e0a0] Using built-in specs.
>> [thebe-9624e0a0] COLLECT_GCC=gcc
>> [thebe-9624e0a0] 
>> COLLECT_LTO_WRAPPER=/home/sem/SageMath/sage-7.4/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.3/lto-wrapper
>> [thebe-9624e0a0] Target: x86_64-unknown-linux-gnu
>> [thebe-9624e0a0] Configured with: ../src/configure 
>> --prefix=/home/sem/SageMath/sage-7.4/local 
>> --with-local-prefix=/home/sem/SageMath/sage-7.4/local 
>> --with-gmp=/home/sem/SageMath/sage-7.4/local 
>> --with-mpfr=/home/sem/SageMath/sage-7.4/local 
>> --with-mpc=/home/sem/SageMath/sage-7.4/local --with-system-zlib 
>> --disable-multilib --disable-nls --enable-languages=c,c++,fortran 
>> --disable-libitm  
>> [thebe-9624e0a0] Thread model: posix
>> [thebe-9624e0a0] gcc version 4.9.3 (GCC) 
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] real0m0.010s
>> [thebe-9624e0a0] user0m0.004s
>> [thebe-9624e0a0] sys0m0.000s
>> [thebe-9624e0a0] Successfully installed thebe-9624e0a0
>> [thebe-9624e0a0] Deleting temporary build directory
>> [thebe-9624e0a0] 
>> /home/sem/SageMath/sage-7.4/local/var/tmp/sage/build/thebe-9624e0a0
>> [thebe-9624e0a0] Finished installing thebe-9624e0a0.spkg
>> cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links all html ' 
>> logs/dochtml.log
>> [dochtml] mkdir: cannot create directory ‘/home/sem/.sage’: Permission 
>> denied
>> [dochtml] /home/sem/SageMath/sage-7.4/src/bin/sage-env: line 465: 
>> /home/sem/.sage//R/Makevars.user: Permission denied
>> [dochtml] Traceback (most recent call last):
>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py", 
>> line 151, in _run_module_as_main
>> [dochtml] mod_name, loader, code, fname = 
>> _get_module_details(mod_name)
>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py", 
>> line 109, in _get_module_details
>> [dochtml] return _get_module_details(pkg_main_name)
>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py", 
>> line 101, in _get_module_details
>> [dochtml] loader = get_loader(mod_name)
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py", line 464, in 
>> get_loader
>> [dochtml] return find_loader(fullname)
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py", line 474, in 
>> find_loader
>> [dochtml] for importer in iter_importers(fullname):
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py", line 430, in 
>> iter_importers
>> [dochtml] __import__(pkg)
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py",
>>  
>> line 22, in 
>> [dochtml] import sage.all
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage/all.py", 
>> line 92, in 
>> [dochtml] from sage.misc.all   import * # takes a while
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage/misc/all.py",
>>  
>> line 5, in 
>> [dochtml] from .misc import (alarm, cancel_alarm,
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage/misc/misc.py",
>>  
>> line 189, in 
>> [dochtml] sage_makedirs(SAGE_DB)
>> [dochtml]   File 
>> "/home/sem/SageMath

[sage-devel] Re: Error in compiling Sage in Ubunt 16.04u from source

2016-12-28 Thread Fjordforsk A/S
Thanks it worked! I had to run make without sudo as well.



tirsdag 27. desember 2016 11.54.18 UTC+1 skrev Dima Pasechnik følgende:
>
>
>
> On Tuesday, December 27, 2016 at 10:34:44 AM UTC, Fjordforsk A/S wrote:
>>
>> Just tried to do a fresh installation again. I got a different result now.
>>
>> e/sem/SageMath/sage-7.4/local/var/tmp/sage/build/jmol-14.6.1_2016.07.11.p0
>> [jmol-14.6.1_2016.07.11.p0] Finished installing 
>> jmol-14.6.1_2016.07.11.p0.spkg
>> sage-logger -p 'sage-spkg thebe-9624e0a0' 
>> '/home/sem/SageMath/sage-7.4/logs/pkgs/thebe-9624e0a0.log'
>> [thebe-9624e0a0] mkdir: cannot create directory '/home/sem/.sage': 
>> Permission denied
>> [thebe-9624e0a0] /home/sem/SageMath/sage-7.4/src/bin/sage-env: line 465: 
>> /home/sem/.sage//R/Makevars.user: Permission denied
>> [thebe-9624e0a0] Found local metadata for thebe-9624e0a0
>> [thebe-9624e0a0] Using cached file 
>> /home/sem/SageMath/sage-7.4/upstream/thebe-9624e0a0.zip
>> [thebe-9624e0a0] thebe-9624e0a0
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] Setting up build directory for thebe-9624e0a0
>> [thebe-9624e0a0] Finished extraction
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] Host system:
>> [thebe-9624e0a0] Linux Fjordforsk 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 
>> 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] C compiler: gcc
>> [thebe-9624e0a0] C compiler version:
>> [thebe-9624e0a0] Using built-in specs.
>> [thebe-9624e0a0] COLLECT_GCC=gcc
>> [thebe-9624e0a0] 
>> COLLECT_LTO_WRAPPER=/home/sem/SageMath/sage-7.4/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.3/lto-wrapper
>> [thebe-9624e0a0] Target: x86_64-unknown-linux-gnu
>> [thebe-9624e0a0] Configured with: ../src/configure 
>> --prefix=/home/sem/SageMath/sage-7.4/local 
>> --with-local-prefix=/home/sem/SageMath/sage-7.4/local 
>> --with-gmp=/home/sem/SageMath/sage-7.4/local 
>> --with-mpfr=/home/sem/SageMath/sage-7.4/local 
>> --with-mpc=/home/sem/SageMath/sage-7.4/local --with-system-zlib 
>> --disable-multilib --disable-nls --enable-languages=c,c++,fortran 
>> --disable-libitm  
>> [thebe-9624e0a0] Thread model: posix
>> [thebe-9624e0a0] gcc version 4.9.3 (GCC) 
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] 
>> [thebe-9624e0a0] real0m0.010s
>> [thebe-9624e0a0] user0m0.004s
>> [thebe-9624e0a0] sys0m0.000s
>> [thebe-9624e0a0] Successfully installed thebe-9624e0a0
>> [thebe-9624e0a0] Deleting temporary build directory
>> [thebe-9624e0a0] 
>> /home/sem/SageMath/sage-7.4/local/var/tmp/sage/build/thebe-9624e0a0
>> [thebe-9624e0a0] Finished installing thebe-9624e0a0.spkg
>> cd ../.. && sage-logger -p './sage --docbuild --no-pdf-links all html ' 
>> logs/dochtml.log
>> [dochtml] mkdir: cannot create directory ‘/home/sem/.sage’: Permission 
>> denied
>> [dochtml] /home/sem/SageMath/sage-7.4/src/bin/sage-env: line 465: 
>> /home/sem/.sage//R/Makevars.user: Permission denied
>> [dochtml] Traceback (most recent call last):
>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py", 
>> line 151, in _run_module_as_main
>> [dochtml] mod_name, loader, code, fname = 
>> _get_module_details(mod_name)
>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py", 
>> line 109, in _get_module_details
>> [dochtml] return _get_module_details(pkg_main_name)
>> [dochtml]   File "/home/sem/SageMath/sage-7.4/local/lib/python/runpy.py", 
>> line 101, in _get_module_details
>> [dochtml] loader = get_loader(mod_name)
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py", line 464, in 
>> get_loader
>> [dochtml] return find_loader(fullname)
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py", line 474, in 
>> find_loader
>> [dochtml] for importer in iter_importers(fullname):
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python/pkgutil.py", line 430, in 
>> iter_importers
>> [dochtml] __import__(pkg)
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py",
>>  
>> line 22, in 
>> [dochtml] import sage.all
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage/all.py", 
>> line 92, in 
>> [dochtml] from sage.misc.all   import * # takes a while
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage/misc/all.py",
>>  
>> line 5, in 
>> [dochtml] from .misc import (alarm, cancel_alarm,
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage/misc/misc.py",
>>  
>> line 189, in 
>> [dochtml] sage_makedirs(SAGE_DB)
>> [dochtml]   File 
>> "/home/sem/SageMath/sage-7.4/local/lib/python2.7/site-packages/sage/misc/misc.py",
>>  
>> line 113, in s