You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Matt Pestritto (JIRA)" <ji...@apache.org> on 2009/09/22 17:02:16 UTC
[jira] Created: (HIVE-851) Thrift Client: BaseException.message
deprecation warning in Python 2.6
Thrift Client: BaseException.message deprecation warning in Python 2.6
----------------------------------------------------------------------
Key: HIVE-851
URL: https://issues.apache.org/jira/browse/HIVE-851
Project: Hadoop Hive
Issue Type: Bug
Components: Clients
Reporter: Matt Pestritto
Priority: Minor
In Python 2.6 BaseException.message has been deprecated. This is a patch to remove these warnings.
src/thrift/Thrift.py:62: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
self.message = message
Also note. I could only replicate this error in two clases and there were other classes that inherited (Exception).
Patch is only attached for those two classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-851) Thrift Client: BaseException.message
deprecation warning in Python 2.6
Posted by "Matt Pestritto (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Pestritto updated HIVE-851:
--------------------------------
Attachment: hive_851.patch
Note. This patches two files:
service/lib/py/thrift/Thrift.py
and
service/src/gen-py/hive/ttypes.py
It looks like ttypes.py is generated automatically. I'm not sure where that comes from so you may not want to patch that file.
Thanks
> Thrift Client: BaseException.message deprecation warning in Python 2.6
> ----------------------------------------------------------------------
>
> Key: HIVE-851
> URL: https://issues.apache.org/jira/browse/HIVE-851
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Clients
> Reporter: Matt Pestritto
> Priority: Minor
> Attachments: hive_851.patch
>
>
> In Python 2.6 BaseException.message has been deprecated. This is a patch to remove these warnings.
> src/thrift/Thrift.py:62: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
> self.message = message
> Also note. I could only replicate this error in two clases and there were other classes that inherited (Exception).
> Patch is only attached for those two classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.