Ask Your Question

Revision history [back]

Import error

Hello everyone,

I'm new to Sagemath and just got a standard subscription for the Sagemath cloud. Whenever I'm trying to import functions from another .sagws file I get the Error "ImportError: No module named mymod".

To be more specific, I created a project containing a file mymod.sagews where I defined a function and I get the ImportError when running a file main.sagews from within the same project, where I call the function defined in mymod. I'm using the command "from mymod import * ".

Can anyone help?

Greetings

Fuzzy

click to hide/show revision 2
None

Import error

Hello everyone,

I'm new to Sagemath and just got a standard subscription for the Sagemath cloud. Whenever I'm trying to import functions from another .sagws file I get the Error "ImportError: No module named mymod".

To be more specific, I created a project containing a file mymod.sagews where I defined a function and I get the ImportError when running a file main.sagews from within the same project, where I call the function defined in mymod. I'm using the command "from mymod import * ".

Can anyone help?

Greetings

Fuzzy