Ask Your Question
1

How to import "preparser"?

asked 2016-05-16 21:58:02 +0100

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-05-17 00:12:21 +0100

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
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: 2016-05-16 21:58:02 +0100

Seen: 424 times

Last updated: May 17 '16