Originally posted by: SystemAdmin
Hello
I want to import the cplex library inside the eclipse PyDev but I got the following error:
_mod = imp.load_module('_pycplex_platform', fp, pathname, description)
File "/Users/*/ilogg/cplex/python/x86_darwin9_gcc4.0/cplex/_internal/_pycplex_platform.py", line 23, in <module>
from cplex._internal.py1013_cplex124 import *
ImportError: dlopen(/Users/*/ilogg/cplex/python/x86_darwin9_gcc4.0/cplex/_internal/py1013_cplex124.so, 2): no suitable image found. Did find:
/Users/*/ilogg/cplex/python/x86_darwin9_gcc4.0/cplex/_internal/py1013_cplex124.so: mach-o, but wrong architecture
ERROR: Module: Hello could not be imported (file: /Users/*/Documents/workspace_python/Test/Hello.py).
done.
I think the problem is inconsistency with x_86-64 architecture, does anybody know how can I tell the eclipse to run in 32 bit mode when running the python programs?
Thank you.
#CPLEXOptimizers#DecisionOptimization