Ask Your Question

Import error

asked 2017-03-12 17:48:45 -0500

fuzzy_logic gravatar image

updated 2017-03-12 19:38:18 -0500

kcrisman gravatar image

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?



edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2017-03-25 10:55:47 -0500

mforets gravatar image

Probably there is a problem in your workflow; try with load or attach, as explained in the Constructions manual. To use standard Python imports, you can use the sage preparser.

edit flag offensive delete link more

answered 2017-03-25 09:07:17 -0500

fuzzy_logic gravatar image

no one?? I still have this problem unfortunately and I do pay for the cloud service.

edit flag offensive delete link more


You should then ask directly the support for And this is not here.

FrédéricC gravatar imageFrédéricC ( 2017-03-25 09:43:17 -0500 )edit

I didn't mean to be rude, I was just surprised no one else had this problem appearantly. I'll adress the support then.

fuzzy_logic gravatar imagefuzzy_logic ( 2017-03-25 10:26:20 -0500 )edit

Yeah, sorry - we definitely didn't know this was a cloud question. My guess is that you didn't allocate some upgrades in exactly the right place by accident. Good luck!

kcrisman gravatar imagekcrisman ( 2017-03-25 14:17:59 -0500 )edit

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


Asked: 2017-03-12 17:48:45 -0500

Seen: 82 times

Last updated: Mar 25 '17