Bug 600329 - Importing sympy fails with: ImportError: No module named libmpf
Summary: Importing sympy fails with: ImportError: No module named libmpf
Keywords:
Status: CLOSED DUPLICATE of bug 602431
Alias: None
Product: Fedora
Classification: Fedora
Component: sympy
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Conrad Meyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-04 13:01 UTC by Tadej Janež
Modified: 2010-08-28 08:07 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-08-28 08:07:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tadej Janež 2010-06-04 13:01:42 UTC
Description of problem:
I recently upgraded Fedora to version 13 and SymPy stopped working.

Here is the traceback:
>>> import sympy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/sympy/__init__.py", line 22, in <module>
    from sympy.core import *
  File "/usr/lib/python2.6/site-packages/sympy/core/__init__.py", line 4, in <module>
    from basic import Basic, S, C, sympify
  File "/usr/lib/python2.6/site-packages/sympy/core/basic.py", line 2497, in <module>
    from symbol import Wild, Symbol
  File "/usr/lib/python2.6/site-packages/sympy/core/symbol.py", line 293, in <module>
    from sympify import sympify
  File "/usr/lib/python2.6/site-packages/sympy/core/sympify.py", line 191, in <module>
    from numbers import Integer, Real
  File "/usr/lib/python2.6/site-packages/sympy/core/numbers.py", line 5, in <module>
    import mpmath.libmpf as mlib
ImportError: No module named libmpf

Version-Release number of selected component (if applicable):
sympy-0.6.6-3.fc13.noarch

How reproducible:
Always

Additional info:
Upon further investigation, I found libmpf module on my system:
/usr/lib/python2.6/site-packages/mpmath/libmp/libmpf.py

So, it looks like the libmpf module changed its location from mpmath/libmpf.py to mpmath/libmp/libmpf.py and the rest of the SymPy code hasn't been updated yet?

Comment 1 José Matos 2010-08-28 08:07:35 UTC
A large discussion with the cause and possible solution(s) is going on #602431 so I am closing this bug as duplicate.

FWIW you are right about the problem. :-)

*** This bug has been marked as a duplicate of bug 602431 ***


Note You need to log in before you can comment on or make changes to this bug.