[Quickfix-developers] Issue compiling QuickFix v1.13.3 with Python 2.7 ...
Brought to you by:
orenmnero
From: Noel M. V. <nm...@co...> - 2013-04-07 21:52:29
|
Hello Friends: I have an issue with compiling QuickFix v1.13.3 with Python 2.7 support on CentOS6 and Fedora 18 (I tried it on both). I don't think my issue is O/S related to be honest (as I'll explain). FYI: I'll pose my question below, but a neater version of it can be found on StackOverflow.Com here (easier on the eyes): http://stackoverflow.com/questions/15860120/issue-compiling-quickfix-v1-13-3-with-python-2-7-on-centos6-and-fedora-18 Here is the sequence of steps I performed, which will show the issue: user$ ./configure --with-python=/home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/include/python2.7user$ make user$ sudo make install So far so good above. (Well, actually there are a lot of warnings during the "make" step, but it does eventually succeed. So next lets try to import a main module in python to see how things work. We immediately see a problem: user$ python -c "import quickfix"# Lets test.Traceback(most recent call last):File"<string>",line 1,in<module>File"/home/nmvega/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/latest/lib/python2.7/site-packages/quickfix.py",line 7,in<module>import_quickfix ImportError:Nomodulenamed _quickfix As you can see, python is saying that _quickfix does not exit. Below are the Python related files that were installed by the "sudo make install" step. I don't see _quicklib (although I do see a _quicklib.so - not sure if that's related). /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/_quickfix.dylib /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/_quickfix.so /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix.pyc /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix40.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix41.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix42.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-pack ages/quickfix43.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix44.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix50.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix50sp1.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfix50sp2.py /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/quickfixt11.py /usr/local/lib/libquickfix_python.la /usr/local/lib/libquickfix_python.so /usr/local/lib/libquickfix_python.so.10/usr/local/lib/libquickfix_python.so.10.0.0/usr/local/share/quickfix/quickfix.py /usr/local/share/quickfix/quickfix40.py /usr/local/share/quickfix/quickfix41.py /usr/local/share/quickfix/quickfix42 .py /usr/local/share/quickfix/quickfix43.py /usr/local/share/quickfix/quickfix44.py /usr/local/share/quickfix/quickfix50.py /usr/local/share/quickfix/quickfix50sp1.py /usr/local/share/quickfix/quickfix50sp2.py /usr/local/share/quickfix/quickfixt11.py As a parenthetical note, also note that the following installed symlinks (during "sudo make install" step) are broken links; meaning that the file pointed to by the arrow (->) doesn't exist, but the link was made to point to that anyway. Seems like an additional problem with "make install". o /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/_quickfix.so ->/usr/local/lib/python/_quickfix.so (Thissymlink isbroken).o /home/user/APPS.d/ENTHOUGHT-PYTHON-IDE.d/x86_64.d/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/_quickfix.dylib ->/usr/local/lib/python/_quickfix.dylib (Thissymkink isbroken,too). In summary, I think the problems above indicate something wrong with any or all of "configure", "make" & "make install". Then again, I could be missing something, too. Any ideas what is happening, and how to fix this. I know people have successfully compiled QuickFix with Python support Thank you very much, NMV |