Ask Your Question
0

manifold not defined

asked 2015-06-16 18:27:56 +0200

naveen gravatar image

I installed sage manifold using the command

sudo bash sm-install.sh

And python using the commands

sudo add-apt-repository ppa:fkrull/deadsnakes

sudo apt-get update

sudo apt-get install python2.7

Then checked using

Manifold(2, 'M')

But it shows

name 'Manifold' is not defined

What is the problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-06-16 18:37:07 +0200

tmonteil gravatar image

updated 2015-06-16 18:39:55 +0200

SageManifolds is not working with python 2.7 only, you should install it within Sage. Currently, Sage is shipping Python 2.7 by default, so the only things you have to do is:

  • install Sage
  • put sm-install.sh script within the root directory of your Sage installation
  • run bash sm-install.sh
edit flag offensive delete link more

Comments

Thank you for your answer. It shows

sys:1: RuntimeWarning: not adding '/usr/lib/sagemath/src/doc/common' to sys.path since its status cannot be determined

python: can't open file '/usr/lib/sagemath/src/doc/common/builder.py': [Errno 2] No such file or directory

sys:1: RuntimeWarning: not adding '/usr/lib/sagemath/src/doc/common' to sys.path since its status cannot be determined

python: can't open file '/usr/lib/sagemath/src/doc/common/builder.py': [Errno 2] No such file or directory

naveen gravatar imagenaveen ( 2015-06-16 19:07:57 +0200 )edit

How did you install Sage ? Can you start Sage ? If you go to the /usr/lib/sagemath directory, whant does the ./sage command give ?

tmonteil gravatar imagetmonteil ( 2015-06-16 21:16:59 +0200 )edit

SageMath Version 6.7, Release Date: 2015-05-17

Type "notebook()" for the browser-based notebook interface.

Type "help()" for help.

sage:

naveen gravatar imagenaveen ( 2015-06-17 10:40:10 +0200 )edit

This looks good. So, then, when you type Manifold(2, 'M') you get an error while you run the sm-install.sh script ?

tmonteil gravatar imagetmonteil ( 2015-06-17 19:08:12 +0200 )edit

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: 2015-06-16 18:27:56 +0200

Seen: 518 times

Last updated: Jun 16 '15