Re: [sage-support] compiling fails with 'boost/preprocessor/cat.hpp' file not found

2020-09-04 Thread Szabolcs Horvát
Hi Dima,

Thanks for the response. I do have boost installed in /opt/local/include,
through MacPorts, but I remove MacPorts from the PATH before building Sage
(otherwise Sage complains). Therefore, I assumed that this boost
installation would not be detected. It appears that it might be sometimes
detected and sometimes not? The contents of config.log are a bit unclear to
me. I copy the relevant part below. Do you have any suggestion for what I
might try, based on this?

## -- ##
## Checking whether SageMath should install SPKG boost_cropped... ##
## -- ##
configure:13360: checking for boostlib >= 1.66.0 (106600)
configure:13392: g++ -std=gnu++11 -c -g -O2 -I/opt/local/include
conftest.cpp >&5
configure:13392: $? = 0
configure:13394: result: yes
configure:13558: will use system package and not install SPKG boost_cropped
## -- ##
## Checking whether SageMath should install SPKG boost... ##
## -- ##
configure:13658: checking whether any of boost_cropped is installed as or
will be installed as SPKG
configure:13667: result: no
configure:13691: g++ -std=gnu++11 -o conftest -g -O2 conftest.cpp -lm >&5
conftest.cpp:24:12: fatal error: 'boost/program_options/errors.hpp' file
not found
#include 
^~
1 error generated.
configure:13691: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Sage"
| #define PACKAGE_TARNAME "sage"
| #define PACKAGE_VERSION "9.1"
| #define PACKAGE_STRING "Sage 9.1"
| #define PACKAGE_BUGREPORT "sage-de...@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "sage"
| #define VERSION "9.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LIBM 1
| #define HAVE_CXX11 1
| #define HAVE_BOOST /**/
| /* end confdefs.h. */
| #include 
|
| int
| main ()
| {
|
| boost::program_options::error err("Error message");
| return 0;
|
| ;
| return 0;
| }
configure:13719: no suitable system package found for SPKG boost

On Fri, 4 Sep 2020 at 13:04, Dima Pasechnik  wrote:

> On Fri, Sep 4, 2020 at 11:12 AM Szabolcs Horvát 
> wrote:
> >
> >
> > Hello everyone,
> >
> > I am trying to compile Sage on macOS 10.14.
> >
> > The package brial-1.2.5 fails to compile.
> >
> > The error is:
> >
> > ../../libbrial/include/polybori/common/traits.h:26:10: fatal error:
> 'boost/preprocessor/cat.hpp' file not found
> > #include 
> > ^~~~
> > 1 error generated.
> >
> > Did anyone succeed to compile Sage on macOS 10.14? Is a separate, manual
> installation of Boost necessary to compile? Sage does appear to include (or
> auto-download?) Boost, so I assume this is not the case.
>
> it should work. Sage tries to detect an system-wide installation of
> boost, and if it fails it installs a package boost-cropped,
> otherwise it uses what's available on the system.
>
> Have a look at the top level config.log to see what happens for you.
> E.g. here is a place in config.log where system boost is detected:
>
> []
> # Checking whether SageMath should install SPKG boost_cropped... ##
> ## -- ##
> configure:13366: checking for boostlib >= 1.66.0 (106600)
> configure:13398: clang++ -std=gnu++11 -c -g -O2 -I/usr/local/include
> -I/usr/local/include conftest.cpp >&5
> configure:13398: $? = 0
> configure:13400: result: yes
> configure:13564: will use system package and not install SPKG boost_cropped
> ## -- ##
> ## Checking whether SageMath should install SPKG boost... ##
> ## -- ##
> configure:13664: checking whether any of boost_cropped is installed as
> or will be installed as SPKG
> configure:13673: result: no
> configure:13697: clang++ -std=gnu++11 -o conftest -g -O2
> -I/usr/local/include  -L/usr/local/lib  conftest.cpp -lmpfr -lgmp -lm
> -lntl >&5
> configure:13697: $? = 0
> configure:13697: ./conftest
> configure:13697: $? = 0
> configure:13714: will use system package and not install SPKG boost
>
> [.]
>
> configure:36187: result: boost-1_66_0:
> using system package; SPKG will not be installed
> configure:36187: result: boost_cropped-1.66.0.p0:
> 

[sage-support] compiling fails with 'boost/preprocessor/cat.hpp' file not found

2020-09-04 Thread Szabolcs Horvát

Hello everyone,

I am trying to compile Sage on macOS 10.14.

The package brial-1.2.5 fails to compile.

The error is:

../../libbrial/include/polybori/common/traits.h:26:10: fatal error: 
'boost/preprocessor/cat.hpp' file not found
#include 
^~~~
1 error generated.

Did anyone succeed to compile Sage on macOS 10.14? Is a separate, manual 
installation of Boost necessary to compile? Sage does appear to include (or 
auto-download?) Boost, so I assume this is not the case.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/53272397-0628-49ac-91d2-eeccb93fedb2n%40googlegroups.com.


[sage-support] Re: How to use notebook in sage 9.0?

2020-05-11 Thread Szabolcs Horvát
Thank you for the detailed answer Samuel. I managed to fix it with this.

It seems that simply removing the kernel spec from 
~/Library/Jupyter/kernels/ also works, and starting Sage does not re-add 
it. I do not recall how it got added in the first place. Something strange 
about the ~/Library/Jupyter/kernels/sagemath directory on my machine was 
that it was 1.6 GB in size and appeared to contain the full Sage 
documentation.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/32118a88-3b43-4da4-bb06-f59a7d3f4d77%40googlegroups.com.


Re: [sage-support] How to use notebook in sage 9.0?

2020-05-07 Thread Szabolcs Horvát
On Thu, 7 May 2020 at 00:41, John H Palmieri  wrote:

> Silly question,
>

Any suggestion is always appreciated :-)


> but are you sure you are starting up Sage 9.0 when you do all of this
> ("sage --notebook" or "sage --sh")? If you give an explicit path to the
> Sage 9.0 version, does that help? Do you have any Sage-related environment
> variables which could be interfering with things?
>

I start Sage with the full path. I have it in ~/sage-9.0. I'm on macOS and
I compiled it from source. I start it as ./sage. I think it's somehow
picking up the global jupyter configuration, even if it is running its own
jupyter ...


>
>
> On Wednesday, May 6, 2020 at 12:54:16 PM UTC-7, Szabolcs Horvát wrote:
>>
>> Thanks for the help Dima, but sadly, even this did not work :-( Is there
>> a simple way to set up the kernel manually?
>>
>> On Wed, 6 May 2020 at 20:32, Dima Pasechnik  wrote:
>>
>>> this looks like a conflict between two versions of Sage (more
>>> precisely, of jupyter).
>>>
>>> Not sure how this can happen, though. You migh try to start "sage -sh"
>>> of your Sage 9.0 and at its
>>> prompt start
>>>
>>> jupyter-notebook
>>>
>>> it should give you an option to open URL of the shape
>>> http://localhost:/?token=
>>>
>>> where you should ge the correct jupyter kernel (hopefully)
>>>
>>>
>>> On Wed, May 6, 2020 at 7:19 PM Szabolcs Horvát 
>>> wrote:
>>> >
>>> >
>>> >
>>> > On Wednesday, 6 May 2020 20:11:50 UTC+2, Dima Pasechnik wrote:
>>> >>
>>> >> On Wed, May 6, 2020 at 6:58 PM Szabolcs Horvát 
>>> wrote:
>>> >> >
>>> >> > I use sage 9.0 and sage 8.9 on macOS. I compiled them myself so I
>>> would gain access to other ILP solvers than GLPK.
>>> >> >
>>> >> > They work fine in command line mode. But if I start Sage 9.0 as
>>> sage --notebook, it gives me an interface to create a new notebook, which
>>> only has the kernel "Sage 8.9".  How can I get the Sage 9.0 kernel?
>>> >>
>>> >>  sage -notebook=jupyter
>>> >>
>>> >> should give you jupyter notebook.
>>> >>
>>> >> sagenb would only work with Python2 Sage (by default Sage 9.0 is built
>>> >> with Python3, not 2)
>>> >>
>>> >
>>> > Yes, I do get a Jupyter page in the browser, but not a notebook. In
>>> order to create a notebook, one must click "New" and choose the Jupyter
>>> kernel to use. There is no Sage 9.0 kernel there. There are some of the
>>> Python kernels I use independently of Sage, and there is Sage 8.9. How can
>>> I install the Sage 9.0 kernel? Is there documentation on this?
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "sage-support" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an email to sage-s...@googlegroups.com.
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/4feab8f6-c3dc-450d-92c3-95039aa1d7e2%40googlegroups.com
>>> .
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "sage-support" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/sage-support/X5sXp3a-TmA/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> sage-s...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/CAAWYfq1viv3gEHKxfPCRqLBmvFc9gOsCKJiu1c_s_yQoDF8XWg%40mail.gmail.com
>>> .
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/X5sXp3a-TmA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/124d3fe3-1b3a-4c5e-aee5-f2a44bb446cd%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/124d3fe3-1b3a-4c5e-aee5-f2a44bb446cd%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAJDnrnrpjMwAYk%3DpPa0rQ7uuU00i-tNtG%3DYWMgEsADbKMd5a6g%40mail.gmail.com.


Re: [sage-support] How to use notebook in sage 9.0?

2020-05-06 Thread Szabolcs Horvát
Thanks for the help Dima, but sadly, even this did not work :-( Is there a
simple way to set up the kernel manually?

On Wed, 6 May 2020 at 20:32, Dima Pasechnik  wrote:

> this looks like a conflict between two versions of Sage (more
> precisely, of jupyter).
>
> Not sure how this can happen, though. You migh try to start "sage -sh"
> of your Sage 9.0 and at its
> prompt start
>
> jupyter-notebook
>
> it should give you an option to open URL of the shape
> http://localhost:/?token=
>
> where you should ge the correct jupyter kernel (hopefully)
>
>
> On Wed, May 6, 2020 at 7:19 PM Szabolcs Horvát  wrote:
> >
> >
> >
> > On Wednesday, 6 May 2020 20:11:50 UTC+2, Dima Pasechnik wrote:
> >>
> >> On Wed, May 6, 2020 at 6:58 PM Szabolcs Horvát 
> wrote:
> >> >
> >> > I use sage 9.0 and sage 8.9 on macOS. I compiled them myself so I
> would gain access to other ILP solvers than GLPK.
> >> >
> >> > They work fine in command line mode. But if I start Sage 9.0 as sage
> --notebook, it gives me an interface to create a new notebook, which only
> has the kernel "Sage 8.9".  How can I get the Sage 9.0 kernel?
> >>
> >>  sage -notebook=jupyter
> >>
> >> should give you jupyter notebook.
> >>
> >> sagenb would only work with Python2 Sage (by default Sage 9.0 is built
> >> with Python3, not 2)
> >>
> >
> > Yes, I do get a Jupyter page in the browser, but not a notebook. In
> order to create a notebook, one must click "New" and choose the Jupyter
> kernel to use. There is no Sage 9.0 kernel there. There are some of the
> Python kernels I use independently of Sage, and there is Sage 8.9. How can
> I install the Sage 9.0 kernel? Is there documentation on this?
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sage-support" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-support+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/4feab8f6-c3dc-450d-92c3-95039aa1d7e2%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/X5sXp3a-TmA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq1viv3gEHKxfPCRqLBmvFc9gOsCKJiu1c_s_yQoDF8XWg%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAJDnrnr6JSSFOWA_eL1YZ2i%2B5dv85s0JVGgHwbpxbZiB_idbZQ%40mail.gmail.com.


Re: [sage-support] How to use notebook in sage 9.0?

2020-05-06 Thread Szabolcs Horvát


On Wednesday, 6 May 2020 20:11:50 UTC+2, Dima Pasechnik wrote:
>
> On Wed, May 6, 2020 at 6:58 PM Szabolcs Horvát  > wrote: 
> > 
> > I use sage 9.0 and sage 8.9 on macOS. I compiled them myself so I would 
> gain access to other ILP solvers than GLPK. 
> > 
> > They work fine in command line mode. But if I start Sage 9.0 as sage 
> --notebook, it gives me an interface to create a new notebook, which only 
> has the kernel "Sage 8.9".  How can I get the Sage 9.0 kernel? 
>
>  sage -notebook=jupyter 
>
> should give you jupyter notebook. 
>
> sagenb would only work with Python2 Sage (by default Sage 9.0 is built 
> with Python3, not 2) 
>
>
Yes, I do get a Jupyter page in the browser, but not a notebook. In order 
to create a notebook, one must click "New" and choose the Jupyter kernel to 
use. There is no Sage 9.0 kernel there. There are some of the Python 
kernels I use independently of Sage, and there is Sage 8.9. How can I 
install the Sage 9.0 kernel? Is there documentation on this?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/4feab8f6-c3dc-450d-92c3-95039aa1d7e2%40googlegroups.com.


[sage-support] How to use notebook in sage 9.0?

2020-05-06 Thread Szabolcs Horvát
I use sage 9.0 and sage 8.9 on macOS. I compiled them myself so I would 
gain access to other ILP solvers than GLPK.

They work fine in command line mode. But if I start Sage 9.0 as sage 
--notebook, it gives me an interface to create a new notebook, which only 
has the kernel "Sage 8.9".  How can I get the Sage 9.0 kernel?

This help page is not helpful:

https://doc.sagemath.org/html/en/reference/repl/sage/repl/ipython_kernel/install.html

It does not explain how to install the kernel.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f8bf42ac-11d2-4c19-a16c-6a9caa6960f2%40googlegroups.com.


[sage-support] "SageMath is damaged and can't be opened" on macOS 10.14

2020-01-10 Thread Szabolcs Horvát
I just installed the app version of SageMath 9.0 on macOS 10.14. When I try 
to launch it, I get "SageMath is damaged and can't be opened." Version 8.9 
worked fine on the same macOS version.

Do others have this problem too? It would be surprising to me if this were 
a universal problem, as it would have certainly been noticed before 
publishing the distribution ...

Is there a workaround?



Is SageMath struggling with getting enough developer resources? Recently 
one has to go through more and more hoops to be able to use it ... it's no 
longer possible to just download a binary and start it like any normal app. 
The last few versions already took minutes to start on macOS unless they 
were launched manually from the command line. 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e39659e1-5cf1-4ade-b094-170d1fb769da%40googlegroups.com.


[sage-support] Changelog for Sage?

2019-10-17 Thread Szabolcs Horvát
Is there a changelog for Sage 8.8 or 8.9? I can only find 8.7 on the 
website: http://www.sagemath.org/changelogs/index.html

Are there plans to create a more user-friendly changelog? The changelogs I 
linked list every single change, but it is hard for a normal user (not a 
developer) to figure out if there was a change that is relevant for me ... 
Many other software have both a full list of changes, but also an easy to 
digest summary of important major changes.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/adc49e27-d7f6-4173-8725-0b7fec906e88%40googlegroups.com.


[sage-support] MixedIntegerLinearProgram: How to use Gurobi backend on macOS?

2019-09-03 Thread Szabolcs Horvát
Is it possible to use the Gurobi backend to MixedIntegerLinearProgram on 
macOS?

The documentation for getting it working seems to be here and seems to be 
Linux-specific:

http://doc.sagemath.org/html/en/thematic_tutorials/linear_programming.html#using-cplex-or-gurobi-through-sage

I tried to follow it for macOS anyway. I have the official app distribution 
of SageMath 8.8 and Gurobi 8.1.1. I symlinked libgurobi81.dylib and 
gurobi_c.h in the indicated locations, set the environment variable for the 
license file, then went to SAGE_ROOT and ran 'make'. This complained that I 
have MacPorts. I removed MacPorts from the PATH, and tried again. It 
re-built Sage (in part?) which took about an hour. However, Gurobi still 
does not work.

If I run

s = MixedIntegerLinearProgram(solver='Gurobi')

then I get "No module named gurobi_backend"

Since running make takes such a long time, I am not keen on the 
trial-and-error approach to solving this. Does anyone has tested and 
reliable instructions?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/afa21eff-c1d1-47eb-b970-d1a6829b7e7c%40googlegroups.com.


[sage-support] Feature to constrain computation time?

2019-09-02 Thread Szabolcs Horvát
Does Sage have a feature to constrain computation time? Suppose the 
function f() takes a long time to run. I am looking for a way to run it 
*for at most 5 minutes*. If it finishes by then, I'd like to have the 
return value from f(). If not, it should communicate that clearly, and the 
system should be ready for the next computation.

For those familiar with Mathematica, I am looking for something similar to 
its TimeConstrained[] command.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b060e21d-aa2a-40ae-b421-37fa28ad6818%40googlegroups.com.


Re: [sage-support] SageMath for non-Debian/Ubuntu Linux?

2019-09-02 Thread Szabolcs Horvát
Thanks to everyone for the responses.

I succeeded in installing from conda-forge. At the moment they seem to have 
version 8.8 (the latest). 

The only small problem is that I accidentally ended up with a Python 3 
based installation. While the functions I need appear to work correctly, my 
understanding is that Sage still doesn't support Python 3. Thus I should 
probably re-install with Python 2. Is this correct?

On Monday, 2 September 2019 11:27:22 UTC+2, Dima Pasechnik wrote:
>
> you might try conda. 
> (assuming it works on openSUSE, I don't know) 
>
> On Mon, Sep 2, 2019 at 11:47 AM Szabolcs Horvát  > wrote: 
> > 
> > Are there pre-built binaries for other Linux varieties than 
> Debian/Ubuntu, or perhaps a "generic" variety that works on all common 
> Linuxes? 
> > 
> > I am looking to install Sage into my home directory on an openSUSE 
> system where I do not have root access. Am I stuck with compiling from 
> source? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-s...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/b21e517c-38dc-4d49-a343-8838cf3e493b%40googlegroups.com.
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5c0e5b07-2d5c-4021-84c1-f7b874c563c6%40googlegroups.com.


[sage-support] SageMath for non-Debian/Ubuntu Linux?

2019-09-02 Thread Szabolcs Horvát
Are there pre-built binaries for other Linux varieties than Debian/Ubuntu, 
or perhaps a "generic" variety that works on all common Linuxes?

I am looking to install Sage into my home directory on an openSUSE system 
where I do not have root access. Am I stuck with compiling from source?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b21e517c-38dc-4d49-a343-8838cf3e493b%40googlegroups.com.


Re: [sage-support] Sage is extremely slow to start on macOS Mojave

2019-07-08 Thread Szabolcs Horvát


On Friday, 1 March 2019 19:30:44 UTC+1, Dima Pasechnik wrote:
>
> On Fri, Mar 1, 2019 at 1:15 PM Szabolcs Horvát  > wrote: 
> > 
> > I am using the app version of Sage 8.6 on macOS Mojave 10.4.3.  It is 
> extremely slow to start up. It takes multiple minutes. 
> > 
> > Running the sage or Sage executables found within the app bundle is 
> fast—it takes only a few seconds, as it should.  It is launching the app 
> the normal way (double click) that does not work. 
> > 
> > Is this a known problem and is there a solution? 
>
> The known problem is that the app version has not been looked at by a 
> MacOS developer for years. It might be using something obsolete. 
>
> We are now trying to offer a Google Summer of Code project to work on it. 
>

Version 8.8 still has this problem. I was wondering if there's any work 
being done to address this.

Do any of the regular users use the app version on macOS?
 

>
> If the app version is so bad then we perhaps should just pull it. 
>
> > 
> > I also asked this on Ask.SageMath, but did not get a definitive answer: 
> > 
> > 
> https://ask.sagemath.org/question/45506/sage-takes-very-long-to-start-why/ 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-s...@googlegroups.com . 
> > To post to this group, send email to sage-s...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/sage-support. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/4235c7d7-e036-4e6b-961b-9a46e4147e6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Sage is extremely slow to start on macOS Mojave

2019-03-01 Thread Szabolcs Horvát
I am using the app version of Sage 8.6 on macOS Mojave 10.4.3.  It is 
extremely slow to start up. It takes multiple minutes.

Running the sage or Sage executables found within the app bundle is fast—it 
takes only a few seconds, as it should.  It is launching the app the normal 
way (double click) that does not work.

Is this a known problem and is there a solution?

I also asked this on Ask.SageMath, but did not get a definitive answer:

https://ask.sagemath.org/question/45506/sage-takes-very-long-to-start-why/

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


[sage-support] How to install Python packages into Sage using pip?

2019-03-01 Thread Szabolcs Horvát
How can I install Python packages into Sage using pip?

A google search reveals several posts suggesting to run sage -sh, then use 
pip install as usual. However, I get:

> pip is configured with locations that require TLS/SSL, however the ssl 
module in Python is not available.

And finally

> Could not fetch URL https://pypi.org/simple/zmq/: There was a problem 
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', 
port=443): 

Is there a solution?  I am using Sage on macOS (app version).

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


Re: [sage-support] Re: Sage 7.0 on Mac

2016-02-08 Thread Szabolcs Horvát
I tried the app version.  I copied it to /Applications, then I started
it.  I get:

ERROR:  The Sage installation tree has moved

from 
/Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
  to /Applications/SageMath-7.1.beta2.app/Contents/Resources/sage

This was the very first time I stared it.

On 8 February 2016 at 15:46, Dima Pasechnik <dimp...@gmail.com> wrote:
> I did try 7.1beta2 (non-app version) on OSX 10.11, it worked for me.
> (note that once you started Sage for the 1st time, it cannot be moved to
> another location then).
> What exactly does not work for you with 7.1beta2?
>
>
>
> On Monday, February 8, 2016 at 2:20:03 PM UTC, Szabolcs Horvát wrote:
>>
>> I have two questions about Sage 7.0:
>>
>>  - Will it be available on OS X?  Currently there seems to be downloads
>> for 6.10 and 7.1beta2 but not 7.0.  The 7.1beta2 fails on startup.
>>
>>  - Is there a list of major changes (other than the list of tickets
>> closed)?  Does the bump in the major version from 6 to 7 signify big
>> changes?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/Wg4AQfMJYYQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

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


[sage-support] Sage 7.0 on Mac

2016-02-08 Thread Szabolcs Horvát
I have two questions about Sage 7.0:

 - Will it be available on OS X?  Currently there seems to be downloads for 
6.10 and 7.1beta2 but not 7.0.  The 7.1beta2 fails on startup.

 - Is there a list of major changes (other than the list of tickets 
closed)?  Does the bump in the major version from 6 to 7 signify big 
changes?  

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


Re: [sage-support] Re: When will Sage be available for OS X 10.11 El Capitan?

2015-10-28 Thread Szabolcs Horvát
Thanks!  I wasn't aware of the beta builds.  I'm downloading it now
(going to take a while).

On 28 October 2015 at 13:28, Volker Braun <vbraun.n...@gmail.com> wrote:
> The 6.10.beta1 binary should work, feel free to test and report back:
>
> http://files.sagemath.org/osx/intel/index.html
>
>
>
> On Wednesday, October 28, 2015 at 12:34:06 PM UTC+1, Szabolcs Horvát wrote:
>>
>> Dear All,
>>
>> When will Sage be available for OS X 10.11 El Capitan?
>>
>> I see that ticket 19370 has been closed for nearly two weeks now, but
>> there is not download for 10.11.  I do not want to disable SIP, nor do I
>> want to build Sage from source.
>>
>> I would like to know if we can expect a 10.11-compatible build soon or if
>> we need to wait until the 6.10 release (which I guess is quite some time
>> away).
>>
>> Szabolcs
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/R-62P4ex5EA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

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


[sage-support] When will Sage be available for OS X 10.11 El Capitan?

2015-10-28 Thread Szabolcs Horvát
Dear All,

When will Sage be available for OS X 10.11 El Capitan?

I see that ticket 19370 has been closed for nearly two weeks now, but there 
is not download for 10.11.  I do not want to disable SIP, nor do I want to 
build Sage from source.

I would like to know if we can expect a 10.11-compatible build soon or if 
we need to wait until the 6.10 release (which I guess is quite some time 
away).

Szabolcs

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


Re: [sage-support] find Nth prime with Sage

2014-04-07 Thread Szabolcs Horvát
Than you for the responses William and Andrew.  William's idea does sound 
reasonable, I assumed Mathematica does something similar.  The reason I 
needed this functionality was actually to verify something I computed using 
Mathematica (for my peace of mind).  For now I will look at the primecount 
library, which is less work than implementing William's idea in Sage.

Szabolcs

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


[sage-support] Re: effective ways to use the documentation (get help)

2014-04-04 Thread Szabolcs Horvát


On Thursday, 3 April 2014 13:48:39 UTC-4, John H Palmieri wrote:



 On Wednesday, April 2, 2014 1:41:06 PM UTC-7, Szabolcs Horvát wrote:

 Hello,

 I'm new to Sage and I am still struggling with finding what I need in the 
 documentation.  I'm writing because maybe I'm not approaching this the 
 right way, and I'm looking for advice.  I am using the notebook interface.  

 I can evaluate something? in the notebook to get some help, but this is 
 usually very brief and more useful as a reminder than learning something 
 new.

 The documentation you get this way is the full documentation for 
 something. How much is there depends on how well documented that 
 particular function or method is. You can evaluate 
 browse_sage_doc(something) and it will open up the same page, but in a 
 different window.


Thank you for the response John.  This gives the same as something?, 
right?  Is there anything that would take me directly to:

http://www.sagemath.org/doc/reference/structure/sage/sets/primes.html

if I search for Primes?  That page has a better overview as it also has 
documentation for the methods right there on the same page.
 


 Is there a way to go directly to the documentation page of a certain 
 function, from within the notebook?  Coming from Mathematica I was used to 
 just pressing F1 over any functions to get the documentation page (the 
 short usage messages also have links to detailed documentation in 
 Mathematica).

 Is there a way to search the documentation?  Clicking help in the 
 notebook brings it up but there's no search box!  What would I go if I 
 wanted to find help, say, on Primes() ?  Is there anything better than 
 going to the reference manual, opening the full index, then trying to 
 search in the page until the right result comes up? (This takes many clicks 
 and a lot of tedious searching.)

 This certainly could be better. After you click help, the best thing I 
 could find was to click Fast static versions of the documentation. Then 
 click Reference Manual. Now there will be a search box which will return 
 helpful results. 


Thank you, this works.  In the meantime I figured out that the online 
documentation also has a search box.

Why is that if I click help, then reference manual on the top, then the 
search box will be missing?  Otherwise the page looks the same.

 

 From within Sage, you can also evaluate search_src('string') or 
 search_doc('string') to search the source code or the documentation for 
 'string'. If you do these in the notebook, they will give a list of links.


This is helpful too.  Yes, I always use the notebook.  Is this the typical 
way people use Sage?
 


 -- 
 John




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


[sage-support] How to find the Nth prime quickly?

2014-04-03 Thread Szabolcs Horvát
Hello,

I asked three question yesterday, but none of them showed up, I'm not sure 
why.  ask.sagemath.com also doesn't allow posts from new users.  Here's a 
brief version of one of the questions again:

Does Sage contain functionality to find the Nth prime quickly?  So far I 
found Primes().unrank(...) and pari.nth_prime(...).  I am looking for 
something that would work quickly for N=10^9.  Both are very slow for such 
a large number.

I am hopeful because I heard that Sage pulls together several independent 
tools so perhaps some functionality has multiple implementations available.

Szabolcs

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


[sage-support] effective ways to use the documentation (get help)

2014-04-03 Thread Szabolcs Horvát
Hello,

I'm new to Sage and I am still struggling with finding what I need in the 
documentation.  I'm writing because maybe I'm not approaching this the right 
way, and I'm looking for advice.  I am using the notebook interface.  

I can evaluate something? in the notebook to get some help, but this is 
usually very brief and more useful as a reminder than learning something new.

Is there a way to go directly to the documentation page of a certain function, 
from within the notebook?  Coming from Mathematica I was used to just pressing 
F1 over any functions to get the documentation page (the short usage messages 
also have links to detailed documentation in Mathematica).

Is there a way to search the documentation?  Clicking help in the notebook 
brings it up but there's no search box!  What would I go if I wanted to find 
help, say, on Primes() ?  Is there anything better than going to the reference 
manual, opening the full index, then trying to search in the page until the 
right result comes up? (This takes many clicks and a lot of tedious searching.)

Szabolcs

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


[sage-support] Why doesn't Sage use StackExchange?

2014-04-03 Thread Szabolcs Horvát
Hello,

Why doesn't Sage have a reliable and easy to use StackExchange site instead of 
ask.sagemath.org?

Being new to Sage, I looked at ask.sagemath.org twice.  The first time I did it 
did not work at all (the note said it was because of a troll, if I recall it 
right?). Today I registered there but it told me that new users are not allowed 
to post until upgrade (giving no indication how long that wait is).

This is a very bad first experience for novice users and these types of 
problems could easily be avoided by using StackExchange. 

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


[sage-support] find Nth prime with Sage

2014-04-03 Thread Szabolcs Horvát
Hello,

I'm quite new to Sage.  Does it have any functionality that will easily compute 
the Nth prime and it's fast enough that it will work for N of the order 10^9 or 
10^10 reasonable quickly (say, under 10 seconds)?

pari.nth_prime(10) takes a very long time.

Are there alternatives?

Szabolcs

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