New at Python: GLPK not building properly / Python ImportError
Posted
by Merjit
on Stack Overflow
See other posts from Stack Overflow
or by Merjit
Published on 2010-04-28T09:52:54Z
Indexed on
2010/04/28
11:33 UTC
Read the original article
Hit count: 522
This is a beginner question, and a follow-up to this one, where I was pointed to GLPK.
I'm trying to get PyGLPK, a Python binding for the GNU Linear Programming Kit up and running, but no matter what I do, I can't seem to build and install GLPK so that Python finds it correctly. This comes after running ./configure, make, and sudo make install on the GLPK libraries, and following the instructions for PyGLPK.
Specifically, here is the error I get:
>>> import glpk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- packages/glpk.so, 2): Symbol not found: __glp_lpx_print_ips
Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/glpk.so
Expected in: dynamic lookup
I assume that something isn't linking to somewhere else, and that it probably has something to do with paths and environment variables. However, here's where my abilities in the shell fail, and I'm at a loss over what to do next.
Again, there is probably a simple answer to this, but I haven't had any luck with Google using the terminology I know.
© Stack Overflow or respective owner