Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Pyhdb.connect fails because of Unknown Option Type #6

Closed
jayanthkmr opened this issue Feb 20, 2015 · 7 comments
Closed

Pyhdb.connect fails because of Unknown Option Type #6

jayanthkmr opened this issue Feb 20, 2015 · 7 comments

Comments

@jayanthkmr
Copy link

Hi all,

It threw the following error while connecting:

Traceback (most recent call last):
File "", line 5, in
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/init.py", line 10, in connect
connection.connect()
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/client.py", line 126, in connect
ConnectOptions(DEFAULT_CONNECTION_OPTIONS)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 87, in send
return self.connection._send_message(self.pack())
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/client.py", line 96, in _send_message
return Message.unpack_reply(self, header, payload)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 98, in unpack_reply
payload, expected_segments=header[4]
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 216, in unpack_from
yield ReplySegment.unpack(segment_header, segment_payload)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 232, in unpack
tuple(Part.unpack_from(payload, expected_parts=header[2]))
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 307, in unpack_from
part_header[2], part_payload
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/parts.py", line 111, in unpack_data
raise Exception("Unknown option type %s" % typ)
Exception: Unknown option type 30

Please fix this.

@jarus
Copy link
Contributor

jarus commented Feb 20, 2015

Hi,

thank you for the issue. The problem is already fixed in master by pull request #3. To get the fixed version just install pyhdb from the git repo.
We will release sone a version which includes the fix on PyPi.

Best regards,
Christoph

On 20.02.2015, at 14:34, jayanth notifications@github.com wrote:

Hi all,

It threw the following error while connecting:

Traceback (most recent call last):
File "", line 5, in
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/init.py", line 10, in connect
connection.connect()
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/client.py", line 126, in connect
ConnectOptions(DEFAULT_CONNECTION_OPTIONS)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 87, in send
return self.connection._send_message(self.pack())
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/client.py", line 96, in _send_message
return Message.unpack_reply(self, header, payload)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 98, in unpack_reply
payload, expected_segments=header[4]
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 216, in unpack_from
yield ReplySegment.unpack(segment_header, segment_payload)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 232, in unpack
tuple(Part.unpack_from(payload, expected_parts=header[2]))
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/base.py", line 307, in unpack_from
part_header[2], part_payload
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyhdb/protocol/parts.py", line 111, in unpack_data
raise Exception("Unknown option type %s" % typ)
Exception: Unknown option type 30

Please fix this.


Reply to this email directly or view it on GitHub.

@jarus jarus closed this as completed Feb 20, 2015
@dpdornseifer
Copy link

Hi have you already pushed the fixed release onto PyPi?

2015-04-23T16:55:43.60-0700 [App/0] OUT Unknown option type 30
2015-04-23T16:55:43.60-0700 [App/0] OUT type 'exceptions.Exception'
2015-04-23T16:55:43.60-0700 [App/0] OUT ('Unknown option type 30',)

Best regard,
David

@bsrdjan
Copy link
Contributor

bsrdjan commented Apr 27, 2015

not yet, will be done. Please clone the repository from GitHub for now.

@dpdornseifer
Copy link

working in a Cloud Foundry environment where all the dependencies are managed via pip, at least in the standard python buildpacks :( - otherwise it's necessary to customize the buildpack and add a install routine to the compile script

@bsrdjan
Copy link
Contributor

bsrdjan commented Apr 29, 2015

Understood. Could please use from pypitest for the time being ?
pip install -i https://testpypi.python.org/pypi pyhdb
Will be released on pypi soon and until then leave the ticket open.

@bsrdjan bsrdjan reopened this Apr 29, 2015
@dpdornseifer
Copy link

great, thx

@bsrdjan
Copy link
Contributor

bsrdjan commented May 21, 2015

released on pypi, closing this one.

@bsrdjan bsrdjan closed this as completed May 21, 2015
firnkes added a commit to firnkes/PyHDB that referenced this issue May 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants