ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 28 Nov 2013 14:19:44 +0100Load .sage file into sage with VirtualBox Windows 8https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/Hello there
I have problems to load a sage file into VirtualBox using Shared Folder. I have created a shared folder with volume name Newfolder and it's in /media/sf_Newfolder with files dghv.sage from https://github.com/coron/fhe inside of it. I tried to follow http://wiki.sagemath.org/SageAppliance with attach command but it showed error. In the github it said to load the sage file, so i use cd command cd /root/media/sf_Newfolder and load "dghv.sage" but it doesn't work and syntax error in it.
Can you help me?
ThanksSun, 17 Nov 2013 15:14:04 +0100https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/Answer by drewpleasant007 for <p>Hello there</p>
<p>I have problems to load a sage file into VirtualBox using Shared Folder. I have created a shared folder with volume name Newfolder and it's in /media/sf_Newfolder with files dghv.sage from <a href="https://github.com/coron/fhe">https://github.com/coron/fhe</a> inside of it. I tried to follow <a href="http://wiki.sagemath.org/SageAppliance">http://wiki.sagemath.org/SageAppliance</a> with attach command but it showed error. In the github it said to load the sage file, so i use cd command cd /root/media/sf_Newfolder and load "dghv.sage" but it doesn't work and syntax error in it.</p>
<p>Can you help me?</p>
<p>Thanks</p>
https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?answer=15736#post-id-15736remove spamThu, 28 Nov 2013 14:19:44 +0100https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?answer=15736#post-id-15736Answer by ppurka for <p>Hello there</p>
<p>I have problems to load a sage file into VirtualBox using Shared Folder. I have created a shared folder with volume name Newfolder and it's in /media/sf_Newfolder with files dghv.sage from <a href="https://github.com/coron/fhe">https://github.com/coron/fhe</a> inside of it. I tried to follow <a href="http://wiki.sagemath.org/SageAppliance">http://wiki.sagemath.org/SageAppliance</a> with attach command but it showed error. In the github it said to load the sage file, so i use cd command cd /root/media/sf_Newfolder and load "dghv.sage" but it doesn't work and syntax error in it.</p>
<p>Can you help me?</p>
<p>Thanks</p>
https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?answer=15599#post-id-15599`attach` is broken in the notebook. See https://github.com/sagemath/sagenb/issues/169
You can try load as
load('/path/to/sage_file.sage')
If it fails, then there is probably some syntax error in your program, and not in load!Sun, 17 Nov 2013 21:35:37 +0100https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?answer=15599#post-id-15599Answer by ihsanhaikalz for <p>Hello there</p>
<p>I have problems to load a sage file into VirtualBox using Shared Folder. I have created a shared folder with volume name Newfolder and it's in /media/sf_Newfolder with files dghv.sage from <a href="https://github.com/coron/fhe">https://github.com/coron/fhe</a> inside of it. I tried to follow <a href="http://wiki.sagemath.org/SageAppliance">http://wiki.sagemath.org/SageAppliance</a> with attach command but it showed error. In the github it said to load the sage file, so i use cd command cd /root/media/sf_Newfolder and load "dghv.sage" but it doesn't work and syntax error in it.</p>
<p>Can you help me?</p>
<p>Thanks</p>
https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?answer=15713#post-id-15713Thank you for the answer.
I've try using load('/media/sf_Newfolder/dghv.sage') with ' and without ' but still syntax problem. When i try cd to the folder then later i use load(dghv.sage) it said that nameerror, name is not defined. Is there something wrong? Do you have any option for me to run this program?
ThanksWed, 20 Nov 2013 15:05:47 +0100https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?answer=15713#post-id-15713Comment by ihsanhaikalz for <p>Thank you for the answer.</p>
<p>I've try using load('/media/sf_Newfolder/dghv.sage') with ' and without ' but still syntax problem. When i try cd to the folder then later i use load(dghv.sage) it said that nameerror, name is not defined. Is there something wrong? Do you have any option for me to run this program?</p>
<p>Thanks</p>
https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?comment=16663#post-id-16663thank you for your answer, i think i can't open the file since the program only can run sagemath but not other application so i can't copy the content into the notebook.Thu, 21 Nov 2013 16:00:40 +0100https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?comment=16663#post-id-16663Comment by ppurka for <p>Thank you for the answer.</p>
<p>I've try using load('/media/sf_Newfolder/dghv.sage') with ' and without ' but still syntax problem. When i try cd to the folder then later i use load(dghv.sage) it said that nameerror, name is not defined. Is there something wrong? Do you have any option for me to run this program?</p>
<p>Thanks</p>
https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?comment=16670#post-id-16670sounds like some problem with your file, and not with load(). load() shouldn't lead to nameerror.
Can you copy paste the contents of your file into a cell in the notebook? Does it run?Wed, 20 Nov 2013 19:14:20 +0100https://ask.sagemath.org/question/10745/load-sage-file-into-sage-with-virtualbox-windows-8/?comment=16670#post-id-16670