Ask Your Question

Import error

asked 2017-03-12 23:48:45 +0200

fuzzy_logic gravatar image

updated 2017-03-13 01:38:18 +0200

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 15:07:17 +0200

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 15:43:17 +0200 )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 16:26:20 +0200 )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 20:17:59 +0200 )edit

answered 2017-03-25 16:55:47 +0200

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

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 23:48:45 +0200

Seen: 242 times

Last updated: Mar 25 '17