Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error, please help #4

Open
riemannium opened this issue Nov 14, 2016 · 3 comments
Open

Error, please help #4

riemannium opened this issue Nov 14, 2016 · 3 comments

Comments

@riemannium
Copy link

I am just learning SAGE,...I plan to use for my current Master Thesis and the future...SAGE Manifolds and the jupyter notebook for Kerr metric produces both in my computer and online the following error:


AttributeError Traceback (most recent call last)
in ()
----> 1 g = M.lorentzian_metric('g')

/projects/sage/sage-7.3/src/sage/structure/parent.pyx in sage.structure.parent.Parent.getattr (/projects/sage/sage-7.3/src/build/cythonized/sage/structure/parent.c:8222)()
853 return attr
854 except TypeError:
--> 855 attr = getattr_from_other_class(self, self._category.parent_class, name)
856 self.__cached_methods = {name:attr}
857 return attr

/projects/sage/sage-7.3/src/sage/structure/misc.pyx in sage.structure.misc.getattr_from_other_class (/projects/sage/sage-7.3/src/build/cythonized/sage/structure/misc.c:1772)()
251 dummy_error_message.cls = type(self)
252 dummy_error_message.name = name
--> 253 raise dummy_attribute_error
254 try:
255 attribute = getattr(cls, name)

AttributeError: 'DifferentiableManifold_with_category' object has no attribute 'lorentzian_metric'

PLEASE, ... Help me! I am in love with SAGE, and SAGEmanifolds, but I need to power use it yet!!!!

@egourgoulhon
Copy link
Collaborator

Hi,

Le 14/11/2016 à 01:22, riemannium a écrit :

I am just learning SAGE,...I plan to use for my current Master Thesis
and the future...SAGE Manifolds and the jupyter notebook for Kerr
metric produces both in my computer and online the following error:


AttributeError: 'DifferentiableManifold_with_category' object has no
attribute 'lorentzian_metric'

It looks like if you are using the very limited version of SageManifolds
which is shipped with SageMath 7.3. No tensor calculus is implemented in
this version. You have to install the full SageManifolds atop of it,
following these instructions:
http://sagemanifolds.obspm.fr/download.html
On the SageMathCloud, simply select the kernel "SageMath 7.4" in the
"Change kernel" menu.

Best wishes,

Eric.

PLEASE, ... Help me! I am in love with SAGE, and SAGEmanifolds, but I
need to power use it yet!!!!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AA98Jd1IzJQWswnjCycVuMKxPyd_Uxzxks5q96mwgaJpZM4Kw2vn.

Eric Gourgoulhon
Laboratoire Univers et Theories (LUTH)
UMR 8102 du CNRS / Observatoire de Paris / Universite Paris Diderot
5 place Jules Janssen, 92190 Meudon, France
tel: +33 1 45 07 74 33 (secretariat : +33 1 45 07 77 77)
http://luth.obspm.fr/~luthier/gourgoulhon/

@riemannium
Copy link
Author

I have algo the same problem in the notebook online. I am new into SAGE, but following this thread, not completely unrelated:
1)The Jupyter nb, does it use my local installation to compute the stuff? Same errors on it.
2) I can not get the formulae I programme (e.g., hypersphere volume) into "pdf-latex" or graphical form on the teminal...Is it possible or should I use the notebook?
3) I am aiming to compute Kerr orbits with SAGE, just like some stuff I saw on Wolframalpha or Gyotoy, and to relate E, L and C (energy, momentum along z axis, Carter constant) with astronomical variables and, in the future, to compute gravitational wave radiation from those...
Thank you in advance for the quick response!!!!!!

@riemannium
Copy link
Author

I followed the installed instructions on my machine, but I see yet SAGE 7.3, and I get something like this...
sage: Manifold(2, 'M')
File "", line 17
sage: Manifold(Integer(2), 'M')
^
IndentationError: unexpected indent

If you want to paste code into IPython, try the %paste and %cpaste magic functions.
sage: M = Manifold(4, 'M', r'\mathcal{M}')
sage: %display latex
sage: M = Manifold(4, 'M', r'\mathcal{M}')
sage: \frac{a}{b}
File "", line 1
* BackslashOperator() * frac{a}{b}
^
IndentationError: unexpected indent

If you want to paste code into IPython, try the %paste and %cpaste magic functions.
sage:
Something wrong with my Ipython maybe? I am puzzled...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants