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).
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?
SystemAdmin 110000D4XK7929 Posts
Re: eclipse Python and Cplex2012-04-16T20:06:19ZThis is the accepted answer. This is the accepted answer.I am not an eclipse expert but one option may be to use eclipe's -vm command line option that allows you to specify the virtual machine that eclipse should use. It may be sufficient to have this point to a 32bit JVM (I never tried). Or use -vmargs to instruct the JVM what to do. Further details about eclipse command line options may be found here.