Description of problem: As reported by a user: https://openshift.redhat.com/community/forums/openshift/using-ffnet-in-a-django-app-fails-on-install when the user tries to add the ffnet package to a python app with this in setup.py: install_requires=['Django>=1.4','psycopg2','django-piston','ffnet'], ffnet install fails with: >> File "/var/lib/stickshift/936ed8bdedf0469c8f789933e838740f/twt/virtenv/build/ffnet/setup.py", line 4, in >> from numpy.distutils.core import Extension >> ImportError: No module named distutils.core Seems the version of numpy we have is borked: http://mail.scipy.org/pipermail/scipy-user/2011-November/031097.html
This can be fixed by installing 2 rpms. yum install numpy-f2py gcc-gfortran
Rob, I have a fix for this in my devenv -- can check it in -- if its ok w/ ya. Thanks.
Fixed with git commit 30fe2e579aee8d1f3f42098735bb001176a94dee The requisite packages are now installed as part of the python cartridge.
Reproduce this bug on prod env, get the same error as comment 0. Verify this bug with devenv_1806, ffnet can be installed successfully when check this package from instance. # ls /var/lib/stickshift/pythondev-szhou1/pythondev/virtenv/lib64/python2.6/site-packages Django-1.4-py2.6.egg easy-install.pth pip-1.0.2-py2.6.egg setuptools.pth django_piston-0.2.3-py2.6.egg ffnet-0.7.1-py2.6-linux-x86_64.egg setuptools-0.6c11-py2.6.egg YourAppName.egg-link And when check 2 rpms in comment 1, get numpy-f2py-1.3.0-6.2.el6.x86_64 gcc-gfortran-4.4.6-3.el6.x86_64 Change this bug as verified. Thanks.