py27-pandas-0.13.1_1 conflict with py27-MySQLdb-1.2.3_4/ py27-MySQLdb55-1.2.3_4

Irjohn Junus i.junus at gmail.com
Fri Apr 18 12:45:47 UTC 2014


Dear All,

I'm running 9.1-RELEASE and today just after freebsd-update to p11 and
updating ports to the latest found out that pandas won't import after
MySQLdb is imported first. Strangely, it will import no problem if MySQLdb
is imported after:

root at khaleesi:/usr/ports # python
Python 2.7.6 (default, Apr  3 2014, 05:37:25)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> import numpy as np
>>> import MySQLdb
>>>
root at khaleesi:/usr/ports # python
Python 2.7.6 (default, Apr  3 2014, 05:37:25)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>> import pandas as pd
/lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc47/libgfortran.so.3 not found
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/pandas/__init__.py", line 6,
in <module>
    from . import hashtable, tslib, lib
  File "numpy.pxd", line 157, in init pandas.hashtable
(pandas/hashtable.c:21547)
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line
153, in <module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line
13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line
18, in <module>
    from .polynomial import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py",
line 19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py",
line 50, in <module>
    from .linalg import *
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py",
line 29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc47/libgfortran.so.3 not found
>>> import numpy as np
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line
153, in <module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line
13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line
17, in <module>
    from . import scimath as emath
ImportError: cannot import name scimath
>>>

I'm not sure if this is the case before the massive upgrade that I did
today to the latest FreeBSD and ports versions.

I wrote earlier to Jimmy and John about similar issue I was facing with
IPython, could this be related?

Much appreciated if you could take a look at this.



Regards,
Irjohn


More information about the freebsd-python mailing list