Ask Your Question

Problem installing package

asked 2018-07-27 23:04:23 +0200

NDaultryBall gravatar image

I am trying to download the database of reflexive 4d lattice polytopes using the command !sage -i polytopes_db_4d, but I get the error: make: * No rule to make target 'all-toolchain'. Stop.

Not sure what this means or how to get around it, so any help or explanation would be welcome. I am relatively new to SAGE so sorry if it is something obvious!

edit retag flag offensive close merge delete


Welcome to Ask Sage! Thank you for your question!

slelievre gravatar imageslelievre ( 2018-07-28 01:42:22 +0200 )edit

What is your operating system? How did you install Sage?

slelievre gravatar imageslelievre ( 2018-07-28 01:42:44 +0200 )edit

Is this Sage for Windows? If so, it doesn't support installing optional packages yet.

Iguananaut gravatar imageIguananaut ( 2018-07-30 12:14:02 +0200 )edit

Installation problems with this package are discussed at:

slelievre gravatar imageslelievre ( 2018-08-10 19:44:14 +0200 )edit

What is the version you are using recently?

pizza gravatar imagepizza ( 2018-08-11 16:43:23 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-03 17:07:13 +0200

slelievre gravatar image

updated 2018-11-04 11:39:46 +0200

This package is an "old-style spkg" package.

This means it cannot be installed using sage -i like "new-style spkg" packages.

The workaround is to install it with sage -p.

Quit Sage and in a terminal, run

$ sage -p polytopes_db_4d

This involves downloading the package which contains a huge (~8 GB) database, so it might take a while.

Once this is done, restart Sage and you can follow the SageMath documentation on using the palp_database of reflexive Hodge 4-polytopes:

sage: version()
'SageMath version 8.4, Release Date: 2018-10-17'

sage: from sage.geometry.polyhedron.palp_database import Reflexive4dHodge
sage: ref = Reflexive4dHodge(1, 101)
sage: next(iter(ref)).Vrepresentation()
(A vertex at (-1, -1, -1, -1),
 A vertex at (0, 0, 0, 1),
 A vertex at (0, 0, 1, 0),
 A vertex at (0, 1, 0, 0),
 A vertex at (1, 0, 0, 0))
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


Asked: 2018-07-27 23:04:23 +0200

Seen: 1,170 times

Last updated: Nov 04 '18