Comments (9)
I'm using python 2.7 btw
Original comment by [email protected]
on 2 Jun 2011 at 7:27
from gmpy.
Unfortunately, I don't have a Mac so I can't recreate the issue.
What version of GMP did you use?
Can you attach the output of the test results?
Does the discussion in this thread provide any clues?
http://code.activestate.com/lists/python-list/180526/
casevh
p.s. Are there any specific changes/improvements/additions I can make that will
help Sympy? I'm working on gmpy2 and I'm willing to make more aggressive
changes on that version since it isn't stable yet.
Original comment by casevh
on 3 Jun 2011 at 1:12
- Changed state: Accepted
from gmpy.
Regarding changes that would help SymPy, you should ask Mateusz Paprocki. He's
the one who has written most of the code in SymPy that uses gmpy.
Original comment by [email protected]
on 3 Jun 2011 at 1:48
from gmpy.
I have GMP5.02 installed, but I'm not sure. Is there a function which tells me
which version is installed and currently in use ?
I have attached the test results.
Original comment by [email protected]
on 3 Jun 2011 at 8:53
Attachments:
- [Terminal Saved Output.txt](https://storage.googleapis.com/google-code-attachments/gmpy/issue-47/comment-4/Terminal Saved Output.txt)
from gmpy.
Yes, IT was GMP5.02, I deleted libgmp.a and some related files from
/usr/local/lib/ and reinstalled gmp using macports. It installed GMP%.01.
Still, 44 test failures.
Original comment by [email protected]
on 3 Jun 2011 at 9:13
from gmpy.
This is just a guess, but I think there may be a 32 vs. 64-bit version
mismatch. I'm not sure how to verify that on a Mac. To compile GMP, you may
need to use eithe -m32 or -m64 so that it matches Python. For performance
reasons, I recommend 64-bit versions of both.
Original comment by casevh
on 3 Jun 2011 at 1:21
from gmpy.
Could you tell me what is the best way to install GMP ?
I would also need to uninstall GMP first.
Original comment by [email protected]
on 13 Jun 2011 at 9:09
from gmpy.
You may want to read some of the comments on issue 11. That issue dealt with
gmpy2 but the issue is probable the same. By default, python runs as a 32-bit
application on OSX but GMP compiles as a 64-bit library. To compile GMP as a
32-bit library, you need to pass ABI=32 to configure (not -m32 as I said
earlier). Or you can let GMP install as a 64-bit library, and force python to
run as a 64-bit application. The following command is from issue 11.
$# defaults write com.apple.versioner.python Prefer-32-Bit -bool no
Note: the -Ddir=<path> option is not available in gmpy 1.14. If setup.py can't
find GMP automatically, use the following:
python setup.py -build_ext -I<path>/include -L<path>/lib -R<path>/lib
Original comment by casevh
on 14 Jun 2011 at 1:00
from gmpy.
See issue 11 for build instructions for OSX. Let me know if that doesn't work
for you.
Original comment by casevh
on 17 Jul 2011 at 6:22
- Changed state: Fixed
from gmpy.
Related Issues (20)
- bit_count() not found HOT 3
- Build failure on CPython 3.13 (dev)
- test failures with mpfr 4.2.1 (change in MPFR formatted functions) HOT 31
- New version? 🤔 HOT 15
- 2.1.5: test suite fails with errors `invalid option: '+SKIP_MPC_LESS_THAN_110'` HOT 9
- 2.1.5: *.h and *.pxd files are installed HOT 5
- Is the `is_strong_bpsw_prp` code correct? HOT 2
- Assessment of the difficulty in porting CPU architecture for the gmpy
- Description of `is_euler_prp` HOT 1
- mpz object missing to_bytes() method HOT 4
- complex conjugate crash HOT 2
- Linux wheels in the latest release (2.2.0a1) are broken HOT 10
- What is the paper that `is_extra_strong_lucas_prp` is referring to? HOT 4
- About the case where `k=0` is input to `lucasu_mod` and `lucasv_mod` HOT 2
- gmpy-2.1.5 fails to compile with python-3.12 HOT 10
- cython C-API is broken in published wheels (and in the build_wheels.yml CI workflow) HOT 9
- Pip install build fails, can't find mpc.h HOT 6
- Deprecate local_context()? HOT 18
- Impending release of gmpy2 2.2.0a2 HOT 10
- Issue with large factorial HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmpy.