Issue #42 new

Error during Oracle introspection

Anonymous created an issue

Hi. I compiled and installed HTSQL from the latest Mercurial source and I tried to connect to an Oracle database. I got an error upon opening a shell however. Hope this helps. Thanks!

HTSQL in /usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg Oracle client is /opt/instantclient_11_2

htsql-ctl shell -p oracle://myUser@myOracleDb/MyDatabase Password: Traceback (most recent call last): File "/usr/local/bin/htsql-ctl", line 9, in <module> load_entry_point('HTSQL==2.3.3', 'console_scripts', 'htsql-ctl')() File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/ctl/init.py", line 48, in main return ctl.main(sys.argv) File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/ctl/script.py", line 213, in main return routine.run() File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/ctl/request.py", line 389, in run app = HTSQL(parameters) File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/core/application.py", line 183, in init addon.validate() File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/core/init.py", line 79, in validate introspect() File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/core/cache.py", line 43, in wrapper value = service(args, kwds) File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/core/introspect.py", line 85, in introspect catalog = Introspect.__invoke__() File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/core/adapter.py", line 284, in __invoke__ return instance() File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/core/introspect.py", line 39, in IntrospectCleanup.__call__ catalog = super(IntrospectCleanup, self).__call__() File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql_oracle/core/introspect.py", line 112, in IntrospectOracle.__call__ check) File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql/core/adapter.py", line 279, in __invoke__ dispatch_key = interface.__dispatch__(*args, kwds) File "/usr/local/lib/python2.7/dist-packages/HTSQL-2.3.3-py2.7.egg/htsql_oracle/core/introspect.py", line 188, in dispatch return data_type.encode('utf-8') AttributeError: 'NoneType' object has no attribute 'encode'

Comments (0)

  1. Log in to comment