[sage-devel] 5 GSoC projects this (2018) summer

2018-04-24 Thread Dima Pasechnik
Just to mention that this year we have 5 GSoC projects funded.
https://summerofcode.withgoogle.com/organizations/6294052148871168/#projects

Thanks to everyone who helped with this, and congratulations to the
students who got selected!

Best,
Dima

-- 
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: cython 0.28.1 and sagemath

2018-04-24 Thread 'Martin R' via sage-devel
Thank you!  This gets me past the first problem.  Unfortunately, I now get 
further compilation errors, like

Building module sage.graphs.base.sparse_graph failed: ["CompileError: 
command 'gcc' failed with exit status 1\n"]

and

./.pyxbld_local/temp.linux-x86_64-2.7/pyrex/sage/modules/vector_real_double_dense.c:567:10:
 
fatal error: cython_metaclass.h: No such file or directory
 #include "cython_metaclass.h"
  ^~~~
compilation terminated.

but it will take some time to create a minimal non-working example :-(

Thanks again,

Martin

Am Dienstag, 24. April 2018 07:13:24 UTC+2 schrieb Nils Bruin:
>
> On Monday, April 23, 2018 at 8:41:30 PM UTC-7, Martin R wrote:
>>
>> Hi there,
>>
>> Since 8.2.rc0 (the update to cython 0.28.1) I'm having trouble using 
>> pyximport.  Here is a minimal non working example:
>>
>>  minimal.py 
>> import pyximport; pyximport.install();
>> from minimal_pyx import minimal_fun
>>  end minimal.py 
>>
>>  minimal_pyx.pyx 
>> from sage.misc.cachefuncimport cached_method
>>
>> def minimal_fun():
>> print("hi")
>>  end minimal_pyx.pyx 
>>
>> Running this with "sage minimal.py" fails as reproduced below.
>>
>> It seems that I should somehow set the compile_time_env variable 
>> 'PY_VERSION_HEX', and set it to sys.hexversion.  I don't know how to do 
>> that (especially not when using pyximport), and I'm puzzled because I would 
>> have thought that dict_del_by_value.pyx is already compiled...
>>
>> Thanks for any hints or workarounds!
>>
>> Martin
>>
>
> The problem seems to be that pyximport gets its hooks a little too deeply 
> into the import system (see the documentation: they warn that pyximport 
> only works in simple cases).
>
> In this case, it seems that "import sage.misc.cachefunc" tries to do a 
> little too much when the pyximport hook is active. A workaround is to make 
> sure it's imported before the hook is activated, i.e.,
>
> import sage.misc.cachefunc
> import pyximport; pyximport.install();
> from minimal_pyx import minimal_fun
>
> seems to do the trick.
>
> To cover all cases, perhaps try "import sage.all" before activating the 
> hook. That should get you into a state that's comparable to what you have 
> at the sage prompt. Quoting from the cython manual:
>
> This allows you to automatically run Cython on every .pyx that Python is 
>> trying to import. You should use this for simple Cython builds only where 
>> no extra C libraries and no special building setup is needed.
>>
>
> ostensibly, sage doesn't qualify; so I think it's not a bug that you need 
> a workaround.
>

-- 
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: cython 0.28.1 and sagemath

2018-04-24 Thread 'Martin R' via sage-devel
Here goes the new minimal non working example.

(I would use setup.py, if I knew how and if I knew that it would cure this 
problem)

Thanks for any help!

Martin


 minimal.py 
import sage.all
import pyximport; pyximport.install();
from minimal_pyx import minimal_fun

print(minimal_fun())
 end minimal.py 

 minimal_pyx.pyx 
from sage.all import *

def minimal_fun():
A = AlternatingSignMatrix([ [0,1,0], [1,-1,1],[0,1,0]])
return str(map(list, A.to_matrix()))

 end minimal_pyx.pyx 

martin@convex63:~/tmp$ sage minimal.py
/home/martin/.pyxbld/temp.linux-x86_64-2.7/pyrex/sage/modules/vector_real_double_dense.c:567:10:
 
fatal error: cython_metaclass.h: No such file or directory
 #include "cython_metaclass.h"
  ^~~~
compilation terminated.
Traceback (most recent call last):
  File "minimal.py", line 7, in 
print(minimal_fun())
  File "minimal_pyx.pyx", line 6, in minimal_pyx.minimal_fun
return str(map(list, A.to_matrix()))
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/matrix/matrix_misc.py",
 
line 30, in row_iterator
yield A.row(i)
  File "sage/matrix/matrix1.pyx", line 1180, in 
sage.matrix.matrix1.Matrix.row 
(build/cythonized/sage/matrix/matrix1.c:12016)
  File "sage/structure/factory.pyx", line 368, in 
sage.structure.factory.UniqueFactory.__call__ 
(build/cythonized/sage/structure/factory.c:2014)
  File "sage/structure/factory.pyx", line 411, in 
sage.structure.factory.UniqueFactory.get_object 
(build/cythonized/sage/structure/factory.c:2390)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py",
 
line 379, in create_object
return FreeModule_ambient_pid(base_ring, rank, sparse=sparse)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py",
 
line 5416, in __init__
rank=rank, sparse=sparse, coordinate_ring=coordinate_ring)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py",
 
line 5225, in __init__
rank, sparse, coordinate_ring)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py",
 
line 4593, in __init__
degree=rank, sparse=sparse, coordinate_ring=coordinate_ring)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py",
 
line 738, in __init__
self.Element = element_class(coordinate_ring, sparse)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py",
 
line 7243, in element_class
import sage.modules.vector_real_double_dense
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py",
 
line 458, in load_module
language_level=self.language_level)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py",
 
line 233, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py",
 
line 215, in load_module
inplace=build_inplace, language_level=language_level)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py",
 
line 191, in build_module
reload_support=pyxargs.reload_support)
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyxbuild.py",
 
line 102, in pyx_to_dll
dist.run_commands()
  File "/home/martin/sage-develop/local/lib/python2.7/distutils/dist.py", 
line 953, in run_commands
self.run_command(cmd)
  File "/home/martin/sage-develop/local/lib/python2.7/distutils/dist.py", 
line 972, in run_command
cmd_obj.run()
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py",
 
line 186, in run
_build_ext.build_ext.run(self)
  File 
"/home/martin/sage-develop/local/lib/python2.7/distutils/command/build_ext.py", 
line 340, in run
self.build_extensions()
  File 
"/home/martin/sage-develop/local/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py",
 
line 194, in build_extensions
self.build_extension(ext)
  File 
"/home/martin/sage-develop/local/lib/python2.7/distutils/command/build_ext.py", 
line 499, in build_extension
depends=ext.depends)
  File 
"/home/martin/sage-develop/local/lib/python2.7/distutils/ccompiler.py", 
line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File 
"/home/martin/sage-develop/local/lib/python2.7/distutils/unixccompiler.py", 
line 126, in _compile
raise CompileError, msg
ImportError: Building module sage.modules.vector_real_double_dense failed: 
["CompileError: command 'gcc' failed with exit status 1\n"]

-- 
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

[sage-devel] Product of two expressions that causes hang

2018-04-24 Thread Erik Bray
Hi all,

In working on an unrelated topic I encountered an indefinite hang,
which I narrowed down to the following exact operation (I haven't
found a way to simplify it further):

sage: e1 = sqrt(2)*I - sqrt(2) - 2
sage: e2 = sqrt(2)

simple enough, right?

But then it appears to hang forever in pynac when I do:

sage: e1 * e2

When I hit Ctrl-C, cysignals just returns to the sig_on() in the
beginning of Expression._mul_.

Any ideas?

-- 
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: Product of two expressions that causes hang

2018-04-24 Thread Frédéric Chapoton
Amusing.. Also hangs on

sage: (1/e1)/e2
1/2*sqrt(2)/((I - 1)*sqrt(2) - 2)
sage: 1/_


Le mardi 24 avril 2018 14:10:04 UTC+2, Erik Bray a écrit :
>
> Hi all, 
>
> In working on an unrelated topic I encountered an indefinite hang, 
> which I narrowed down to the following exact operation (I haven't 
> found a way to simplify it further): 
>
> sage: e1 = sqrt(2)*I - sqrt(2) - 2 
> sage: e2 = sqrt(2) 
>
> simple enough, right? 
>
> But then it appears to hang forever in pynac when I do: 
>
> sage: e1 * e2 
>
> When I hit Ctrl-C, cysignals just returns to the sig_on() in the 
> beginning of Expression._mul_. 
>
> Any ideas? 
>

-- 
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: Moving sagenb worksheets

2018-04-24 Thread kcrisman


On Monday, April 23, 2018 at 3:11:11 AM UTC-4, Jori Mäntysalo wrote:
>
> Sometimes SageNB gives internal error 500 but works, like when publishing 
> a worksheet. 
>
> However, the Download All Active -link does not work. Is there any 
> workaround to make it work? And yes, I know that there is no active 
> development, but this would make it possible to move data from a server to 
> another. 
>
>
I think if you click on the buttons on the left and then "Download" it 
should work, at least for small numbers of worksheets (I don't know what 
N=small, though).  Apparently clicking ALL of them or even more than a 
certain number may lead to the same server error you mention.  I haven't 
seen that before but it must have been there for quite some time; I'm sorry 
we didn't see it before active development halted, as that's definitely a 
bug worth fixing. 

-- 
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: Moving sagenb worksheets

2018-04-24 Thread Jori Mäntysalo

On Tue, 24 Apr 2018, kcrisman wrote:


  However, the Download All Active -link does not work. Is there any
  workaround to make it work? And yes, I know that there is no active
  development, but this would make it possible to move data from a server to
  another.

I think if you click on the buttons on the left and then "Download" it 
should work, at least for small numbers of worksheets (I don't know what 
N=small, though).


Thanks, this helps a little. It seems that N=2 is too much if the 
worksheets are large, but at least N=5 worked with small ones. So I guess 
the problem is somehow some memory exhausting(?).


--
Jori Mäntysalo

[sage-devel] Re: Product of two expressions that causes hang

2018-04-24 Thread Jean-Pierre Flori
Kind of strange, running sage -gdb I never end up in Expression._mul_ but 
at random places in Python code.

On Tuesday, April 24, 2018 at 2:40:50 PM UTC+2, Frédéric Chapoton wrote:
>
> Amusing.. Also hangs on
>
> sage: (1/e1)/e2
> 1/2*sqrt(2)/((I - 1)*sqrt(2) - 2)
> sage: 1/_
>
>
> Le mardi 24 avril 2018 14:10:04 UTC+2, Erik Bray a écrit :
>>
>> Hi all, 
>>
>> In working on an unrelated topic I encountered an indefinite hang, 
>> which I narrowed down to the following exact operation (I haven't 
>> found a way to simplify it further): 
>>
>> sage: e1 = sqrt(2)*I - sqrt(2) - 2 
>> sage: e2 = sqrt(2) 
>>
>> simple enough, right? 
>>
>> But then it appears to hang forever in pynac when I do: 
>>
>> sage: e1 * e2 
>>
>> When I hit Ctrl-C, cysignals just returns to the sig_on() in the 
>> beginning of Expression._mul_. 
>>
>> Any ideas? 
>>
>

-- 
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: Product of two expressions that causes hang

2018-04-24 Thread Jean-Pierre Flori
Ok I finally ended up in pynac code.
It seems there is a bad recursion happening, with the following reversed 
backtrace:
(Sage.)Expression._mul_
Ginac::*
Ginac::exmul
Ginac::ex::ex
Ginac::ex::construct_from_basic
Ginac::mul::eval
Ginac::ex::ex
Ginac::ex::construct_from_basic
Ginac::mul::eval
...
Ginac::ex::ex
Ginac::ex::construct_from_basic
Ginac::mul::eval
Ginac::ex::integer_content
which calls sage code
which calls pynac code
...

The latter sage/pynac back and forth movement involves the numeric class in 
pynac which uses sage...

-- 
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: Product of two expressions that causes hang

2018-04-24 Thread Erik Bray
On Tue, Apr 24, 2018 at 4:52 PM, Jean-Pierre Flori  wrote:
> Ok I finally ended up in pynac code.
> It seems there is a bad recursion happening, with the following reversed
> backtrace:
> (Sage.)Expression._mul_
> Ginac::*
> Ginac::exmul
> Ginac::ex::ex
> Ginac::ex::construct_from_basic
> Ginac::mul::eval
> Ginac::ex::ex
> Ginac::ex::construct_from_basic
> Ginac::mul::eval
> ...
> Ginac::ex::ex
> Ginac::ex::construct_from_basic
> Ginac::mul::eval
> Ginac::ex::integer_content
> which calls sage code
> which calls pynac code
> ...
>
> The latter sage/pynac back and forth movement involves the numeric class in
> pynac which uses sage...

I think this is due to the following.  In mul::eval there's some code
that attempts to do simplifications like:

(-x + a)*(3*x - 3*a) => -3*(x - a)^2

That code begins here:
https://github.com/pynac/pynac/blob/master/ginac/mul.cpp#L700

In fact, when I try exactly that example in Sage it works as documented.

However, with (sqrt(2)*I - sqrt(2) - 2) * sqrt(2), first of all it
gets simplified to:

sqrt(2) * ((I - 1)*sqrt(2) - 2)

Then for some reason it decides there's an overall coeffecient of -2!,
and rewrites the expression as:

-2*sqrt(2)*(-(1/2*I - 1/2)*sqrt(2) + 1)

when it passes that back through ex::construct_from_basic, it goes
back into mul::eval again (because technically it's a new
expression?), and then in there it gets resimplified back to the
original expression, sqrt(2) * ((I - 1)*sqrt(2) - 2), but then tries
again to pull out an overall coefficient of -2, and so on...

What the heck?

-- 
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: Product of two expressions that causes hang

2018-04-24 Thread Jean-Pierre Flori
It might be an issue with the "printing" order which is used to sort stuff 
in pynac internally (but not in orignal ginac) and we already had issues 
with in the past.

-- 
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: cython 0.28.1 and sagemath

2018-04-24 Thread Nils Bruin
On Tuesday, April 24, 2018 at 2:20:39 AM UTC-7, Martin R wrote:
>
> Here goes the new minimal non working example.
>
> (I would use setup.py, if I knew how and if I knew that it would cure this 
> problem)
>
> Thanks for any help!
>
> Martin
>
>
>  minimal.py 
> import sage.all
> import pyximport; pyximport.install();
> from minimal_pyx import minimal_fun
>
> print(minimal_fun())
>  end minimal.py 
>
>  minimal_pyx.pyx 
> from sage.all import *
>
> def minimal_fun():
> A = AlternatingSignMatrix([ [0,1,0], [1,-1,1],[0,1,0]])
> return str(map(list, A.to_matrix()))
> 
>  end minimal_pyx.pyx 
> ImportError: Building module sage.modules.vector_real_double_dense failed: 
> ["CompileError: command 'gcc' failed with exit status 1\n"]
>
>
The joys of run time imports. I don't think this is the game of 
whack-a-mole you want to play. Obviously, sage imports are generally *NOT* 
suitable to be executed with the pyximport hook active. So, you have to 
make sure all the imports you need are done *before* you install the hook. 
"sage.all" takes care of a lot, but there are plenty of imports in sage 
that are done only when they are needed (to save start-up time in general). 
I wonder how bad things crash when you start using symbolics.

In this case, you can just work your way down the failures. It looks to me 
like

###
import sage.all
import sage.modules.vector_real_double_dense
import sage.modules.vector_complex_double_dense
import pyximport; pyximport.install();
from minimal_pyx import minimal_fun
print(minimal_fun())
###

works, but I don't see a way of predicting beforehand what imports you need.

It may still be that a mild redesign of the sage build process might make 
it suitable for pyximport, or alternatively that with some extra 
customization pyximport can be made to work in a sage environment. However, 
it looks to me it's trying to compile *way* too much.

-- 
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] Error building package python3-3.6.1.p1 Sage 8.1 on Mac

2018-04-24 Thread Christelle Vincent
Hi,
I am trying to build Sage 8.1 from source on Mac (High Sierra 10.13.4, just 
updated Xcode and re-installed Command Line Tools).
I get the error "Error building package python3-3.6.1.p1"
I am attaching the whole log but it ends with
Undefined symbols for architecture x86_64:
  "_libintl_bindtextdomain", referenced from:
  _PyIntl_bindtextdomain in _localemodule.o
  "_libintl_dcgettext", referenced from:
  _PyIntl_dcgettext in _localemodule.o
  "_libintl_dgettext", referenced from:
  _PyIntl_dgettext in _localemodule.o
  "_libintl_gettext", referenced from:
  _PyIntl_gettext in _localemodule.o
  "_libintl_textdomain", referenced from:
  _PyIntl_textdomain in _localemodule.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
make[3]: *** [Programs/_freeze_importlib] Error 1
Error building Python.

Anyone can help me fix this? Thanks!
Christelle

-- 
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.
Found local metadata for python3-3.6.1.p1
Using cached file 
/Users/vincent/Applications/sage-8.1/upstream/Python-3.6.1.tar.gz
python3-3.6.1.p1

Setting up build directory for python3-3.6.1.p1
Finished extraction
Applying patches from ../patches...
Applying ../patches/2.6.5-FD_SETSIZE.patch
patching file Modules/selectmodule.c
Applying ../patches/2.6.5-ncurses-abi6.patch
patching file Include/py_curses.h
Applying ../patches/2.7.3-dylib.patch
patching file Lib/distutils/unixccompiler.py
Applying ../patches/3.2.6-getpath-exe-extension.patch
patching file Modules/getpath.c
Applying ../patches/3.2.6-no-enable-new-dtags.patch
patching file Lib/distutils/unixccompiler.py
Applying ../patches/3.2.6-no-native-tls.patch
patching file Python/thread_pthread.h
patching file configure.ac
patching file configure
patching file pyconfig.h.in
Applying ../patches/3.4.5-issue13756.patch
patching file Lib/distutils/command/build_ext.py
patching file Makefile.pre.in
patching file Modules/makesetup
Applying ../patches/3.4.5-struct.patch
patching file Modules/_struct.c
Hunk #1 succeeded at 1650 with fuzz 1 (offset 23 lines).
Applying ../patches/3.5.2-struct_siginfo_si_band.patch
patching file Modules/signalmodule.c
patching file configure
patching file configure.ac
patching file pyconfig.h.in
Applying ../patches/cygwin-ctypes.patch
patching file Lib/ctypes/__init__.py
Applying ../patches/cygwin-readline.patch
patching file setup.py
Hunk #2 succeeded at 1371 (offset -1 lines).
Applying ../patches/cygwin64.patch
patching file Modules/_ctypes/libffi/src/x86/ffi.c
patching file Modules/_ctypes/libffi/src/x86/win64.S
patching file Modules/_ctypes/libffi/fficonfig.py.in
Applying ../patches/linux_linking_issue_25229.patch
patching file Lib/distutils/unixccompiler.py
Hunk #1 succeeded at 237 (offset 1 line).
Applying ../patches/no_strict_proto-issue_5755.patch
patching file configure.ac
patching file configure
Applying ../patches/permissions.patch
patching file Makefile.pre.in
Applying ../patches/sdist.patch
patching file Lib/distutils/command/sdist.py

Host system:
Darwin Brian-the-Computer-1014.local 17.5.0 Darwin Kernel Version 17.5.0: Mon 
Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64

C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/Users/vincent/Applications/sage-8.1/local/libexec/gcc/x86_64-apple-darwin17.5.0/7.2.0/lto-wrapper
Target: x86_64-apple-darwin17.5.0
Configured with: ../src/configure 
--prefix=/Users/vincent/Applications/sage-8.1/local 
--with-local-prefix=/Users/vincent/Applications/sage-8.1/local 
--with-gmp=/Users/vincent/Applications/sage-8.1/local 
--with-mpfr=/Users/vincent/Applications/sage-8.1/local 
--with-mpc=/Users/vincent/Applications/sage-8.1/local --with-system-zlib 
--disable-multilib --disable-nls --enable-languages=c,c++,fortran 
--disable-libitm --with-build-config=bootstrap-debug --without-isl 
--without-cloog  
Thread model: posix
gcc version 7.2.0 (GCC) 

./spkg-build: line 66: ![: command not found
OS X 10.13 Building with clang.
configure: WARNING: unrecognized options: --disable-toolbox-glue
checking build system type... x86_64-apple-darwin17.5.0
checking host system type... x86_64-apple-darwin17.5.0
checking for python3.6... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHD

Re: [sage-devel] Re: Product of two expressions that causes hang

2018-04-24 Thread Erik Bray
On Tue, Apr 24, 2018 at 5:23 PM, Jean-Pierre Flori  wrote:
> It might be an issue with the "printing" order which is used to sort stuff
> in pynac internally (but not in orignal ginac) and we already had issues
> with in the past.

Yes, there is a comment in there (the first part added by rws):

 716 // The following comment is no longer true for pynac.
 717 // We use the print order to determine the main variable
 718 // This order is not random.
 719 // XXX: The main variable is chosen in a random way,
so this code
 720 // does NOT transform the term into the canonical
form (thus, in some
 721 // very unlucky event it can even loop forever).
Hopefully the main
 722 // variable will be the same for all terms in *this

However, the part about "in some very unlucky event it can even loop
forever" appears to be true :(
That hardly seems ideal.  There should be a fix to prevent that from happening.

-- 
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: Error building package python3-3.6.1.p1 Sage 8.1 on Mac

2018-04-24 Thread John H Palmieri
In my experience, it can help to run Xcode once after upgrading so that it 
can install some "additional components". Did you re-install command line 
tools by upgrading through the app store, or some other way?


On Tuesday, April 24, 2018 at 8:57:30 AM UTC-7, Christelle Vincent wrote:
>
> Hi,
> I am trying to build Sage 8.1 from source on Mac (High Sierra 10.13.4, 
> just updated Xcode and re-installed Command Line Tools).
> I get the error "Error building package python3-3.6.1.p1"
> I am attaching the whole log but it ends with
> Undefined symbols for architecture x86_64:
>   "_libintl_bindtextdomain", referenced from:
>   _PyIntl_bindtextdomain in _localemodule.o
>   "_libintl_dcgettext", referenced from:
>   _PyIntl_dcgettext in _localemodule.o
>   "_libintl_dgettext", referenced from:
>   _PyIntl_dgettext in _localemodule.o
>   "_libintl_gettext", referenced from:
>   _PyIntl_gettext in _localemodule.o
>   "_libintl_textdomain", referenced from:
>   _PyIntl_textdomain in _localemodule.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make[3]: *** [Programs/_freeze_importlib] Error 1
> Error building Python.
>
> Anyone can help me fix this? Thanks!
> Christelle
>

-- 
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: cython 0.28.1 and sagemath

2018-04-24 Thread 'Martin R' via sage-devel
Would a setup.py be an alternative to pyximport?  If so, how would I go 
about it (making the example at hand work would probably be sufficient.)

Thanks in any case!

Martin

>
>

-- 
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: cython 0.28.1 and sagemath

2018-04-24 Thread 'Martin R' via sage-devel
It just ocurred to me: why does all this work with sage 8.1?  Is it only 
the cython upgrade?

Martin

-- 
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: cython 0.28.1 and sagemath

2018-04-24 Thread Nils Bruin
On Tuesday, April 24, 2018 at 11:13:29 AM UTC-7, Martin R wrote:
>
> It just ocurred to me: why does all this work with sage 8.1?  Is it only 
> the cython upgrade?
>
> Martin
>
 
I don't think the things you're running into have changed much on the sage 
side, so I would suspect the cython upgrade. It looks like the pyximport 
hook has become much more invasive. Perhaps it's worth mentioning on the 
cython list. Perhaps there's something that can be done to make it less so. 
Perhaps configuration flags to making it more opt-in.

In any case, setup.py should really work.

Alternatively, for your example

sage -sh -c 'cythonize -i -a minimal_pyx.pyx'

seems to work as well, so if you're willing to run that prior to doing 
`import minimal_pyx` you should be OK. That doesn't seem so bad?

This wisdom is coming from 
http://cython.readthedocs.io/en/latest/src/reference/compilation.html

-- 
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: cython 0.28.1 and sagemath

2018-04-24 Thread 'Martin R' via sage-devel

>
> In any case, setup.py should really work.
>
> indeed, it was easier than I thought!  I simply copied the first example 
from http://cython.readthedocs.io/en/latest/src/reference/compilation.html 


Many many thanks,

Martin 

-- 
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: Moving sagenb worksheets

2018-04-24 Thread Dima Pasechnik


On Tuesday, April 24, 2018 at 5:15:35 PM UTC+3, Jori Mäntysalo wrote:
>
> On Tue, 24 Apr 2018, kcrisman wrote: 
>
> >   However, the Download All Active -link does not work. Is there any 
> >   workaround to make it work? And yes, I know that there is no 
> active 
> >   development, but this would make it possible to move data from a 
> server to 
> >   another. 
> > 


did you try copying the whole ~/.sage/ directory over?

 

>
> > I think if you click on the buttons on the left and then "Download" it 
> > should work, at least for small numbers of worksheets (I don't know what 
> > N=small, though). 
>
> Thanks, this helps a little. It seems that N=2 is too much if the 
> worksheets are large, but at least N=5 worked with small ones. So I guess 
> the problem is somehow some memory exhausting(?). 
>
> -- 
> Jori Mäntysalo

-- 
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: Moving sagenb worksheets

2018-04-24 Thread Jori Mäntysalo

On Tue, 24 Apr 2018, Dima Pasechnik wrote:


did you try copying the whole ~/.sage/ directory over?


I am quite sure that it would work.

I was actually hoping that this could be a spring cleaning -- mail to 
everyone about the new server, and instructions on how to copy 
worksheet(s).


There is no easy way in SageNB to handle users, like grouping them to 
courses and deleting accounts that are not marked as being "staff"-group 
etc. Even deleting a user does not delete worksheets.


--
Jori Mäntysalo