Bug 874826 - after adding pyodbc to setup.py, build fails
Summary: after adding pyodbc to setup.py, build fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ram Ranganathan
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1012348
TreeView+ depends on / blocked
 
Reported: 2012-11-08 21:48 UTC by Nam Duong
Modified: 2015-05-15 02:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1012348 (view as bug list)
Environment:
Last Closed: 2012-12-19 19:27:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nam Duong 2012-11-08 21:48:00 UTC
Description of problem:
See forum thread:  https://openshift.redhat.com/community/forums/openshift/pyodbc-install  


---setup.py---
from setuptools import setup

setup(name='OpenShift Mongo Twt',
      version='1.0',
      description='OpenShift Twitter clone using MongoDB',
      author='Mark Atwood',
      author_email='matwood',
      url='https://github.com/openshift/openshift-twt-mongo-demo',
      # dont install bottle requirement, bottle is included in source
      install_requires=['pymongo','pyodbc'],
     )


---Errors----

Nams-MacBook-Pro:twt nduong$ git commit -am "foo"
[master 90a61cc] foo
 1 files changed, 1 insertions(+), 1 deletions(-)
Nams-MacBook-Pro:twt nduong$ git push
Counting objects: 113, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (95/95), done.
Writing objects: 100% (98/98), 66.26 KiB, done.
Total 98 (delta 47), reused 0 (delta 0)
remote: restart_on_add=false
remote: Waiting for stop to finish
remote: Done
remote: restart_on_add=false
remote: ~/git/twt.git ~/git/twt.git
remote: ~/git/twt.git
remote: Running .openshift/action_hooks/pre_build
remote: setup.py found.  Setting up virtualenv
remote: New python executable in /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/python
remote: Installing setuptools............done.
remote: Installing pip...............done.
remote: running develop
remote: running egg_info
remote: creating OpenShift_Mongo_Twt.egg-info
remote: writing requirements to OpenShift_Mongo_Twt.egg-info/requires.txt
remote: writing OpenShift_Mongo_Twt.egg-info/PKG-INFO
remote: writing top-level names to OpenShift_Mongo_Twt.egg-info/top_level.txt
remote: writing dependency_links to OpenShift_Mongo_Twt.egg-info/dependency_links.txt
remote: writing requirements to OpenShift_Mongo_Twt.egg-info/requires.txt
remote: writing OpenShift_Mongo_Twt.egg-info/PKG-INFO
remote: writing top-level names to OpenShift_Mongo_Twt.egg-info/top_level.txt
remote: writing dependency_links to OpenShift_Mongo_Twt.egg-info/dependency_links.txt
remote: writing manifest file 'OpenShift_Mongo_Twt.egg-info/SOURCES.txt'
remote: warning: manifest_maker: standard file 'setup.py' not found
remote: reading manifest file 'OpenShift_Mongo_Twt.egg-info/SOURCES.txt'
remote: writing manifest file 'OpenShift_Mongo_Twt.egg-info/SOURCES.txt'
remote: running build_ext
remote: Creating /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/lib/python2.6/site-packages/OpenShift-Mongo-Twt.egg-link (link to .)
remote: Adding OpenShift-Mongo-Twt 1.0 to easy-install.pth file
remote:
remote: Installed /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv
remote: Processing dependencies for OpenShift-Mongo-Twt==1.0
remote: Searching for pyodbc
remote: Reading http://mirror1.ops.rhcloud.com/mirror/python/web/simple/pyodbc/
remote: Reading http://code.google.com/p/pyodbc
remote: Reading http://code.google.com/p/pyodbc/downloads/list
remote: Best match: pyodbc 3.0.6
remote: Downloading http://pyodbc.googlecode.com/files/pyodbc-3.0.6.zip
remote: Processing pyodbc-3.0.6.zip
remote: Running pyodbc-3.0.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/egg-dist-tmp-kxTDJS
remote: warning: no files found matching 'tests/*'
remote: In file included from /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/buffer.cpp:12:
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbc.h:48:17: error: sql.h: No such file or directory
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbc.h:49:20: error: sqlext.h: No such file or directory
remote: In file included from /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/buffer.cpp:12:
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbc.h:65: error: ‘IsSet’ declared as an ‘inline’ variable
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbc.h:65: error: ‘DWORD’ was not declared in this scope
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbc.h:65: error: ‘DWORD’ was not declared in this scope
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbc.h:65: error: initializer expression list treated as compound expression
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbc.h:66: error: expected ‘,’ or ‘;’ before ‘{’ token
remote: In file included from /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/buffer.cpp:17:
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/buffer.h:46: error: ‘SQLLEN’ has not been declared
remote: In file included from /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/buffer.cpp:18:
remote: /tmp/easy_install-Qlzzsn/pyodbc-3.0.6/src/pyodbcmodule.h:36: error: ‘HENV’ does not name a type
remote: error: Setup script exited with error: command 'gcc' failed with exit status 1
remote: Making script /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/easy_install relative
remote: Making script /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/pip relative
remote: Making script /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/easy_install-2.6 relative
remote: Script /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/python)
remote: Script /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/activate.csh cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/python)
remote: Making script /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914/python-2.6/virtenv/bin/pip-2.6 relative
remote: Running .openshift/action_hooks/build
remote: New python executable in /var/lib/openshift/b0b0b9cd4f5e4464933c58984aa01914//python-2.6/virtenv/bin/python
remote: Installing setuptools.............done.
remote: Installing pip...............done.
remote: Running .openshift/action_hooks/deploy
remote: hot_deploy_added=false
remote: MongoDB already running
remote: Done
remote: Running .openshift/action_hooks/post_deploy
To ssh://b0b0b9cd4f5e4464933c58984aa01914.com/~/git/twt.git/
   03605bf..90a61cc  master -> master

Comment 1 Ram Ranganathan 2012-11-09 03:51:11 UTC
Waiting for pull request: https://github.com/openshift/li/pull/587  to 
be merged in. Fix is in that pull request.


Note You need to log in before you can comment on or make changes to this bug.