From: Francois Bissey <fbissey@slingshot.co.nz>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] [sage-on-gentoo] cannot build Sage because of Sympy-0.7.1
Date: Fri, 17 Aug 2012 21:28:09 +1200 [thread overview]
Message-ID: <1926913.15eeOS9VQ9@vrooom-vrooom> (raw)
In-Reply-To: <20120817122012.428ea26efbfa7cdab2423eb7@ukr.net>
On Fri, 17 Aug 2012 12:20:12 v_2e@ukr.net wrote:
> Hello!
>
> On Fri, 17 Aug 2012 09:32:18 +1200
>
> fbissey@slingshot.co.nz wrote:
> > OK wrong assumption from me by looking at the code. You have probably
> > enabled the gmp useflag in mpmath and now you have gmpy on your
> > system. I am now fairly
> > sure that gmpy is the cause of the problem.
> > Like sage gmpy can be autoloaded by mpmath but if both are present at
> > the same time you get the confusion that you have seen.
>
> Yes, the 'gmp' USE-flag is enabled for 'mpmath'.
>
> > As a quick check you can try: MPMATH_NOGMPY=1 emerge -1v sympy
> > that should work. Adding that variable to sage-env may help with
> > potential problems importing mpmath or sympy in sage but really
> > mpmath has to change their default behavior.
>
> So what do I have to do to have a working Sage? Do I have to rebuild
> 'mpmath' with the 'gmp' USE-flag disabled?
>
Best solution: rebuild mpmath without the gmp useflag and remove gmpy.
Rebuilding is not enough as the flag only insure that gmpy is installed.
mpmath autodetect gmpy's presence all by itself if it is present - gmp flag or
not.
If you don't want to do that you'll have to export MPMATH_NOGMPY=1
before using sage or emerging sympy or importing sympy or mpmath
from the python shell.
Francois
next prev parent reply other threads:[~2012-08-17 12:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-14 17:49 [gentoo-science] [sage-on-gentoo] cannot build Sage because of Sympy-0.7.1 v_2e
2012-08-14 21:31 ` fbissey
2012-08-14 23:02 ` v_2e
2012-08-15 1:32 ` fbissey
2012-08-15 10:32 ` v_2e
2012-08-15 10:36 ` Francois Bissey
2012-08-15 11:35 ` v_2e
2012-08-15 22:03 ` fbissey
2012-08-16 8:05 ` v_2e
2012-08-16 9:28 ` Francois Bissey
2012-08-16 15:10 ` v_2e
2012-08-16 21:32 ` fbissey
2012-08-17 9:20 ` v_2e
2012-08-17 9:28 ` Francois Bissey [this message]
2012-08-17 10:29 ` v_2e
2012-08-17 10:39 ` Francois Bissey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1926913.15eeOS9VQ9@vrooom-vrooom \
--to=fbissey@slingshot.co.nz \
--cc=gentoo-science@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox