Skip to content

v1.8.1 runtests.py throw 1 error: cannot load test_array_from_pyobj_ext.so #4858

Closed

Description

@braindevices

compile under ubuntu with openblas 0.2.9

ERROR: test suite for <module 'test_array_from_pyobj' from 'numpy_git/build/testenv/lib/python2.7/site-packages/numpy/f2py/tests/test_array_from_pyobj.pyc'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.7/site-packages/nose/util.py", line 470, in try_run
    return func()
  File "numpy_git/build/testenv/lib/python2.7/site-packages/numpy/f2py/tests/test_array_from_pyobj.py", line 39, in setup
    'test_array_from_pyobj_ext')
  File "numpy_git/build/testenv/lib/python2.7/site-packages/numpy/f2py/tests/util.py", line 74, in wrapper
    memo[key] = func(*a, **kw)
  File "numpy_git/build/testenv/lib/python2.7/site-packages/numpy/f2py/tests/util.py", line 300, in build_module_distutils
    __import__(module_name)
ImportError: /tmp/tmpGQA3uV/test_array_from_pyobj_ext.so: failed to map segment from shared object: Operation not permitted

----------------------------------------------------------------------
Ran 4944 tests in 33.409s

FAILED (KNOWNFAIL=5, SKIP=6, errors=1)
Building, see build.log...
Build OK
Running unit tests for numpy
NumPy version 1.8.1
NumPy is installed in numpy_git/build/testenv/lib/python2.7/site-packages/numpy
Python version 2.7.6 (default, Jun  1 2014, 03:20:25) [GCC 4.6.3]
nose version 1.3.3

Activity

  1. pv commented on Jul 10, 2014

    @pv
    Member

    This is probably only due to /tmp being mounted as noexec or similar, which prevents the test suite from running test programs from there.

    To work around, set TEMP or TMPDIR environment variables to an executable location

  2. braindevices commented on Jul 12, 2014

    @braindevices
    Author

    @pv Thanks!
    after set the TMPDIR, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions