Ask Your Question

Sam Mattheus's profile - activity

2021-05-17 16:36:01 +0200 received badge  Scholar (source)
2021-01-11 18:40:37 +0200 received badge  Student (source)
2021-01-11 13:29:34 +0200 commented question Problems with modules after installation

Ah, that does seem to work, many thanks! I fiddled with the file to see if I can load the module automatically, but it seems that this command was already in there. So after executing this command once, now it seems to work every time upon restarting.

Eventually I also found the answer to my second question: apparently the relevant folder is the build/pkgs folder. After putting the files in, I can import whatever I need, using the same command.

2021-01-11 10:25:30 +0200 asked a question 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?