andyvand / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

ImportError: /usr/local/lib/python2.7/site-packages/gmpy2.so: undefined symbol: mpc_mul_2exp #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download sources for gmpy2-2.0.0b1, gmp-5.0.5, mpfr-3.1.1, mpc-0.9 (i've 
also tried mpc-1.0.1)
2. follow instructions in "Detailed instructions" section at 
http://gmpy2.readthedocs.org/en/latest/intro.html#installing-gmpy2-on-unix-linux

What is the expected output? What do you see instead?
All compilations are ok in /opt/local and also each make check steps.
the command "sudo python7 setup.py build_ext -Ddir=/opt/local install" is ok 
too but when i'm trying to import gmpy2, here is the output :

Python 2.7.2 (default, Jan 29 2012, 18:31:52) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gmpy2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python2.7/site-packages/gmpy2.so: undefined symbol: 
mpc_mul_2exp

What version of the product are you using? On what operating system?
I'm on Linux Mint Isadora 32 bits :
>> cat /etc/linuxmint/info 
RELEASE=9
CODENAME=isadora
EDITION="Gnome 32-bit"
DESCRIPTION="Linux Mint 9 Isadora"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_isadora_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_isadora.php
USER_GUIDE_URL=http://ftp.heanet.ie/pub/linuxmint.com/stable/9/user-guide/englis
h.pdf
GRUB_TITLE=Linux Mint 9

sources used : gmpy2-2.0.0b1, gmp-5.0.5, mpfr-3.1.1, mpc-0.9

Please provide any additional information below.
i've seen some patch that rename mpc_mul_2exp to mpc_mul_ui in mpc-1.0.1 so 
i've decided to use mpc-0.9 but the problem is the same.

Hope you could help me fix this.

thanks in advance.

Original issue reported on code.google.com by gcu...@gmail.com on 18 Sep 2012 at 11:28

GoogleCodeExporter commented 9 years ago
Can you download the SVN version? It should work with MPC 1.0.1 and should fix 
the issue. I'm trying to get a beta2 released but haven't found the time.....

Original comment by casevh on 19 Sep 2012 at 3:46

GoogleCodeExporter commented 9 years ago
It was a smooth as silk.

1) I've downloaded from svn : 
svn checkout http://gmpy.googlecode.com/svn/trunk/ gmpy2svn

2) then followed instruction to a tee at 
http://gmpy2.readthedocs.org/en/latest/intro.html#installing-gmpy2-on-unix-linux
*except* i used gmpy-5.0.5, mpfr-3.1.1 and mpc-1.0.1.

3) the import worked as expected.

Thanks for your help

regards,

gcubre.

Original comment by gcu...@gmail.com on 22 Sep 2012 at 11:03

GoogleCodeExporter commented 9 years ago
Thanks for your response. beta2 has been formally released.

Original comment by casevh on 12 Oct 2012 at 6:08