sage, can't run command at notebook

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)

I have some Python scripts and I need to run them under notebook.

I run the scripts in %Sage -python <scriptname>.py. It works fine If I run it under sage shell by execfile('/foo/bar.py'). It works fine as well

But if I run execfile('/foo/bar.py') in Sage Notebook, it complains about

...cannot open shared object file: No such file or directory

It appears to me that the notebook can't find the lib. Does Sage and SageNB uses a separate Library-path and Run-path?

asked Jul 19 '11

anonymous user

Anonymous

You'll have to give more information about what is in the bar.py as well as more of the error message. Mike Hansen (Jul 22 '11)
i like this answer (click again to cancel)
0
i dont like this answer (click again to cancel) ted has selected this answer as correct

execfile('/foo/bar.py') works for me. Check the path.

link

posted Jul 21 '11

Shashank gravatar image Shashank flag of United States
1580 7 22 56

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Jul 19 '11

Seen: 97 times

Last updated: Jul 21 '11

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.