[sage-support] Re: sage -optional bug?

2009-04-29 Thread simon . king

Hi David,

On Apr 29, 2:42 pm, David Joyner  wrote:
> sage: len(optional_packages()[int(1)])
> 41
>
>  or
>
> sage: len(flatten(list(optional_packages(
> 41
>
> is the right command (should int(1) really be needed?).

I would do:
  sage: L=optional_packages()
  sage: len(L[0])+len(L[1])
  41
since L[0] comprises the installed and L[1] the not-yet-installed
packages.

Cheers,
 Simon

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage -optional bug?

2009-04-29 Thread David Joyner

On Wed, Apr 29, 2009 at 8:17 AM,   wrote:
>
> Hi David,
>
> On Apr 29, 2:01 pm, mabshoff  dortmund.de> wrote:

...
>> [Errno 13] Permission denied: '/usr/lib/sagemath/tmp/list'
>
> Well, you need write permission to install optional spkgs. The error
> message is less than elegant in this case.
>

Thanks Michael.
Yes. I forgot I ran this from the global/apt-get sage install rather
than the local one.



>> > I'm looking for an easy way to determine the exact number of standard
>> > packages and optional packages for this talk I'm giving in RI in 2 days.
>>
>> Well, just look into spkg/[optional|experimental] to see what is
>> installed.
>
> Or try
> sage: optional_packages()
> sage: experimental_packages()
> sage: standard_packages()

Thanks Simon.

I want

len(optional_packages()[1])

but I get an error. It seems

sage: len(optional_packages()[int(1)])
41

 or

sage: len(flatten(list(optional_packages(
41

is the right command (should int(1) really be needed?).

sage: len(flatten(list(standard_packages(
91

For completeness:

sage: len(flatten(list(experimental_packages(
59




>
> I don't know, however, if you run into the same permission issues.
>
> Cheers,
>     Simon
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage -optional bug?

2009-04-29 Thread simon . king

Hi David,

On Apr 29, 2:01 pm, mabshoff  wrote:
> On Apr 29, 4:46 am, David Joyner  wrote:
> > I'm looking for an easy way to determine the exact number of standard
> > packages and optional packages for this talk I'm giving in RI in 2 days.
>
> Well, just look into spkg/[optional|experimental] to see what is
> installed.

Or try
sage: optional_packages()
sage: experimental_packages()
sage: standard_packages()

I don't know, however, if you run into the same permission issues.

Cheers,
 Simon

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage -optional bug?

2009-04-29 Thread mabshoff



On Apr 29, 4:46 am, David Joyner  wrote:
> Hi:
>
> sage -help says:
>
> ...
>   -optional     -- list all optional packages that can be downloaded
> ...
>
> But then I get this
>
> w...@hera:~/texfiles/quotes$ sage -optional
> Using SAGE 
> Serverhttp://www.sagemath.org//packageshttp://www.sagemath.org//packages/optional/list-->
>  /usr/lib/sagemath/tmp/list
> [Errno 13] Permission denied: '/usr/lib/sagemath/tmp/list'

Well, you need write permission to install optional spkgs. The error
message is less than elegant in this case.

> Doing the suggested export and rerunning the command doesn't help.
> Is this a bug?

Maybe - there is already a ticket to fix this.

> I'm looking for an easy way to determine the exact number of standard
> packages and optional packages for this talk I'm giving in RI in 2 days.

Well, just look into spkg/[optional|experimental] to see what is
installed.

> - David Joyner

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---