Ask Your Question
0

Import error

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

fuzzy_logic gravatar image

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

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?

Greetings

Fuzzy

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2017-03-25 15:07:17 +0100

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

Comments

You should then ask directly the support for https://cloud.sagemath.com/. And this is not here.

FrédéricC gravatar imageFrédéricC ( 2017-03-25 15:43:17 +0100 )edit
1

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 +0100 )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 +0100 )edit
0

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

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

Stats

Asked: 2017-03-12 23:48:45 +0100

Seen: 294 times

Last updated: Mar 25 '17