sagemanifolds / SageManifolds

Jupyter notebooks and documentation for SageManifolds
https://sagemanifolds.obspm.fr/
50 stars 9 forks source link

Error, please help #4

Open riemannium opened 8 years ago

riemannium commented 8 years ago

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 commented 8 years ago

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 https://github.com/sagemanifolds/SageManifolds/issues/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 commented 8 years ago

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 commented 8 years ago

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