Bug 1125773

Summary: Fail to install pyodbc in python app due to miss 'unixODBC-devel' package
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: ContainersAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED EOL QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.2.0CC: jokerman, libra-onpremise-devel, mmccomas, rthrashe, xtian
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-13 22:18:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ma xiaoqiang 2014-08-01 03:26:19 UTC
Description of problem:
Fail to install pyodbc in python app due to miss 'unixODBC-devel' package 

Version-Release number of selected component (if applicable):
puddle [2.1.4/2014-07-28.1]

How reproducible:
100%

Steps to Reproduce:
1.Create an python app on optional node
2.Install pyodbc in the app
#vim setup.py
from setuptools import setup

setup(name='YourAppName',
      version='1.0',
      description='OpenShift App',
      author='Your Name',
      author_email='example',
      url='http://www.python.org/sigs/distutils-sig/',
 install_requires=['pymongo','pyodbc'],
3.Deploy the app
#git commit -amx && git push 


Actual results:
Output:
<--snip-->
remote: In file included from /tmp/easy_install-4f1SU3/pyodbc-3.0.7/src/connection.cpp:12:
remote: /tmp/easy_install-4f1SU3/pyodbc-3.0.7/src/pyodbc.h:52:17: error: sql.h: No such file or directory
remote: /tmp/easy_install-4f1SU3/pyodbc-3.0.7/src/pyodbc.h:53:20: error: sqlext.h: No such file or directory
remote: In file included from /tmp/easy_install-4f1SU3/pyodbc-3.0.7/src/connection.cpp:12:
remote: /tmp/easy_install-4f1SU3/pyodbc-3.0.7/src/pyodbc.h:69: error: 'IsSet' declared as an 'inline' variable
remote: /tmp/easy_install-4f1SU3/pyodbc-3.0.7/src/pyodbc.h:69: error: 'DWORD' was not declared in this scope
<--snip-->


Expected results:
Install pyodbc successfully

Additional info:

Comment 1 Brenton Leanhardt 2014-08-01 12:33:14 UTC
In most cases we would expect the admin to install the dependency.  However, since this package ships in RHEL we could add it to the recommended dependencies metapackage for python.  We actually already have it in the recommended-diy metapackage.

Comment 3 Rory Thrasher 2017-01-13 22:18:38 UTC
OpenShift Enterprise v2 has officially reached EoL.  This product is no longer supported and bugs will be closed.

Please look into the replacement enterprise-grade container option, OpenShift Container Platform v3.  https://www.openshift.com/container-platform/

More information can be found here: https://access.redhat.com/support/policy/updates/openshift/