[sage-support] Re: Installation Problems

2014-10-19 Thread Dima Pasechnik
On 2014-10-18, Edwin  wrote:
> I think part of the problem is that is has not saved to my downloads folder 
> I have no idea where it has saved itself to. So when I ls in Downloads I 
> get nothing.
I suppose it is in the settings of your web browser.

>
> On Saturday, October 18, 2014 9:10:33 PM UTC+1, Dima Pasechnik wrote:
>>
>> On 2014-10-18, Edwin > wrote: 
>> > I have had a couple of installation problems, as it said in the read me 
>> I 
>> > did not hesitate to post here. I am very new to Linux so probably my 
>> bad. I 
>> > run Linux Mint. 
>> > 
>> > I have downloaded Sage through the mirrorservice network, I opened the 
>> Lmza 
>> > or Tarball file and it said extracting 
>> > I then had a file appear - clicked on it - went on to the read me 
>> > Now when I tried ./sage or sudo  ./sage it returned:  bash: ./sage: 
>> No 
>> > such file or directory 
>>
>> you have to navigate to the appropriate directory using cd. 
>>
>> I don't know where to on your system tarfiles are extracted by the 
>> "extractor". 
>> Maybe into 
>> ~/Downloads 
>>
>> So should type 
>> cd ~/Downloads 
>> at the bash prompt, 
>> and then perhaps run ls command, i.e type 
>> ls 
>> at the bash prompt. 
>>
>> You'd see the .lmza file and a sage-* directory... 
>> do 
>> cd sage-*/ 
>> and then 
>> ./sage 
>>
>> HTH 
>>
>> > So I tried the next bit of the read me but trying : tar xvf sage-*.tar 
>> or 
>> > cd sage-*/ all returned No such file or directory. 
>> > 
>> > Any help would be appreciated 
>> > Edwin 
>> > 
>>
>>
>

-- 
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: Installation Problems

2014-10-19 Thread Dima Pasechnik
On 2014-10-19, Dima Pasechnik  wrote:
> On 2014-10-18, Edwin  wrote:
>> I think part of the problem is that is has not saved to my downloads folder 
>> I have no idea where it has saved itself to. So when I ls in Downloads I 
>> get nothing.
> I suppose it is in the settings of your web browser.

unless you used a bittorrent client and downloaded Sage fron a P2P network, 
then look at
the settings of the bt client...

>
>>
>> On Saturday, October 18, 2014 9:10:33 PM UTC+1, Dima Pasechnik wrote:
>>>
>>> On 2014-10-18, Edwin > wrote: 
>>> > I have had a couple of installation problems, as it said in the read me 
>>> I 
>>> > did not hesitate to post here. I am very new to Linux so probably my 
>>> bad. I 
>>> > run Linux Mint. 
>>> > 
>>> > I have downloaded Sage through the mirrorservice network, I opened the 
>>> Lmza 
>>> > or Tarball file and it said extracting 
>>> > I then had a file appear - clicked on it - went on to the read me 
>>> > Now when I tried ./sage or sudo  ./sage it returned:  bash: ./sage: 
>>> No 
>>> > such file or directory 
>>>
>>> you have to navigate to the appropriate directory using cd. 
>>>
>>> I don't know where to on your system tarfiles are extracted by the 
>>> "extractor". 
>>> Maybe into 
>>> ~/Downloads 
>>>
>>> So should type 
>>> cd ~/Downloads 
>>> at the bash prompt, 
>>> and then perhaps run ls command, i.e type 
>>> ls 
>>> at the bash prompt. 
>>>
>>> You'd see the .lmza file and a sage-* directory... 
>>> do 
>>> cd sage-*/ 
>>> and then 
>>> ./sage 
>>>
>>> HTH 
>>>
>>> > So I tried the next bit of the read me but trying : tar xvf sage-*.tar 
>>> or 
>>> > cd sage-*/ all returned No such file or directory. 
>>> > 
>>> > Any help would be appreciated 
>>> > Edwin 
>>> > 
>>>
>>>
>>
>

-- 
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 handle file in Sage

2014-10-19 Thread Santanu Sarkar
I have a text file abc.txt in Desktop where  I have written  A=[1,2,3,4].
Is it possible
to call this array A from Sage notebook?

When I write the following in notebook,

 A1 = load("/Desktop/abc.txt")

getting

Traceback (most recent call last):
  File "", line 1, in 
  File "_sage_input_49.py", line 10, in 
exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("QTEgPSBsb2FkKCIvRGVza3RvcC9hYmMudHh0Iik="),globals())+"\\n");
execfile(os.path.abspath("___code___.py"))
  File "", line 1, in 

  File "/tmp/tmpgD_ocu/___code___.py", line 2, in 
exec compile(u'A1 = load("/Desktop/abc.txt")
  File "", line 1, in 

  File "sage_object.pyx", line 862, in sage.structure.sage_object.load
(sage/structure/sage_object.c:9317)
IOError: [Errno 2] No such file or directory: '/Desktop/abc.txt.sobj'

-- 
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: How to handle file in Sage

2014-10-19 Thread Dominique Laurain
Try "relative path" in load argument: try A1 = load("./Desktop/abc.txt")   
with a dot just fefore first slash

PS : I don't use load() but import or preparse in my SAGE cells, for Python 
souce

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