Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  eclipse Python and Cplex

    Posted 04/05/12 03:35 AM

    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


  • 2.  Re: eclipse Python and Cplex

    Posted 04/16/12 04:06 PM

    Originally posted by: SystemAdmin


    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.
    #CPLEXOptimizers
    #DecisionOptimization