First time here? Check out the FAQ!

Ask Your Question
0

Import error

asked 8 years ago

fuzzy_logic gravatar image

updated 8 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 8 years ago

fuzzy_logic gravatar image

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

Preview: (hide)
link

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 ( 8 years ago )
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 ( 8 years ago )

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 ( 8 years ago )
0

answered 8 years ago

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.

Preview: (hide)
link

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: 8 years ago

Seen: 352 times

Last updated: Mar 25 '17