Re: [Quickfix-developers] Issue compiling QuickFix v1.13.3 with Python 2.7 ...
Brought to you by:
orenmnero
From: Rodrick B. <rod...@gm...> - 2013-04-08 05:05:22
|
Long time Noel, it seems like your python path might not be getting set accordingly try using the python shell and setting your PYTHON to where ever you installed quick fix to debug Example: $ python >> import sys >> print sys.path >> sys.path.append("quickfixpath") >> import quickfix Sent from my iPhone On Apr 7, 2013, at 6:00 PM, Noel Milton Vega <nm...@co...> wrote: QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html 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.7 user$ 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: No module named _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 (This symlink is broken). 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 (This symkink is broken, 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 ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |