Ask Your Question
1

How to import "preparser"?

asked 8 years ago

done_with_fish gravatar image

I tried to compile a latex document today using sagetex and received the error

from sage.misc.preparser import preparse ImportError: No module named preparser

Any ideas how to fix this?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 8 years ago

tmonteil gravatar image

This import statement should be replaced with:

from sage.repl.preparse import preparse

This is the case in the latest version of sagetex. Let me suggest to update your version of sagetex by typing, from a terminal:

 sage -f sagetex
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: 443 times

Last updated: May 17 '16