Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Jori Mäntysalo
On Tue, 12 Dec 2017, Dima Pasechnik wrote: Have you tested against a real LDAP server? Yes. It works. Could you comment on https://github.com/sagemath/sagenb/issues/177  rather than here?  OK, I'll continue there. -- Jori Mäntysalo

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Dima Pasechnik
On Tuesday, December 12, 2017 at 8:02:36 AM UTC, Jori Mäntysalo wrote: > > On Mon, 11 Dec 2017, Dima Pasechnik wrote: > > > why would you bother with easy_install at all? All these packages you > need > > are installable with pip. > > > > I am now trying to summarise what you did > > here:

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Dima Pasechnik
On Tuesday, December 12, 2017 at 8:02:36 AM UTC, Jori Mäntysalo wrote: > > On Mon, 11 Dec 2017, Dima Pasechnik wrote: > > > why would you bother with easy_install at all? All these packages you > need > > are installable with pip. > > > > I am now trying to summarise what you did > > here:

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-12 Thread Jori Mäntysalo
On Mon, 11 Dec 2017, Dima Pasechnik wrote: why would you bother with easy_install at all? All these packages you need are installable with pip. I am now trying to summarise what you did here: https://github.com/sagemath/sagenb/issues/177 Please have a look and check. I do not know if "./sage

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-11 Thread Dima Pasechnik
On Monday, December 11, 2017 at 11:56:28 AM UTC, Jori Mäntysalo wrote: > > On Mon, 11 Dec 2017, Jori Mantysalo wrote: > > > But there is something wrong with those settings. I must test against a > known > > good server. > > ...and now it works on a test machine. I must still test that on rea

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-11 Thread Jori Mäntysalo
On Mon, 11 Dec 2017, Jori Mantysalo wrote: But there is something wrong with those settings. I must test against a known good server. ...and now it works on a test machine. I must still test that on real server, where I had to say pip uninstall, pip install and sage -b to get ldap settings t

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-11 Thread Jori Mäntysalo
On Sun, 10 Dec 2017, Dima Pasechnik wrote: On my installation, thes files don't exist: $ ls  local/lib/python2.7/site-packages/ldap/ __init__.py  __init__.pyc  mock.py  mock.pyc  server.py  server.pyc Confusingly, pip also has a package called python-ldap; if I do ./sage --pip install python-ld

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-10 Thread Jori Mäntysalo
On Sun, 10 Dec 2017, Dima Pasechnik wrote: How do I reproduce your error? You need a working LDAP server for that. Maybe this works: https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/ I'll continue with this tomorrow. -- Jori Mäntysalo

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-10 Thread Nils Bruin
On Saturday, December 9, 2017 at 1:15:12 AM UTC-5, Jori Mäntysalo wrote: > > > It is for publishing notebooks to the world, not for sharing a notebook > within a group (or to a teacher). > > That's a problem that is solved in the jupyter world as well: https://nbviewer.jupyter.org/ If you want

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-10 Thread Dima Pasechnik
On Sunday, December 10, 2017 at 11:17:35 AM UTC, Dima Pasechnik wrote: > > On my installation, thes files don't exist: > > $ ls local/lib/python2.7/site-packages/ldap/ > __init__.py __init__.pyc mock.py mock.pyc server.py server.pyc > > Confusingly, pip also has a package called python-ldap

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-10 Thread Dima Pasechnik
On my installation, thes files don't exist: $ ls local/lib/python2.7/site-packages/ldap/ __init__.py __init__.pyc mock.py mock.pyc server.py server.pyc Confusingly, pip also has a package called python-ldap; if I do ./sage --pip install python-ldap then I get that ldap/filter.py files indee

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-10 Thread Jori Mäntysalo
On Sun, 10 Dec 2017, Dima Pasechnik wrote: Could you locate the python file this command is in? $ fgrep 'import strf_secs' -R . ./local/lib/python2.7/site-packages/ldap/filter.py:from ldap.functions import strf_secs ./local/lib/python3.6/site-packages/python_ldap-3.0.0b1-py3.6-linux-x86_64.eg

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-10 Thread Dima Pasechnik
Could you locate the python file this command is in? -- 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 grou

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-09 Thread Jori Mäntysalo
On Sat, 9 Dec 2017, kcrisman wrote: >       After some trying I ended up with line > >       from ldap.functions import strf_secs Hmm, what was your previous Sage instance? Version 8.0. Did you conceivably compile Sage using Py3? Just did normal make. Dima wrote: It's

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-09 Thread Dima Pasechnik
On Saturday, December 9, 2017 at 6:10:53 AM UTC, Jori Mäntysalo wrote: > > On Fri, 8 Dec 2017, Dima Pasechnik wrote: > > > How to set up SageNB with LDAP to SageMath 8.1? > > > > After some trying I ended up with line > > > > from ldap.functions import strf_secs > > > >

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-09 Thread kcrisman
On Saturday, December 9, 2017 at 1:10:53 AM UTC-5, Jori Mäntysalo wrote: > > On Fri, 8 Dec 2017, Dima Pasechnik wrote: > > > How to set up SageNB with LDAP to SageMath 8.1? > > > > After some trying I ended up with line > > > > from ldap.functions import strf_secs > > > >

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-09 Thread Jori Mäntysalo
On Fri, 8 Dec 2017, William Stein wrote: CoCalc also support sharing notebooks (and latex documents and pretty much any type of files) within a group, with realtime multiuser editing. That's what the "Add people to project" section of project settings enables. Ah, good. So let's test. I didn'

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-08 Thread William Stein
On Fri, Dec 8, 2017 at 10:15 PM, Jori Mäntysalo wrote: > On Fri, 8 Dec 2017, William Stein wrote: > >>> I know. But there is still no notebook sharing in other choises, and that >>> is >>> what are used here for teaching. >> >> >> CoCalc has a completely new server for notebook sharing, which we j

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-08 Thread Jori Mäntysalo
On Fri, 8 Dec 2017, William Stein wrote: I know. But there is still no notebook sharing in other choises, and that is what are used here for teaching. CoCalc has a completely new server for notebook sharing, which we just wrote in the last month. It is for publishing notebooks to the world,

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-08 Thread Jori Mäntysalo
On Fri, 8 Dec 2017, Dima Pasechnik wrote: How to set up SageNB with LDAP to SageMath 8.1? After some trying I ended up with line from ldap.functions import strf_secs I've no idea where this comes from, it's not in the current sagenb code, as far as I can tell. (I didn't try

[sage-devel] Re: SageNB and ldap packages

2017-12-08 Thread Dima Pasechnik
On Friday, December 8, 2017 at 8:56:07 AM UTC, Jori Mäntysalo wrote: > > How to set up SageNB with LDAP to SageMath 8.1? > > After some trying I ended up with line > > from ldap.functions import strf_secs > I've no idea where this comes from, it's not in the current sagenb code, as far as I c

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-08 Thread William Stein
On Fri, Dec 8, 2017 at 11:35 AM, Jori Mäntysalo wrote: > On Fri, 8 Dec 2017, Maarten Derickx wrote: > >> Maybe not a direct answer to your question. But if you plan on setting up >> an ldap authenticated sage >> server these days and you are planning on actually maintaining it for some >> time in

Re: [sage-devel] Re: SageNB and ldap packages

2017-12-08 Thread Jori Mäntysalo
On Fri, 8 Dec 2017, Maarten Derickx wrote: Maybe not a direct answer to your question. But if you plan on setting up an ldap authenticated sage server these days and you are planning on actually maintaining it for some time in the future, I would not go the SageNB way, since SageNB is not real

[sage-devel] Re: SageNB and ldap packages

2017-12-08 Thread Maarten Derickx
Hi Jori, Maybe not a direct answer to your question. But if you plan on setting up an ldap authenticated sage server these days and you are planning on actually maintaining it for some time in the future, I would not go the SageNB way, since SageNB is not really being actively developed anymore