Ask Your Question
1

Load .sage file into sage with VirtualBox Windows 8

asked 11 years ago

ihsanhaikalz gravatar image

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?

Thanks

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

ppurka gravatar image

attachis broken in the notebook. See https://github.com/sagemath/sagenb/is...

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!

Preview: (hide)
link
0

answered 11 years ago

updated 11 years ago

ppurka gravatar image

remove spam

Preview: (hide)
link
0

answered 11 years ago

ihsanhaikalz gravatar image

Thank 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?

Thanks

Preview: (hide)
link

Comments

sounds 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?

ppurka gravatar imageppurka ( 11 years ago )

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

ihsanhaikalz gravatar imageihsanhaikalz ( 11 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 1,252 times

Last updated: Nov 29 '13