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.Wed, 17 Jun 2015 19:08:12 +0200manifold not definedhttps://ask.sagemath.org/question/27119/manifold-not-defined/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?Tue, 16 Jun 2015 18:27:56 +0200https://ask.sagemath.org/question/27119/manifold-not-defined/Answer by tmonteil for <p>I installed sage manifold using the command </p>
<p><strong>sudo bash sm-install.sh</strong></p>
<p>And python using the commands </p>
<p><strong>sudo add-apt-repository ppa:fkrull/deadsnakes</strong></p>
<p><strong>sudo apt-get update</strong></p>
<p><strong>sudo apt-get install python2.7</strong></p>
<p>Then checked using </p>
<p><strong>Manifold(2, 'M')</strong></p>
<p>But it shows </p>
<p><strong>name 'Manifold' is not defined</strong></p>
<p>What is the problem?</p>
https://ask.sagemath.org/question/27119/manifold-not-defined/?answer=27120#post-id-27120SageManifolds 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`
Tue, 16 Jun 2015 18:37:07 +0200https://ask.sagemath.org/question/27119/manifold-not-defined/?answer=27120#post-id-27120Comment by naveen for <p>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:</p>
<ul>
<li>install Sage</li>
<li>put <code>sm-install.sh</code> script within the root directory of your Sage installation</li>
<li>run <code>bash sm-install.sh</code></li>
</ul>
https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27121#post-id-27121Thank 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**Tue, 16 Jun 2015 19:07:57 +0200https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27121#post-id-27121Comment by tmonteil for <p>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:</p>
<ul>
<li>install Sage</li>
<li>put <code>sm-install.sh</code> script within the root directory of your Sage installation</li>
<li>run <code>bash sm-install.sh</code></li>
</ul>
https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27125#post-id-27125How did you install Sage ? Can you start Sage ? If you go to the `/usr/lib/sagemath` directory, whant does the `./sage` command give ?Tue, 16 Jun 2015 21:16:59 +0200https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27125#post-id-27125Comment by naveen for <p>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:</p>
<ul>
<li>install Sage</li>
<li>put <code>sm-install.sh</code> script within the root directory of your Sage installation</li>
<li>run <code>bash sm-install.sh</code></li>
</ul>
https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27128#post-id-27128**SageMath Version 6.7, Release Date: 2015-05-17**
**Type "notebook()" for the browser-based notebook interface.**
**Type "help()" for help.**
**sage:**Wed, 17 Jun 2015 10:40:10 +0200https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27128#post-id-27128Comment by tmonteil for <p>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:</p>
<ul>
<li>install Sage</li>
<li>put <code>sm-install.sh</code> script within the root directory of your Sage installation</li>
<li>run <code>bash sm-install.sh</code></li>
</ul>
https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27146#post-id-27146This looks good. So, then, when you type `Manifold(2, 'M')` you get an error while you run the `sm-install.sh` script ?Wed, 17 Jun 2015 19:08:12 +0200https://ask.sagemath.org/question/27119/manifold-not-defined/?comment=27146#post-id-27146