gwu-libraries / launchpad

A django based system that provides a stable URL for every item in the library's catalog. Various discovery services will link to these URLs. The page for each item will in turn link out to various other resources that provide methods for accessing the content of the items.
MIT License
15 stars 9 forks source link

Need to pin version of cx_Oracle #1204

Closed justinlittman closed 6 years ago

justinlittman commented 6 years ago

It appears that the latest version, 6.0.2 removes numbersAsStrings. See https://issues.cloudera.org/browse/HUE-7264.

This results in:

Traceback (most recent call last):
  File "/launchpad/launchpad/lp/ui/views.py", line 61, in item
    bib = voyager.get_bib_data(bibid)
  File "/launchpad/launchpad/lp/ui/voyager.py", line 127, in get_bib_data
    cursor = connections['voyager'].cursor()
  File "/launchpad/launchpad/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 162, in cursor
    cursor = self.make_debug_cursor(self._cursor())
  File "/launchpad/launchpad/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 135, in _cursor
    self.ensure_connection()
  File "/launchpad/launchpad/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection
    self.connect()
  File "/launchpad/launchpad/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 121, in connect
    self.init_connection_state()
  File "/launchpad/launchpad/ENV/local/lib/python2.7/site-packages/django/db/backends/oracle/base.py", line 217, in init_connection_state
    cursor = self.create_cursor()
  File "/launchpad/launchpad/ENV/local/lib/python2.7/site-packages/django/db/backends/oracle/base.py", line 262, in create_cursor
    return FormatStylePlaceholderCursor(self.connection)
  File "/launchpad/launchpad/ENV/local/lib/python2.7/site-packages/django/db/backends/oracle/base.py", line 419, in __init__
    self.cursor.numbersAsStrings = True
AttributeError: 'cx_Oracle.Cursor' object has no attribute 'numbersAsStrings'

Production is using 5.2.1.