Re: [sage-support] Re: Stange behavior with QQbar[z]

2016-11-07 Thread Vincent Delecroix
Concerning representation of algebraic numbers, it is printed as an
exact rational if and only if it is stored as an exact rational. It
will be if the method exactify has been called on the underlying
representation of the number. Here is a simple example that shows the
difference

sage: a = QQbar(2).sqrt() + QQbar(3).sqrt()
sage: b = a**2 - 2*QQbar(6).sqrt()

sage: b
5.000?
sage: type(b._descr)# b is an formal sum


sage: b == 5   # calls exactify
True
sage: b# now prints as 5...
5
sage: type(b._descr)   # because it *is* an exact rational



Vincent

On 7 November 2016 at 17:28, Nils Bruin  wrote:
> On Monday, November 7, 2016 at 5:59:14 AM UTC-8, tdumont wrote:
>>
>>
>> okay. Now let us construct a polynomial from l:
>> sage: print sum([l[i]*z^i for i in range(0,len(l))])
>> (-0.4022786138875136? + 0.?e-18*I)*z + 1
>>   ^
>>Why? an imaginary part?
>>--
>
> There are polynomials for which this doesn't happen. It would be better to
> include enough information to reproduce your observations.
>
> The representation you see is a float approximation to the algebraic number.
> You can approximate real numbers quite well with complex numbers with
> non-zero imaginary part.
>
> sage: P.=QQbar[]
> sage: u=[u for u in (x^3+x+1).roots(multiplicities=false) if u.imag()==0][0]
> sage: u
> -0.6823278038280193?
> sage: v=(u*QQbar.zeta(8))^4; v
> -0.2167565719512513? + 0.?e-18*I
> sage: v.imag() == 0
> True
> sage: v._exact_value()
> a^4 where a^12 + 2*a^8 + 5*a^4 + 1 = 0 and a in 0.4824786170789168? -
> 0.4824786170789168?*I
> sage: v.simplify()
> sage: v
> -0.2167565719512513?
> sage: v._exact_value()
> a^2 - a where a^3 + a - 1 = 0 and a in 0.6823278038280193?
> sage: v.minpoly()
> x^3 + 2*x^2 + 5*x + 1
> sage: v.minpoly().roots(QQbar)
> [(-0.2167565719512513?, 1),
>  (-0.891621714024375? - 1.954093392512700?*I, 1),
>  (-0.891621714024375? + 1.954093392512700?*I, 1)]
>
> (I have seen cases where "simplify" didn't do the trick, but recomputing the
> algebraic number by taking the roots of the minimal polynomial did)
>
> --
> 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.

-- 
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] Unable to launch SageMath 7.4 on macOS Sierra (10.12.1)

2016-11-07 Thread quark67000
I have downloaded *sage-7.4-OSX_10.11.6-x86_64.app.dmg* (I'm under macOS 
10.12.1), and installed the app on the Applications folder. But when I 
launch it, on Terminal, it display this :

$ '/Applications/SageMath-7.4.app/Contents/Resources/sage/sage' 
--notebook=sagenb

 
Rewriting paths for your new installation directory
===
   
This might take a few minutes but only has to be done once.
   
patching 
/Applications/SageMath-7.4.app/Contents/Resources/sage/src/build/cython_debug/cython_debug_info_sage.groups.old
 
*(...)*
 
patching 
/Applications/SageMath-7.4.app/Contents/Resources/sage/src/build/cythonized/sage/graphs/base/c_graph.c
┌┐
│ SageMath version 7.4, Release Date: 2016-10-18 │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘
Please wait while the old SageNB Notebook server starts...

0   signals.so  0x00010ebc84e5 print_backtrace 
+ 37

Unhandled SIGILL: An illegal instruction occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.

Illegal instruction: 4

I have also tried *sage-7.4-OSX_10.11.6-x86_64.dmg*, and when I choose Open 
(with right-clic) on the sage executable on the folder SageMath (installed 
in Applications folder), the Terminal display this :

$ /Applications/SageMath/sage ; exit;
 
Rewriting paths for your new installation directory
===
   
This might take a few minutes but only has to be done once.
 
patching /Applications/SageMath/local/bin/testlp3
 
*(...)*
 
patching 
/Applications/SageMath/src/build/cythonized/sage/libs/gmp/rational_reconstruction.c
┌┐
│ SageMath version 7.4, Release Date: 2016-10-18 │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘

0   signals.so  0x000102b864e5 print_backtrace 
+ 37

Unhandled SIGILL: An illegal instruction occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.

Illegal instruction: 4
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

I don't have tried SageMath before. Is SageMath incompatible with macOS 
Sierra? What can I do to run SageMath on my Mac under macOS 10.12.1 Sierra? 
Thanks.

I have verified that the md5 of the download file is the same as displayed 
on the download page.

-- 
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] How could I import igraph or python-igraph in the python bundled with sage?

2016-11-07 Thread Dima Pasechnik


On Monday, November 7, 2016 at 2:12:14 PM UTC, Eden Harder wrote:
>
> Thanks for you reply. I know import igraph works in sage. But I have 
> installed two different packages: igraph and python_igraph. And what I want 
> to do is import them in python.
>

python-igraph is a python interface to igraph, which seems to be a library 
written in C.
IMHO you cannot use igraph from python without using python-igraph (the 
latter is known to python simply as igraph)---or perhaps some other python 
interface, which might even be conflicting with python-igraph...

In short, I'd think that 'import igraph' is all you need to use igraph from 
python.

By the way, if you first install python-igraph by doing
sage --pip install python-igraph

and then do
sage --pip install igraph

you will see a lot of "Requirement already satisfied:", and nothing else 
which seems to say that igraph is a part of python-igraph.



HTH,
Dima



 

>
> 在 2016年11月7日星期一 UTC+1下午2:29:58,Jeroen Demeyer写道:
>>
>> On 2016-11-07 13:52, Eden Harder wrote: 
>> > I installed sagemath with hombrew on MacOS. And later I use `sage -i 
>> > python_igraph` to install python_igraph. After that, I found that 
>> > 
>> > 1. I cannot import python_igraph in sage 
>>
>> The correct command is: 
>>
>> import igraph 
>>
>

-- 
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] Re: Help! Simple graphs gone wrong?!?

2016-11-07 Thread Nils Bruin


On Monday, November 7, 2016 at 6:51:34 AM UTC-8, Math Student wrote:
>
> I attempted to graph two functions by typing the following:
>
> plot(e^x,(x,-2,5))
> plot(1/(x*(x-1)*(x-2)),(x,-2,5))
>
> I seem to be running into three big problems.
> 1. The graph is so far zoomed out on the y axis as to be unusable
> 2. Only the second function will be displayed (as far as I can tell anyway)
> 3. There are no grid lines (to help identify specific points on the lines, 
> etc.)
>
> Maybe Sage isn't intended to be used this way, but if there is a 
> workaround, it would be appreciated. 
>
> Thanks!
>
> P.S. I attached a screen capture of what I did in sage next to what I am 
> trying to replicate.
>

1. Sage can't guess the appropriate range for the y-axis. You have to 
specify it. Otherwise it will just take a box that contains all/most 
values, which is way too large if there are poles.
2. you have to "add" plots together to have them display in the same figure
3. there is probably an option for it. Try "plot?" and take it from there.

for 1+2, you can use:

(plot(e^x,(x,-2,5))+plot(1/(x*(x-1)*(x-2)),(x,-2,5),color="red",detect_poles=True)).show(ymin=-7,ymax=10)

-- 
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] Re: Stange behavior with QQbar[z]

2016-11-07 Thread Nils Bruin
On Monday, November 7, 2016 at 5:59:14 AM UTC-8, tdumont wrote:
>
>
> okay. Now let us construct a polynomial from l: 
> sage: print sum([l[i]*z^i for i in range(0,len(l))]) 
> (-0.4022786138875136? + 0.?e-18*I)*z + 1 
>   ^ 
>Why? an imaginary part? 
>-- 
>
There are polynomials for which this doesn't happen. It would be better to 
include enough information to reproduce your observations.

The representation you see is a float approximation to the algebraic 
number. You can approximate real numbers quite well with complex numbers 
with non-zero imaginary part.

sage: P.=QQbar[]
sage: u=[u for u in (x^3+x+1).roots(multiplicities=false) if u.imag()==0][0]
sage: u
-0.6823278038280193?
sage: v=(u*QQbar.zeta(8))^4; v
-0.2167565719512513? + 0.?e-18*I
sage: v.imag() == 0
True
sage: v._exact_value()
a^4 where a^12 + 2*a^8 + 5*a^4 + 1 = 0 and a in 0.4824786170789168? - 
0.4824786170789168?*I
sage: v.simplify()
sage: v
-0.2167565719512513?
sage: v._exact_value()
a^2 - a where a^3 + a - 1 = 0 and a in 0.6823278038280193?
sage: v.minpoly()
x^3 + 2*x^2 + 5*x + 1
sage: v.minpoly().roots(QQbar)
[(-0.2167565719512513?, 1),
 (-0.891621714024375? - 1.954093392512700?*I, 1),
 (-0.891621714024375? + 1.954093392512700?*I, 1)]

(I have seen cases where "simplify" didn't do the trick, but recomputing 
the algebraic number by taking the roots of the minimal polynomial did)

-- 
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] How could I import igraph or python-igraph in the python bundled with sage?

2016-11-07 Thread Eden Harder
Thanks for you reply. I know import igraph works in sage. But I have 
installed two different packages: igraph and python_igraph. And what I want 
to do is import them in python.

在 2016年11月7日星期一 UTC+1下午2:29:58,Jeroen Demeyer写道:
>
> On 2016-11-07 13:52, Eden Harder wrote: 
> > I installed sagemath with hombrew on MacOS. And later I use `sage -i 
> > python_igraph` to install python_igraph. After that, I found that 
> > 
> > 1. I cannot import python_igraph in sage 
>
> The correct command is: 
>
> import igraph 
>

-- 
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] Stange behavior with QQbar[z]

2016-11-07 Thread Thierry Dumont
Something strange (at least for me).

I am computing with polynomials in QQbar[z]. So I do:

sage: P.=QQbar[]

And I define 2 polynomials N and D. Coefficients of N and D are all
real, algebraic numbers (say like  QQbar(sqrt(3))) and I consider the
rational fraction R=N/D

sage: R.parent()
Fraction Field of Univariate Polynomial Ring in z over Algebraic Field

Now, I want to look at R on the imaginary axis. I do (may be this is not
a good idea):

sage: PP.=QQbar[]
sage: RIaxe=R(z=QQbar(I)*x)
sage: RIaxe.parent()
Fraction Field of Univariate Polynomial Ring in x over Algebraic Field

it seems ok.

I take the numerator:
sage: pp=RIaxe.numerator()
sage: print pp
0.05638275005921478?*I*x^3 - 0.4022786138875136?*x^2 - 1/2*I*x + 1

okay.

sage: pp.parent()
Univariate Polynomial Ring in x over Algebraic Field

okay.

-
Now starts my problem; I want to extract from pp the polynomial which
has real coefficients:
sage: l=[s for s in pp.coefficients() if s.imag()==0]
sage: print l
[1, -0.4022786138875136?]

okay. Now let us construct a polynomial from l:
sage: print sum([l[i]*z^i for i in range(0,len(l))])
(-0.4022786138875136? + 0.?e-18*I)*z + 1
  ^
   Why? an imaginary part?
   --

Now if I use the radical_expression method:

sage: l=[QQbar(pp.coefficients()[i].radical_expression())*x^i for i in
range(0,pp.degree()+1) if pp.coefficients()[i].imag()==0]
sage: -0.4022786138875136?*x^2 + 1

which is ok, (but... a bit slow).

Why ?

Yours,
t.

-- 
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] How could I import igraph or python-igraph in the python bundled with sage?

2016-11-07 Thread Jeroen Demeyer

On 2016-11-07 13:52, Eden Harder wrote:

I installed sagemath with hombrew on MacOS. And later I use `sage -i
python_igraph` to install python_igraph. After that, I found that

1. I cannot import python_igraph in sage


The correct command is:

import igraph

--
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] Re: How could I import igraph or python-igraph in the python bundled with sage?

2016-11-07 Thread Eden Harder
That is, I installed sagemath with the command: brew cask install sage

Homeberw cask  can manage MacOS applications. 
I think there is no difference with installing sage in another way.

-- 
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] Re: How could I import igraph or python-igraph in the python bundled with sage?

2016-11-07 Thread Dima Pasechnik


On Monday, November 7, 2016 at 12:54:12 PM UTC, Eden Harder wrote:
>
> I installed sagemath with hombrew on MacOS. And later I use `sage -i 
> python_igraph` to install python_igraph. After that, I found that
>
> 1. I cannot import python_igraph in sage
> 2. I cannot import both igraph and python_igraph in the python bundled 
> with sage
>
> I a newbie to sage, I want to know how to solve this problems, any reply 
> will be appreciated.
>

sagemath with homebrew?! How?

This seems to be something new... 

-- 
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] Re: SSL module not available

2016-11-07 Thread Eden Harder
There is some errors when I install pyopenssl

eden:~ Eden$ sage -i pyopenssl

/Library/Developer/CommandLineTools/usr/bin/make build/make/Makefile

make[1]: `build/make/Makefile' is up to date.

build/bin/sage-logger \

"cd build/make && ./install 'all-toolchain'" logs/install.log

*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***

Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.sSTWvhcHlD/Render

HOME=/Users/Eden

LANG=en_US.UTF-8

LOGNAME=Eden

MAKE=make

MAKEFLAGS=

MAKELEVEL=1

MANPATH=/Users/Eden/.nvm/versions/node/v4.1.1/share/man:/Users/Eden/.cabal/share/man:/usr/share/man:/usr/local/share/man:/Library/Developer/CommandLineTools/usr/share/man

MFLAGS=

NVM_BIN=/Users/Eden/.nvm/versions/node/v4.1.1/bin

NVM_CD_FLAGS=

NVM_DIR=/Users/Eden/.nvm

NVM_IOJS_ORG_MIRROR=https://iojs.org/dist

NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist

NVM_PATH=/Users/Eden/.nvm/versions/node/v4.1.1/lib/node

PATH=/Applications/SageMath-7.4.app/Contents/Resources/sage/build/bin:/Applications/SageMath-7.4.app/Contents/Resources/sage/src/bin:/Applications/SageMath-7.4.app/Contents/Resources/sage/local/bin:/Users/Eden/.nvm/versions/node/v4.1.1/bin:/Users/Eden/.cabal/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

PWD=/Applications/SageMath-7.4.app/Contents/Resources/sage/build/make

PYTHONPATH=/Applications/SageMath-7.4.app/Contents/Resources/sage/local

SAGE_EXTCODE=/Applications/SageMath-7.4.app/Contents/Resources/sage/local/share/sage/ext

SAGE_LOCAL=/Applications/SageMath-7.4.app/Contents/Resources/sage/local

SAGE_LOGS=/Applications/SageMath-7.4.app/Contents/Resources/sage/logs/pkgs

SAGE_ORIG_PATH=/Users/Eden/.nvm/versions/node/v4.1.1/bin:/Users/Eden/.cabal/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

SAGE_ORIG_PATH_SET=True

SAGE_ROOT=/Applications/SageMath-7.4.app/Contents/Resources/sage

SAGE_SHARE=/Applications/SageMath-7.4.app/Contents/Resources/sage/local/share

SAGE_SPKG_INST=/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed

SAGE_SRC=/Applications/SageMath-7.4.app/Contents/Resources/sage/src

SAGE_VERSION=7.4

SHELL=/bin/bash

SHLVL=5

SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8KPRZOK9hq/Listeners

TERM=xterm-256color

TERM_PROGRAM=Apple_Terminal

TERM_PROGRAM_VERSION=361.1

TERM_SESSION_ID=76996F3D-68D2-4974-80A9-0D671234B318

TMPDIR=/var/folders/1n/kzz_j7g519d482trw8xfx4xhgn/T/

USER=Eden

XPC_FLAGS=0x0

XPC_SERVICE_NAME=0

_=/usr/bin/env

__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0

***

make base

make[2]: Nothing to be done for `base'.

env SAGE_BUILD_TOOLCHAIN=yes make toolchain

make[2]: Nothing to be done for `toolchain'.

make toolchain-deps

make 
/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/zlib-1.2.8.p0

make[3]: 
`/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/zlib-1.2.8.p0'
 
is up to date.

make 
/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/mpir-2.7.2

make[3]: 
`/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/mpir-2.7.2'
 
is up to date.

make 
/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/mpfr-3.1.4

make[3]: 
`/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/mpfr-3.1.4'
 
is up to date.

make 
/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/mpc-1.0.3.p0

make[3]: 
`/Applications/SageMath-7.4.app/Contents/Resources/sage/local/var/lib/sage/installed/mpc-1.0.3.p0'
 
is up to date.


real 0m0.128s

user 0m0.092s

sys 0m0.028s

Sage build/upgrade complete!


/Library/Developer/CommandLineTools/usr/bin/make build/make/Makefile

make[1]: `build/make/Makefile' is up to date.

build/bin/sage-logger \

"cd build/make && ./install 'pyopenssl'" logs/install.log

*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***

Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.sSTWvhcHlD/Render

HOME=/Users/Eden

LANG=en_US.UTF-8

LOGNAME=Eden

MAKE=make

MAKEFLAGS=SAGE_SPKG=sage-spkg\ 

MAKELEVEL=1

MAKEOVERRIDES=${-*-command-variables-*-}

MANPATH=/Users/Eden/.nvm/versions/node/v4.1.1/share/man:/Users/Eden/.cabal/share/man:/usr/share/man:/usr/local/share/man:/Library/Developer/CommandLineTools/usr/share/man

MFLAGS=

NVM_BIN=/Users/Eden/.nvm/versions/node/v4.1.1/bin

NVM_CD_FLAGS=

NVM_DIR=/Users/Eden/.nvm

NVM_IOJS_ORG_MIRROR=https://iojs.org/dist

NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist

NVM_PATH=/Users/Eden/.nvm/versions/node/v4.1.1/lib/node

PATH=/Applications/SageMath-7.4.app/Contents/Resources/sage/build/bin:/Applications/SageMath-7.4.app/Contents/Resources/sage/src/bin:/Applications/SageMath-7.4.app/Contents/Resources/sage/local/bin:/Users/Eden/.nvm/versions/node/v4.1.1/bin:/Users/Eden/.cabal/bin:/usr/bin:/bin:/usr/sbin:/sbi

[sage-support] How could I import igraph or python-igraph in the python bundled with sage?

2016-11-07 Thread Eden Harder
I installed sagemath with hombrew on MacOS. And later I use `sage -i 
python_igraph` to install python_igraph. After that, I found that

1. I cannot import python_igraph in sage
2. I cannot import both igraph and python_igraph in the python bundled with 
sage

I a newbie to sage, I want to know how to solve this problems, any reply 
will be appreciated.

-- 
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] Re: sagemath-dev ppa

2016-11-07 Thread HG
Didn't work ?
I go back to sage-7.3 till sage-7.5
Thanks for your time.
regards
Henri
Removing previous version of src/doc/en/reference/manifolds
Removing previous version of src/doc/en/reference/tensor_free_modules
Removing previous version of src/sage/manifolds
Removing previous version of src/sage/tensor/modules
Unpacking...
src/doc/en/reference/manifolds/conf.py
src/doc/en/reference/manifolds/chart.rst
src/doc/en/reference/manifolds/continuous_map.rst
src/doc/en/reference/manifolds/diff_form.rst
src/doc/en/reference/manifolds/diff_manifold.rst
src/doc/en/reference/manifolds/diff_map.rst
src/doc/en/reference/manifolds/diff_scalarfield.rst
src/doc/en/reference/manifolds/index.rst
src/doc/en/reference/manifolds/manifold.rst
src/doc/en/reference/manifolds/riem_manifold.rst
src/doc/en/reference/manifolds/scalarfield.rst
src/doc/en/reference/manifolds/tangent_space.rst
src/doc/en/reference/manifolds/tensorfield.rst
src/doc/en/reference/manifolds/vectorfield.rst
src/doc/en/reference/tensor_free_modules/conf.py
src/doc/en/reference/tensor_free_modules/alt_forms.rst
src/doc/en/reference/tensor_free_modules/index.rst
src/doc/en/reference/tensor_free_modules/morphisms.rst
src/doc/en/reference/tensor_free_modules/tensors.rst
src/sage/manifolds/all.py
src/sage/manifolds/chart.py
src/sage/manifolds/continuous_map.py
src/sage/manifolds/coord_func.py
src/sage/manifolds/coord_func_symb.py
src/sage/manifolds/__init__.py
src/sage/manifolds/manifold_homset.py
src/sage/manifolds/manifold.py
src/sage/manifolds/point.py
src/sage/manifolds/scalarfield_algebra.py
src/sage/manifolds/scalarfield.py
src/sage/manifolds/structure.py
src/sage/manifolds/subset.py
src/sage/manifolds/utilities.py
src/sage/manifolds/differentiable/affine_connection.py
src/sage/manifolds/differentiable/automorphismfield_group.py
src/sage/manifolds/differentiable/automorphismfield.py
src/sage/manifolds/differentiable/chart.py
src/sage/manifolds/differentiable/curve.py
src/sage/manifolds/differentiable/diff_form_module.py
src/sage/manifolds/differentiable/diff_form.py
src/sage/manifolds/differentiable/diff_map.py
src/sage/manifolds/differentiable/__init__.py
src/sage/manifolds/differentiable/levi_civita_connection.py
src/sage/manifolds/differentiable/manifold_homset.py
src/sage/manifolds/differentiable/manifold.py
src/sage/manifolds/differentiable/metric.py
src/sage/manifolds/differentiable/real_line.py
src/sage/manifolds/differentiable/scalarfield_algebra.py
src/sage/manifolds/differentiable/scalarfield.py
src/sage/manifolds/differentiable/tangent_space.py
src/sage/manifolds/differentiable/tangent_vector.py
src/sage/manifolds/differentiable/tensorfield_module.py
src/sage/manifolds/differentiable/tensorfield_paral.py
src/sage/manifolds/differentiable/tensorfield.py
src/sage/manifolds/differentiable/vectorfield_module.py
src/sage/manifolds/differentiable/vectorfield.py
src/sage/manifolds/differentiable/vectorframe.py
src/sage/tensor/modules/all.py
src/sage/tensor/modules/comp.py
src/sage/tensor/modules/ext_pow_free_module.py
src/sage/tensor/modules/finite_rank_free_module.py
src/sage/tensor/modules/format_utilities.py
src/sage/tensor/modules/free_module_alt_form.py
src/sage/tensor/modules/free_module_automorphism.py
src/sage/tensor/modules/free_module_basis.py
src/sage/tensor/modules/free_module_homset.py
src/sage/tensor/modules/free_module_linear_group.py
src/sage/tensor/modules/free_module_morphism.py
src/sage/tensor/modules/free_module_tensor.py
src/sage/tensor/modules/__init__.py
src/sage/tensor/modules/tensor_free_module.py
src/sage/tensor/modules/tensor_with_indices.py

Running ./sage -b to re-build Sage.
(cd .\
 && export SAGE_ROOT=/doesnotexist\
   SAGE_SRC=/doesnotexist\
   SAGE_SRC_ROOT=/doesnotexist\
   SAGE_DOC_SRC=/doesnotexist\
   SAGE_SCRIPTS_DIR=/doesnotexist\
   SAGE_BUILD_DIR=/doesnotexist\
   SAGE_PKGS=/usr/lib/sagemath//build/pkgs\
   SAGE_CYTHONIZED=/usr/lib/sagemath//src/build/cythonized\
 && python -u setup.py build install)
The directory '/home/pi/.cache/pip/http' or its parent directory is not 
owned by the current user and the cache has been disabled. Please check the 
permissions and owner of that directory. If executing pip with sudo, you 
may want sudo's -H flag.
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
make[1] : on entre dans le répertoire « /usr/lib/sagemath/src »
make[1]: generate_py_source.mk : Aucun fichier ou dossier de ce type
make[1]: *** Aucune règle pour fabriquer la cible 
« generate_py_source.mk ». Arrêt.
make[1] : on quitte le répertoire « /usr/lib/sagemath/src »

Traceback (most recent call last):
  File "setup.py",

[sage-support] Re: Problems compiling fflas_fpack-2.2.2 in sage 7.4

2016-11-07 Thread Dima Pasechnik


On Monday, November 7, 2016 at 10:36:47 AM UTC, Florian Hanisch wrote:
>
> Thanks a lot. That seems to work ! Sage 7.4 was compiled without problems 
> (at least as far as I can see now) during the weekend.
>
> Taking a look at fflas_ffpack-2.2.2.log, it seems that error posted in my 
> initial question still occurs but no longer interrupts the installation 
> process. Anyway, the log-file confirms at the end that the package was 
> successfully installed.
>

it could be that the log was not cleaned, and so you see the previous 
attempts there, as well, with the later attempts appended at the end.


> On Friday, November 4, 2016 at 7:05:06 PM UTC+1, Dima Pasechnik wrote:
>>
>> You might try forcing buildung the gcc supplied by Sage.Set 
>> SAGE_INSTALL_GCC=yes
>> and rerun make.
>
>

-- 
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] Re: Problems compiling fflas_fpack-2.2.2 in sage 7.4

2016-11-07 Thread 'Florian Hanisch' via sage-support
Thanks a lot. That seems to work ! Sage 7.4 was compiled without problems 
(at least as far as I can see now) during the weekend.

Taking a look at fflas_ffpack-2.2.2.log, it seems that error posted in my 
initial question still occurs but no longer interrupts the installation 
process. Anyway, the log-file confirms at the end that the package was 
successfully installed.

On Friday, November 4, 2016 at 7:05:06 PM UTC+1, Dima Pasechnik wrote:
>
> You might try forcing buildung the gcc supplied by Sage.Set 
> SAGE_INSTALL_GCC=yes
> and rerun make.

-- 
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] Re: Sage Crash Report

2016-11-07 Thread Afonso Henriques Silva Leite
Ok, sorry for my poor message. I installed libgfortran and that solved the 
problem. Thanks.

Em domingo, 6 de novembro de 2016 12:01:34 UTC-3, Afonso Henriques Silva 
Leite escreveu:
>
> Please, I need some help here!
>

-- 
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] sagemath-dev ppa

2016-11-07 Thread Jan Groenewald
Hi

The missing file is a relatively new file:
https://git.sagemath.org/sage.git/commit/?id=8ccd4404feb6a610bc0b2f816ae74f38178d065d

I had not noticed the new file, and did not include it in
sagemath-upstream-binary-full. (Also Makefile.in and README.txt).
I've now added that to our debian install file, and other fixes (new files,
and some incorrect locations for docs)
https://bitbucket.org/aims_za/sagemath-upstream-binary/commits/67798a7f75cd92f03b17d9c0250c25ea6a656e74

You might be able to fetch two files, Makefile.in and generate_py_source.mk
here:
https://github.com/sagemath/sage/tree/master/src
and save them in your $SAGE_ROOT/ (/usr/lib/sagemath)
and try again. The exact versions from the 7.4 binary (for 14.04) are
attached.

(I'll only be updating the PPA with 7.5 due to the CPU bug
https://trac.sagemath.org/ticket/21772
but thanks for spotting this)

Regards,
Jan








On 7 November 2016 at 09:51, Henri Girard  wrote:

> pi@pc:/usr/lib/sagemath$ export LC_ALL=C
> pi@pc:/usr/lib/sagemath$ sudo bash sm-install.sh
>
> Downloading the sources of SageManifolds 0.9.1...
> --2016-11-07 08:50:08--  http://sagemanifolds.obspm.fr/
> spkg/manifolds-0.9.1.tar.gz
> Resolving sagemanifolds.obspm.fr (sagemanifolds.obspm.fr)...
> 145.238.179.10
> Connecting to sagemanifolds.obspm.fr 
> (sagemanifolds.obspm.fr)|145.238.179.10|:80...
> connected.
> HTTP request sent, awaiting response... 304 Not Modified
>
> File 'manifolds-0.9.1.tar.gz' not modified on server. Omitting download.
>
> Removing previous version of src/doc/en/reference/manifolds
> Removing previous version of src/doc/en/reference/tensor_free_modules
> Removing previous version of src/sage/manifolds
> Removing previous version of src/sage/tensor/modules
> Unpacking...
> src/doc/en/reference/manifolds/conf.py
> src/doc/en/reference/manifolds/chart.rst
> src/doc/en/reference/manifolds/continuous_map.rst
> src/doc/en/reference/manifolds/diff_form.rst
> src/doc/en/reference/manifolds/diff_manifold.rst
> src/doc/en/reference/manifolds/diff_map.rst
> src/doc/en/reference/manifolds/diff_scalarfield.rst
> src/doc/en/reference/manifolds/index.rst
> src/doc/en/reference/manifolds/manifold.rst
> src/doc/en/reference/manifolds/riem_manifold.rst
> src/doc/en/reference/manifolds/scalarfield.rst
> src/doc/en/reference/manifolds/tangent_space.rst
> src/doc/en/reference/manifolds/tensorfield.rst
> src/doc/en/reference/manifolds/vectorfield.rst
> src/doc/en/reference/tensor_free_modules/conf.py
> src/doc/en/reference/tensor_free_modules/alt_forms.rst
> src/doc/en/reference/tensor_free_modules/index.rst
> src/doc/en/reference/tensor_free_modules/morphisms.rst
> src/doc/en/reference/tensor_free_modules/tensors.rst
> src/sage/manifolds/all.py
> src/sage/manifolds/chart.py
> src/sage/manifolds/continuous_map.py
> src/sage/manifolds/coord_func.py
> src/sage/manifolds/coord_func_symb.py
> src/sage/manifolds/__init__.py
> src/sage/manifolds/manifold_homset.py
> src/sage/manifolds/manifold.py
> src/sage/manifolds/point.py
> src/sage/manifolds/scalarfield_algebra.py
> src/sage/manifolds/scalarfield.py
> src/sage/manifolds/structure.py
> src/sage/manifolds/subset.py
> src/sage/manifolds/utilities.py
> src/sage/manifolds/differentiable/affine_connection.py
> src/sage/manifolds/differentiable/automorphismfield_group.py
> src/sage/manifolds/differentiable/automorphismfield.py
> src/sage/manifolds/differentiable/chart.py
> src/sage/manifolds/differentiable/curve.py
> src/sage/manifolds/differentiable/diff_form_module.py
> src/sage/manifolds/differentiable/diff_form.py
> src/sage/manifolds/differentiable/diff_map.py
> src/sage/manifolds/differentiable/__init__.py
> src/sage/manifolds/differentiable/levi_civita_connection.py
> src/sage/manifolds/differentiable/manifold_homset.py
> src/sage/manifolds/differentiable/manifold.py
> src/sage/manifolds/differentiable/metric.py
> src/sage/manifolds/differentiable/real_line.py
> src/sage/manifolds/differentiable/scalarfield_algebra.py
> src/sage/manifolds/differentiable/scalarfield.py
> src/sage/manifolds/differentiable/tangent_space.py
> src/sage/manifolds/differentiable/tangent_vector.py
> src/sage/manifolds/differentiable/tensorfield_module.py
> src/sage/manifolds/differentiable/tensorfield_paral.py
> src/sage/manifolds/differentiable/tensorfield.py
> src/sage/manifolds/differentiable/vectorfield_module.py
> src/sage/manifolds/differentiable/vectorfield.py
> src/sage/manifolds/differentiable/vectorframe.py
> src/sage/tensor/modules/all.py
> src/sage/tensor/modules/comp.py
> src/sage/tensor/modules/ext_pow_free_module.py
> src/sage/tensor/modules/finite_rank_free_module.py
> src/sage/tensor/modules/format_utilities.py
> src/sage/tensor/modules/free_module_alt_form.py
> src/sage/tensor/modules/free_module_automorphism.py
> src/sage/tensor/modules/free_module_basis.py
> src/sage/tensor/modules/free_module_homset.py
> src/sage/tensor/modules/free_module_linear_group.py
> src/sage/tensor/modules/free_module_morphism.py
> src/sage/tensor/modul