Originally posted by: LouisL
Hi guys,
I am new to this platform so bare with me if this is actually a dump question. I tried to install CPLEX12.5 onto my mac OS (Yosemite 10.10.2). Im using Python 2.7.6. During the installation, there is a minor problem that the available space cannot be detected. My friend told me I should raise a bug report for this but not sure where to do this. Can any one tell me where to report a bug ? This problem does not affect the installation process I suppose since I was able to complete the process and see that the CPLEX is in now on my computer.
The problem is when i trying to import CPLEX into Python. I followed the guidance in the manual. I use "python setup.py install" to install the package, which results in no error. However, in the python interpreter, when I type "import cplex", it shows the following message
======================================================================================================
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cplex
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/cplex/__init__.py", line 43, in <module>
import callbacks
File "/Library/Python/2.7/site-packages/cplex/callbacks.py", line 48, in <module>
from _internal._aux_functions import apply_freeform_two_args, apply_freeform_one_arg
File "/Library/Python/2.7/site-packages/cplex/_internal/__init__.py", line 22, in <module>
import _list_array_utils
File "/Library/Python/2.7/site-packages/cplex/_internal/_list_array_utils.py", line 13, in <module>
import _pycplex as CPX
File "/Library/Python/2.7/site-packages/cplex/_internal/_pycplex.py", line 19, in <module>
_pycplex_platform = swig_import_helper()
File "/Library/Python/2.7/site-packages/cplex/_internal/_pycplex.py", line 15, in swig_import_helper
_mod = imp.load_module('_pycplex_platform', fp, pathname, description)
File "/Library/Python/2.7/site-packages/cplex/_internal/_pycplex_platform.py", line 23, in <module>
from cplex._internal.py1013_cplex125 import *
ImportError: dlopen(/Library/Python/2.7/site-packages/cplex/_internal/py1013_cplex125.so, 2): no suitable image found. Did find:
/Library/Python/2.7/site-packages/cplex/_internal/py1013_cplex125.so: mach-o, but wrong architecture
======================================================================================================
I suspect it to be an 64bit and 32bit compatible problem. So I use "is_64bits = system.maxsize > 2**32" to double check. is_64bits is True in this case. Now I have no idea how to resolve this problem and does not know where to start digging. Can someone help me with this problem ? Thanks.
Louis
#CPLEXOptimizers#DecisionOptimization