Ask Your Question
1

importing hyperbolic geometry modules

asked 2020-06-15 09:51:05 +0200

Daniel Massart gravatar image

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2020-06-15 12:04:15 +0200

tmonteil gravatar image

This 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 ?
edit flag offensive delete link more

Comments

hi 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 ?

Daniel Massart gravatar imageDaniel Massart ( 2020-06-15 17:46:18 +0200 )edit

about binaries : I think I chose the latest one, SageMath-9.0-Installer-v0.6.0.exe I do not remember having to compile anything

Daniel Massart gravatar imageDaniel Massart ( 2020-06-15 18:46:25 +0200 )edit

update : it works in the Sage console, just not in the Jupyter notebook environment ???? wtf ?

Daniel Massart gravatar imageDaniel Massart ( 2020-06-16 16:34:27 +0200 )edit
0

answered 2020-06-15 11:01:07 +0200

Daniel Massart gravatar image

ps 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 ?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-06-15 09:51:05 +0200

Seen: 339 times

Last updated: Jun 15 '20