Strange interaction between py-pyglet and py-numpy

Montgomery-Smith, Stephen stephen at missouri.edu
Tue Nov 27 00:01:15 UTC 2018


Using python2.7, if I run this code:

import numpy as np
from pyglet.gl import *

everything works fine.  But if I put the same code in the other order:

from pyglet.gl import *
import numpy as np

I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line
142, 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 8, in <module>
    from .type_check import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/type_check.py",
line 11, in <module>
    import numpy.core.numeric as _nx
  File "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py",
line 26, in <module>
    raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: /lib/libgcc_s.so.1: version GCC_4.8.0 required by
/usr/local/lib/gcc7/libgfortran.so.4 not found


Any ideas?


More information about the freebsd-ports mailing list