Ask Your Question

Revision history [back]

Problems with modules after installation

Hello everyone,

I have installed Sage on Ubuntu 16.04 from the pre-built tarball binary exactly as described in the installation guide but I am left with some newbie questions.

After browsing the web for several hours, I still cannot manage to get the module graphs up and running in the terminal. First I couldn't even import graphs, but after running sage --pip install graphs in terminal I can do

sage: import graphs

without ModuleNotFound error, but the command

sage: G = graphs.EmptyGraph()

leads to

AttributeError: module 'graphs' has no attribute 'EmptyGraph'

Moreover, I'd like to add a new package (sage drg by Janos Vidali, which I cannot link) but it remains unclear on how to do this. Where do I unpack the zip? How do I let Sage know where to find this package? Is this even possible if I didn't built from source?

click to hide/show revision 2
None

Problems with modules after installation

Hello everyone,

I have installed Sage on Ubuntu 16.04 from the pre-built tarball binary exactly as described in the installation guide but I am left with some newbie questions.

After browsing the web for several hours, I still cannot manage to get the module graphs up and running in the terminal. First I couldn't even import graphs, but after running sage --pip install graphs in terminal I can do

sage: import graphs

without ModuleNotFound error, but the command

sage: G = graphs.EmptyGraph()

leads to

AttributeError: module 'graphs' has no attribute 'EmptyGraph'

Moreover, I'd like to add a new package (sage drg (sage-drg by Janos Vidali, which I cannot link) but it remains unclear on how to do this. Where do I unpack the zip? How do I let Sage know where to find this package? Is this even possible if I didn't built from source?