-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi, I had some problems using the package with the given example on Mac.
Describe the bug
ImportError Traceback (most recent call last)
/var/folders/w1/l_0tfc151b5cm4ly235wvkkr0000gn/T/ipykernel_23981/1072903580.py in
1 import pycutest
----> 2 p = pycutest.import_problem('ROSENBR')
3
4 print("Rosenbrock function in %gD" % p.n)
~/opt/anaconda3/lib/python3.9/site-packages/pycutest/build_interface.py in import_problem(problemName, destination, sifParams, sifOptions, efirst, lfirst, nvfirst, quiet, drop_fixed_variables)
358 raise ImportError('cannot import PYCUTEST_CACHE folder, have you added it to your python path?')
359 else: # else raise original error
--> 360 raise error
361
362
~/opt/anaconda3/lib/python3.9/site-packages/pycutest/build_interface.py in import_problem(problemName, destination, sifParams, sifOptions, efirst, lfirst, nvfirst, quiet, drop_fixed_variables)
349 # Import the module CACHE_SUBFOLDER.problemDir, and return a wrapper
350 try:
--> 351 return CUTEstProblem(importlib.import_module('%s.%s' % (CACHE_SUBFOLDER, problemDir)),
352 problemDir,
353 drop_fixed_variables=drop_fixed_variables)
~/opt/anaconda3/lib/python3.9/importlib/init.py in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
129
~/opt/anaconda3/lib/python3.9/importlib/_bootstrap.py in _gcd_import(name, package, level)
~/opt/anaconda3/lib/python3.9/importlib/_bootstrap.py in find_and_load(name, import)
~/opt/anaconda3/lib/python3.9/importlib/_bootstrap.py in find_and_load_unlocked(name, import)
~/opt/anaconda3/lib/python3.9/importlib/_bootstrap.py in _load_unlocked(spec)
~/opt/anaconda3/lib/python3.9/importlib/_bootstrap_external.py in exec_module(self, module)
~/opt/anaconda3/lib/python3.9/importlib/_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)
~/Desktop/Ubuntu/pycutest_cache_holder/ROSENBR/init.py in
36 """
37
---> 38 from ._pycutestitf import *
39 from . import _pycutestitf
40
ImportError: dlopen(/Users/tab1e/Desktop/Ubuntu/pycutest_cache_holder/ROSENBR/_pycutestitf.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace 'cutest_cdh'
To Reproduce
import pycutest
p = pycutest.import_problem('ROSENBR')
print("Rosenbrock function in %gD" % p.n)
Information about installation:
- macOS Sequoia Version 15.1
- clang-1500.3.9.4, arm64-apple-darwin24.1.0, Apple M1 Chip
- python 3.9.13
- pycutest==1.7.2
Additional bug
It will sometimes give the follow error message.
ld: warning: duplicate -rpath '/Users/tab1e/opt/anaconda3/lib' ignored
ld: warning: ignoring file '/Users/tab1e/Desktop/Ubuntu/pycutest_cache/pycutest_cache_holder/ARGLALE_M200_N100/RANGE.o': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/tab1e/Desktop/Ubuntu/pycutest_cache/pycutest_cache_holder/ARGLALE_M200_N100/GROUP.o': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/tab1e/Desktop/Ubuntu/pycutest_cache/pycutest_cache_holder/ARGLALE_M200_N100/ELFUN.o': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a91': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a90': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a89': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a88': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a87': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a86': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a85': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a84': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a83': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a82': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a81': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a80': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a79': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a78': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a77': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a76': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a75': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a74': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a73': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a72': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a71': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a70': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a69': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a68': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a67': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a66': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a65': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a64': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a63': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a62': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a61': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a60': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a59': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a58': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a57': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a56': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a55': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a54': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a53': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a52': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a51': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a50': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a49': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a48': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a47': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a46': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a45': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a44': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a43': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a42': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a41': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a40': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a39': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a38': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a37': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a36': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a35': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a34': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a33': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a32': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a31': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a30': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a29': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a28': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a27': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a26': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a25': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a24': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a23': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a22': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a21': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a20': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a19': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a18': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a17': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a16': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a15': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a14': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a13': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a12': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a11': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a10': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a9': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a8': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a7': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a6': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a5': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a4': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a3': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/opt/homebrew/opt/cutest/libexec/objects/mac64.osx.gfo/double/libcutest.a2': found architecture 'arm64', required architecture 'x86_64'