Re: [sage-devel] copying MixedIntegerLinearProgram problem

2016-05-13 Thread Dima Pasechnik


On Thursday, May 12, 2016 at 6:17:33 PM UTC+1, Martin R wrote:
>
>
> So, what is the proper way to do it?  As I wrote, it's not really an 
>>> option to solve the whole problem for each new constraint...
>>>
>>
>> add a constraint, and solve again?
>>
>> Yes, and then?  I don't think I can remove it again, can I?  
>

sage: p.remove_constraint?
Docstring:
   Removes a constraint from self.

 

> As I wrote, pseudo-code is as follows, and keep in mind that large_list 
> really is a large list...
>
> p = MixedIntegerLinearProgram(constraint_generation=True, 
> solver="CPLEX") # solver="GLPK") # twice as long # 
> assignment = p.new_variable(binary=True)
>
> p.add_constraint(... some relations in terms of assignment[box, 
> colour] ... )
>
> p.solve()
>
> for (box, colour) in large_list:
> p_new = copy(p)
> p_new.add_constraint(assignment[box, colour] == 0)
> try:
> p_new.solve()
>
>

-- 
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: Certain warning messages are issued many times

2016-05-13 Thread Johan S. R. Nielsen
On Thursday, May 12, 2016 at 12:44:31 PM UTC+2, Johan S. R. Nielsen wrote:
>
> A related warning is that of @experimental. It seems that if one uses 
> @experimental in the __init__ of a class, then a FutureWarning message 
> is issued every time an element of that class is constructed. Needless 
> to say, this is unnecessary noise for both users and in doctests (every 
> single doctests should include the warning)


This is now fixed in #20601.

Best,
Johan 

-- 
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] copying MixedIntegerLinearProgram problem

2016-05-13 Thread 'Martin R' via sage-devel

Yes, and then?  I don't think I can remove it again, can I?  

>
> sage: p.remove_constraint?
> Docstring:
>Removes a constraint from self.
>
> I do not thing that this works, because a constraint may (and often will 
be) subsumed by other constraints already there. 

-- 
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: Sage runs in Window's 10's new Unix subsystem

2016-05-13 Thread Erik Bray
On Wed, May 11, 2016 at 8:46 AM, Dima Pasechnik  wrote:
>
>
> On Wednesday, May 11, 2016 at 7:12:59 AM UTC+1, Rob Beezer wrote:
>>
>> Dear Brian,
>>
>> Appears it is some flavor of Ubuntu Linux running within Windows?
>>
>>
>> https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/
>>
> right.
> https://github.com/Microsoft/BashOnWindows
>
> I tried to build Sage on such a thing, but patch(1) is broken there.
> https://github.com/Microsoft/BashOnWindows/issues/90
>
> it's all clearly a bit rough at the moment...

My understanding is that this is currently being positioned *solely*
as a tool for developers (and in particular it seems web developers
have driven a lot of this work initially, though I'm sure once it's in
the wild its use cases will broaden).  This article in Ars Technica
gives some more of the historical background to this, and why it's
being considered a development tool *only* right now:
http://arstechnica.com/information-technology/2016/04/why-microsoft-needed-to-make-windows-run-linux-software/

My point is that it is not being supported, at least initially, for
deployment either in servers or for end users.  Which is not to say it
*couldn't* be used in that way. I haven't tried it yet myself and
don't know what the limitations are, but I don't see what would stop
someone from distributing software that requires the WSL (Windows
Subsystem for Linux, as they're calling it) to run.  But it's not
officially supported to do that either.

It's also not clear to me whether this will be available on all
Windows 10 systems (with the appropriate update) or if it will be an
optional add-on users would have to install.

Still, this is definitely a Big Deal and worth keeping an eye on.

Erik

-- 
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: OS X binaries: which versions OS X are supported?

2016-05-13 Thread kcrisman


On Tuesday, May 10, 2016 at 4:31:42 PM UTC-4, Nathan Dunfield wrote:
>
> We don't have a buildbot on old OSX machines. 
>>
>
> One possible idea: VirtualBox supports running OS X clients on OS X hosts, 
> and the OS X versions don't have to match.  I know someone who has VB VM's 
> of every release from 10.6 to 10.11 running on a 10.11 host.  
>

I was planning on building the next Sage release on 10.7, before my 
computer is upgraded.  But I'm confused as to why the older versions for 
older systems were deleted from the downloads page?  The PowerPC ones are 
still there (and presumably occasionally, though rarely, downloaded).  What 
happened to previous builds that people like myself and Justin "Curmudgeon" 
Walker made? 

-- 
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: I added 3d axes labels and wanted to ask some questions before issuing a pull request.

2016-05-13 Thread kcrisman
Yes, +1!

On Wednesday, May 11, 2016 at 4:02:30 AM UTC-4, Eric Gourgoulhon wrote:
>
> It will be great to have axes labels on 3d plots !
> Good luck for your ticket !
>
> Eric.
>
>

-- 
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: I added 3d axes labels and wanted to ask some questions before issuing a pull request.

2016-05-13 Thread kcrisman


On Friday, May 13, 2016 at 8:54:43 AM UTC-4, kcrisman wrote:
>
> Yes, +1!
>
>
Though before that we should make the axes appear in the correct location 
always and so forth: 
http://trac.sagemath.org/ticket/3862
http://trac.sagemath.org/ticket/5229
http://trac.sagemath.org/ticket/9653
http://trac.sagemath.org/ticket/19442
If you can fix all of this you would be our hero.
See also http://ask.sagemath.org/question/8997/set-axes-in-3d-plot/
 

> On Wednesday, May 11, 2016 at 4:02:30 AM UTC-4, Eric Gourgoulhon wrote:
>>
>> It will be great to have axes labels on 3d plots !
>> Good luck for your ticket !
>>
>> Eric.
>>
>>

-- 
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] copying MixedIntegerLinearProgram problem

2016-05-13 Thread Dima Pasechnik
On Friday, May 13, 2016 at 9:53:13 AM UTC+1, Martin R wrote:
>
>
> Yes, and then?  I don't think I can remove it again, can I?  
>
>>
>> sage: p.remove_constraint?
>> Docstring:
>>Removes a constraint from self.
>>
>> I do not thing that this works, because a constraint may (and often will 
> be) subsumed by other constraints already there. 
>

It either works, or else please do a bug report...
If you added a redundant constraint, its removal should have no effect, 
isn't it? 

-- 
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: Sage Days 75: Algorithmic Coding Theory, Greater Paris Area, August 22-26, 2016

2016-05-13 Thread david . lucas
Dear sage-devel,

Sage Days 75, on coding theory in Sage and related tools will take place at 
Inria Saclay (Greater Paris Area, Polytechnique campus), France on August 
22-26, 2016.

We'll have introductions to Sage and tutorials in the mornings, and coding 
sprints in the afternoons.
We plan to work on projects related coding theory and linear algebra in Sage
during these coding sprints.
See the dedicated page [1] for a complete lists of projects and feel free 
to add you own project!
We will also give a status report on Inria's ACTIS project, whose goal was 
to enhance Sage's
coding theory library. See [2] for details on this project.

We will provide free lodging in a holiday cottage [3], with limited number 
of rooms.
We also have some funding available for developers with interest in the 
above themes.
We will provide transportation by cars between the cottage and Inria 
Saclay.  

Please email (david.lucas[at]inria.fr) me before June 17 if you require 
lodging and/or funding.
Feel free to enroll by adding your name to the lists of participants on 
this Sage Days' page [1].

Best,

Daniel Augot
David Lucas
Johan Nielsen
Clément Pernet

[1] https://wiki.sagemath.org/days75
[2] https://bitbucket.org/lucasdavid/sage_coding_project/wiki/Home
[3] http://www.cernayvacances.com/en

Le vendredi 8 janvier 2016 14:26:40 UTC+1, david...@inria.fr a écrit :
>
> Dear Sage-devel,Sage Days 75, will take place at Inria Saclay, (Greater Paris 
> Area, Polytechnique campus), France on August 22-26, 2016.
> The dedicated wiki page can be found here . 
> We'll have introductions to Sage and tutorials in the morning, and coding 
> sprints in the afternoon (and evening).The tutorial material will be targeted 
> at coding theorists that are interested in using Sage for their teaching and 
> research. 
> This is following up on the development we have done during project ACTIS for 
> Sage.If you are interested, please register your name at the above page.Note 
> that we might be able to fund a few Sage developers.Best,Daniel AugotDavid 
> LucasJohan S. R. NielsenClément Pernet
>
>

-- 
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] copying MixedIntegerLinearProgram problem

2016-05-13 Thread 'Martin R' via sage-devel
remove_constraint takes as input the index of the constraint to be 
removed!  It is unlikely, that add_constraint(variable==0) creates an 
indexed constraint, but perhaps I am mistaken.

Am Freitag, 13. Mai 2016 15:25:17 UTC+2 schrieb Dima Pasechnik:
>
> On Friday, May 13, 2016 at 9:53:13 AM UTC+1, Martin R wrote:
>>
>>
>> Yes, and then?  I don't think I can remove it again, can I?  
>>
>>>
>>> sage: p.remove_constraint?
>>> Docstring:
>>>Removes a constraint from self.
>>>
>>> I do not thing that this works, because a constraint may (and often will 
>> be) subsumed by other constraints already there. 
>>
>
> It either works, or else please do a bug report...
> If you added a redundant constraint, its removal should have no effect, 
> isn't it? 
>
>

-- 
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: Finding the right place to edit code

2016-05-13 Thread saad khalid
Thanks for the help everyone. I've got it submitted here, hopefully I 
followed the procedure properly

http://trac.sagemath.org/ticket/20595#comment:3

-- 
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: Finding the right place to edit code

2016-05-13 Thread saad khalid
Thanks for the help everyone. I've got it submitted here, hopefully I 
followed the procedure properly

http://trac.sagemath.org/ticket/20595#comment:3

Also, sorry for this basic question but, when documenting a function, what 
is the purpose of starting it with r""" ? Is this some python convention 
I'm unaware of? What does it signify exactly? 

-- 
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] copying MixedIntegerLinearProgram problem

2016-05-13 Thread Dima Pasechnik


On Friday, May 13, 2016 at 3:16:28 PM UTC+1, Martin R wrote:
>
> remove_constraint takes as input the index of the constraint to be 
> removed!  It is unlikely, that add_constraint(variable==0) creates an 
> indexed constraint, but perhaps I am mistaken.
>

all the constraints are indexed, surely.
p.number_of_constraints() is the total number.
You can in fact see what happens at the backend:
p.get_backend().nrows() is the number of constraints as  known to the 
backend, and
p.remove_constraint() simply calls the corresponding backend function.

Somewhat naively, I'd just check that p.number_of_constraints() goes up
(p.number_of_constraints() calls backend's nrows()), and then remove
the constraint number p.remove_constraint()-1

(that is, assuming the backend does not do reordering of them, which is 
hopefully the case)

On the other hand, this all will be very slow, unless you do a warm 
restart, i.e. you are able to save the state
of the solver before you add the constraint.
And indeed, how do you know that p.solve() will do the warm restart?
Do you mean to say that formerly you had this happening to you, now it does 
not work?

Anyhow, I have a problem understanding the code in the original sample 
does. Doesn't an exception in the loop throws you out of the loop?
And what the objective function? Would it be more efficient to minimise 
assignment[box, colour] rather than set it to 0 and try the feasibility(?) 
problem?
If it's indeed a feasibility problem that you are solving, then you could 
simply solve for the minimisation of  assignment[box, colour], and
if this assignment is 0, then the constraint is OK, otherwise it is not...

Dima



> Am Freitag, 13. Mai 2016 15:25:17 UTC+2 schrieb Dima Pasechnik:
>>
>> On Friday, May 13, 2016 at 9:53:13 AM UTC+1, Martin R wrote:
>>>
>>>
>>> Yes, and then?  I don't think I can remove it again, can I?  
>>>

 sage: p.remove_constraint?
 Docstring:
Removes a constraint from self.

 I do not thing that this works, because a constraint may (and often 
>>> will be) subsumed by other constraints already there. 
>>>
>>
>> It either works, or else please do a bug report...
>> If you added a redundant constraint, its removal should have no effect, 
>> isn't it? 
>>
>>

-- 
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: Finding the right place to edit code

2016-05-13 Thread saad khalid
When I try running the doctest, here is the error I am getting:

saad@saad-ThinkPad-X201:~/sage$ ./sage -t src/sage/interfaces/maxima_lib.py
no stored timings available
Running doctests with ID 2016-05-13-11-54-59-7d842524.
Git branch: t/20595/setting_besselexpand_to_true_globally
Using --optional=mpir,python2,sage
Doctesting 1 file.
Traceback (most recent call last):
  File "/home/saad/sage/src/bin/sage-runtests", line 89, in 
err = DC.run()
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py", 
line 1044, in run
self.run_doctests()
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py", 
line 761, in run_doctests
self.dispatcher = DocTestDispatcher(self)
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", 
line 1376, in __init__
init_sage()
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", 
line 125, in init_sage
from sympy.printing.pretty.stringpict import stringPict
ImportError: No module named sympy.printing.pretty.stringpict


What exactly is the issue here? 

-- 
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: Finding the right place to edit code

2016-05-13 Thread David Roe
Google for python raw strings. The main difference is how they treat
backslashes.
On May 13, 2016 09:34, "saad khalid"  wrote:

> Thanks for the help everyone. I've got it submitted here, hopefully I
> followed the procedure properly
>
> http://trac.sagemath.org/ticket/20595#comment:3
>
> Also, sorry for this basic question but, when documenting a function, what
> is the purpose of starting it with r""" ? Is this some python convention
> I'm unaware of? What does it signify exactly?
>
> --
> 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.
>

-- 
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: Finding the right place to edit code

2016-05-13 Thread John H Palmieri
Right. In particular, if you have LaTeX code in your docstring, it should 
start with r""". For example, if the docstring starts with """ instead of 
r""", then '\to' will end up being converted to TAB (\t in a plain Python 
string is a tab) followed by 'o'.

  John


On Friday, May 13, 2016 at 11:29:15 AM UTC-7, David Roe wrote:
>
> Google for python raw strings. The main difference is how they treat 
> backslashes. 
> On May 13, 2016 09:34, "saad khalid" > 
> wrote:
>
>> Thanks for the help everyone. I've got it submitted here, hopefully I 
>> followed the procedure properly
>>
>> http://trac.sagemath.org/ticket/20595#comment:3
>>
>> Also, sorry for this basic question but, when documenting a function, 
>> what is the purpose of starting it with r""" ? Is this some python 
>> convention I'm unaware of? What does it signify exactly? 
>>
>> -- 
>> 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+...@googlegroups.com .
>> To post to this group, send email to sage-...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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: Finding the right place to edit code

2016-05-13 Thread saad khalid
Ohhh, I see. Thanks! Unfortunately, I'm still unable to run the doctests on 
the file. I'm getting the same error as I mentioned above, and the error 
doesn't seem to have anything to do with the file itself. Am I inputting 
the command incorrectly? 

-- 
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: Finding the right place to edit code

2016-05-13 Thread Dima Pasechnik
it might be the easiest to put your branch somewhere (on trac git server, 
or github) so that it can be viewed and tested

On Friday, May 13, 2016 at 8:02:48 PM UTC+1, saad khalid wrote:
>
> Ohhh, I see. Thanks! Unfortunately, I'm still unable to run the doctests 
> on the file. I'm getting the same error as I mentioned above, and the error 
> doesn't seem to have anything to do with the file itself. Am I inputting 
> the command incorrectly? 
>

-- 
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: Finding the right place to edit code

2016-05-13 Thread saad khalid
I believe that I pushed my branch to the trac server on here?
http://trac.sagemath.org/ticket/20595#comment:3

Or is that not the same as pushing my branch? Regardless, I've also put it 
here under the develop branch:
https://github.com/Babyll/sage/tree/develop
Thanks!


-- 
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: Finding the right place to edit code

2016-05-13 Thread saad khalid
I believe that I pushed my branch to the trac server on here?
http://trac.sagemath.org/ticket/20595#comment:3

Or is that not the same as pushing my branch? Regardless, I've also put it 
here under the develop branch(which I believe is the same as the branch 
trac made for the ticket):
https://github.com/Babyll/sage/tree/develop
Thanks!

-- 
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: Finding the right place to edit code

2016-05-13 Thread saad khalid
Another note, this is happening on my master branch as well, which is just 
an uneditted version of sage 7.1. I try running the command:
./sage-t src/sage/interfaces/maxima_lib.py

and it tells me this:


saad@saad-ThinkPad-X201:~/sage$ ./sage -t src/sage/interfaces/maxima_lib.py
no stored timings available
Running doctests with ID 2016-05-13-18-07-30-d52339e0.
Git branch: master
Using --optional=mpir,python2,sage
Doctesting 1 file.
Traceback (most recent call last):
  File "/home/saad/sage/src/bin/sage-runtests", line 88, in 
err = DC.run()
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py", 
line 1044, in run
self.run_doctests()
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py", 
line 761, in run_doctests
self.dispatcher = DocTestDispatcher(self)
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", 
line 1376, in __init__
init_sage()
  File 
"/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", 
line 125, in init_sage
from sympy.printing.pretty.stringpict import stringPict
ImportError: No module named sympy.printing.pretty.stringpict



-- 
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: Finding the right place to edit code

2016-05-13 Thread Arpit Merchant
Hi,

I'm new to Sage too, but I faced this exact same error on a different file 
recently. Basically, my understanding is that sometimes Sage is unable to 
use a package that is installed on the local system and is not available 
within its directory. 
Check the following path (or equivalent) in your sage directory: 
local/lib/python2.7/site-packages/
If this does not have a sympy folder, the python used by Sage does not have 
sympy (and can't use the one that may be installed on your system) which is 
why it gives that error. In that case, try the following:
1. Download sympy  
and unzip.
2. Go inside directory and install using sage - "sage --python setup.py 
install"
This worked for me. 

Best,
Arpit.


On Saturday, 14 May 2016 04:40:11 UTC+5:30, saad khalid wrote:
>
> Another note, this is happening on my master branch as well, which is just 
> an uneditted version of sage 7.1. I try running the command:
> ./sage-t src/sage/interfaces/maxima_lib.py
>
> and it tells me this:
>
>
> saad@saad-ThinkPad-X201:~/sage$ ./sage -t src/sage/interfaces/maxima_lib.
> py
> no stored timings available
> Running doctests with ID 2016-05-13-18-07-30-d52339e0.
> Git branch: master
> Using --optional=mpir,python2,sage
> Doctesting 1 file.
> Traceback (most recent call last):
>   File "/home/saad/sage/src/bin/sage-runtests", line 88, in 
> err = DC.run()
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py"
> , line 1044, in run
> self.run_doctests()
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/control.py"
> , line 761, in run_doctests
> self.dispatcher = DocTestDispatcher(self)
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
> , line 1376, in __init__
> init_sage()
>   File 
> "/home/saad/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py"
> , line 125, in init_sage
> from sympy.printing.pretty.stringpict import stringPict
> ImportError: No module named sympy.printing.pretty.stringpict
>
>
>
>

-- 
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: Sage runs in Window's 10's new Unix subsystem

2016-05-13 Thread Ralf Stephan
On Friday, May 13, 2016 at 1:45:52 PM UTC+2, Erik Bray wrote:
>
>
> http://arstechnica.com/information-technology/2016/04/why-microsoft-needed-to-make-windows-run-linux-software/
>  
>
> My point is that it is not being supported, at least initially, for 
> deployment either in servers or for end users.


Quote from the article:
"WSL also doesn't include X Windows or any other graphical subsystem; it's 
strictly for command-line applications only."

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