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.Tue, 16 Jun 2020 16:34:27 +0200importing hyperbolic geometry moduleshttps://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/ hi everyone,
when I type (in SageMath 9.0 Notebook) "from sage.geometry.hyperbolic_space.hyperbolic_point import * ", I get a long answer with bottom line "ImportError: cannot import name complex_number". Thinking it might fix it, I typed "from sage.rings.complex_number import* ", and got again "cannot import name complex_number". Does anyone know a way around this ?
thanks in advance
Daniel
Mon, 15 Jun 2020 09:51:05 +0200https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/Answer by Daniel Massart for <p>hi everyone,
when I type (in SageMath 9.0 Notebook) "from sage.geometry.hyperbolic_space.hyperbolic_point import * ", I get a long answer with bottom line "ImportError: cannot import name complex_number". Thinking it might fix it, I typed "from sage.rings.complex_number import* ", and got again "cannot import name complex_number". Does anyone know a way around this ?
thanks in advance
Daniel</p>
https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?answer=52008#post-id-52008ps I did install geometry and rings with sage -pip install package_name --user in the sage shell, then restarted Sage, then restarted my computer, and it still says "cannot import name complex_number". What gives ? Mon, 15 Jun 2020 11:01:07 +0200https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?answer=52008#post-id-52008Answer by tmonteil for <p>hi everyone,
when I type (in SageMath 9.0 Notebook) "from sage.geometry.hyperbolic_space.hyperbolic_point import * ", I get a long answer with bottom line "ImportError: cannot import name complex_number". Thinking it might fix it, I typed "from sage.rings.complex_number import* ", and got again "cannot import name complex_number". Does anyone know a way around this ?
thanks in advance
Daniel</p>
https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?answer=52010#post-id-52010This is not about an optional `pip` package, there is an issue with your Sage installation. How did you install it ? Could you please give us some informations so that someone can try to understand your problem:
- which version of Sage did you use ?
- which OS ?
- did you install Sage from the distro ?
- did you install Sage from the binaries, and which ones ?
- did you compile Sage yourself ?Mon, 15 Jun 2020 12:04:15 +0200https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?answer=52010#post-id-52010Comment by Daniel Massart for <p>This is not about an optional <code>pip</code> package, there is an issue with your Sage installation. How did you install it ? Could you please give us some informations so that someone can try to understand your problem: </p>
<ul>
<li>which version of Sage did you use ?</li>
<li>which OS ?</li>
<li>did you install Sage from the distro ?</li>
<li>did you install Sage from the binaries, and which ones ?</li>
<li>did you compile Sage yourself ?</li>
</ul>
https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?comment=52018#post-id-52018hi Thierry, and thanks a lot for your answer. I installed Sage 9.0 on Windows 10 in the dumbest possible way, by clicking "next" at every opportunity. I guess that answers your last three questions, although I'm not sure I fully understand them ? To install the surface_dynamics package I just used -pip install as suggested on V. Delecroix's web page, and it works just fine, so I thought something might be broken with the hyperbolic geometry package ?Mon, 15 Jun 2020 17:46:18 +0200https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?comment=52018#post-id-52018Comment by Daniel Massart for <p>This is not about an optional <code>pip</code> package, there is an issue with your Sage installation. How did you install it ? Could you please give us some informations so that someone can try to understand your problem: </p>
<ul>
<li>which version of Sage did you use ?</li>
<li>which OS ?</li>
<li>did you install Sage from the distro ?</li>
<li>did you install Sage from the binaries, and which ones ?</li>
<li>did you compile Sage yourself ?</li>
</ul>
https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?comment=52020#post-id-52020about binaries : I think I chose the latest one, SageMath-9.0-Installer-v0.6.0.exe
I do not remember having to compile anythingMon, 15 Jun 2020 18:46:25 +0200https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?comment=52020#post-id-52020Comment by Daniel Massart for <p>This is not about an optional <code>pip</code> package, there is an issue with your Sage installation. How did you install it ? Could you please give us some informations so that someone can try to understand your problem: </p>
<ul>
<li>which version of Sage did you use ?</li>
<li>which OS ?</li>
<li>did you install Sage from the distro ?</li>
<li>did you install Sage from the binaries, and which ones ?</li>
<li>did you compile Sage yourself ?</li>
</ul>
https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?comment=52043#post-id-52043update : it works in the Sage console, just not in the Jupyter notebook environment ???? wtf ?Tue, 16 Jun 2020 16:34:27 +0200https://ask.sagemath.org/question/52006/importing-hyperbolic-geometry-modules/?comment=52043#post-id-52043