You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jon Stephens (Created) (JIRA)" <ji...@apache.org> on 2012/02/15 22:19:00 UTC
[jira] [Created] (THRIFT-1515) NameError: global name
'TApplicationException' is not defined
NameError: global name 'TApplicationException' is not defined
-------------------------------------------------------------
Key: THRIFT-1515
URL: https://issues.apache.org/jira/browse/THRIFT-1515
Project: Thrift
Issue Type: Bug
Components: Python - Compiler
Affects Versions: 0.9
Reporter: Jon Stephens
The Python Thrift generator does not include imports for all the exception types it uses, namely, "TApplicationException".
To reproduce:
Create two Thrift services (A and B) and start them.
Using the Python client for B, connect to A and call one of the methods from the service.
Expected result:
{noformat}thrift.Thrift.TApplicationException: Invalid method name: 'someMethod'{noformat}
Actual Result:
{noformat}NameError: global name 'TApplicationException' is not defined{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (THRIFT-1515) NameError: global name
'TApplicationException' is not defined
Posted by "Will Pierce (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246912#comment-13246912 ]
Will Pierce commented on THRIFT-1515:
-------------------------------------
I attached a patch for this same fix to THRIFT-1115 which does the same thing (except uses 2 lines, to avoid going past the 80 char suggested limit of PEP8)
I'm happy with either one :-)
> NameError: global name 'TApplicationException' is not defined
> -------------------------------------------------------------
>
> Key: THRIFT-1515
> URL: https://issues.apache.org/jira/browse/THRIFT-1515
> Project: Thrift
> Issue Type: Bug
> Components: Python - Compiler
> Affects Versions: 0.9
> Reporter: Jon Stephens
> Attachments: thrift_1515.patch
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> The Python Thrift generator does not include imports for all the exception types it uses, namely, "TApplicationException".
> To reproduce:
> Create two Thrift services (A and B) and start them.
> Using the Python client for B, connect to A and call one of the methods from the service.
> Expected result:
> {noformat}thrift.Thrift.TApplicationException: Invalid method name: 'someMethod'{noformat}
> Actual Result:
> {noformat}NameError: global name 'TApplicationException' is not defined{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (THRIFT-1515) NameError: global name
'TApplicationException' is not defined
Posted by "Atul S Vasu (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Atul S Vasu updated THRIFT-1515:
--------------------------------
Attachment: thrift_1515.patch
Patch to fix this bug.
>From r1309631
http://svn.apache.org/repos/asf/thrift/trunk
> NameError: global name 'TApplicationException' is not defined
> -------------------------------------------------------------
>
> Key: THRIFT-1515
> URL: https://issues.apache.org/jira/browse/THRIFT-1515
> Project: Thrift
> Issue Type: Bug
> Components: Python - Compiler
> Affects Versions: 0.9
> Reporter: Jon Stephens
> Attachments: thrift_1515.patch
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> The Python Thrift generator does not include imports for all the exception types it uses, namely, "TApplicationException".
> To reproduce:
> Create two Thrift services (A and B) and start them.
> Using the Python client for B, connect to A and call one of the methods from the service.
> Expected result:
> {noformat}thrift.Thrift.TApplicationException: Invalid method name: 'someMethod'{noformat}
> Actual Result:
> {noformat}NameError: global name 'TApplicationException' is not defined{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (THRIFT-1515) NameError: global name
'TApplicationException' is not defined
Posted by "David De Caires E Freitas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429074#comment-13429074 ]
David De Caires E Freitas commented on THRIFT-1515:
---------------------------------------------------
Cool, I have the same problem, will the Fix Version be 0.9?
> NameError: global name 'TApplicationException' is not defined
> -------------------------------------------------------------
>
> Key: THRIFT-1515
> URL: https://issues.apache.org/jira/browse/THRIFT-1515
> Project: Thrift
> Issue Type: Bug
> Components: Python - Compiler
> Affects Versions: 0.9
> Reporter: Jon Stephens
> Attachments: thrift_1515.patch
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> The Python Thrift generator does not include imports for all the exception types it uses, namely, "TApplicationException".
> To reproduce:
> Create two Thrift services (A and B) and start them.
> Using the Python client for B, connect to A and call one of the methods from the service.
> Expected result:
> {noformat}thrift.Thrift.TApplicationException: Invalid method name: 'someMethod'{noformat}
> Actual Result:
> {noformat}NameError: global name 'TApplicationException' is not defined{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (THRIFT-1515) NameError: global name
'TApplicationException' is not defined
Posted by "Jake Farrell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jake Farrell closed THRIFT-1515.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9
Assignee: Jake Farrell
Yes, this is available within trunk and will be in the 0.9 release
> NameError: global name 'TApplicationException' is not defined
> -------------------------------------------------------------
>
> Key: THRIFT-1515
> URL: https://issues.apache.org/jira/browse/THRIFT-1515
> Project: Thrift
> Issue Type: Bug
> Components: Python - Compiler
> Affects Versions: 0.9
> Reporter: Jon Stephens
> Assignee: Jake Farrell
> Fix For: 0.9
>
> Attachments: thrift_1515.patch
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> The Python Thrift generator does not include imports for all the exception types it uses, namely, "TApplicationException".
> To reproduce:
> Create two Thrift services (A and B) and start them.
> Using the Python client for B, connect to A and call one of the methods from the service.
> Expected result:
> {noformat}thrift.Thrift.TApplicationException: Invalid method name: 'someMethod'{noformat}
> Actual Result:
> {noformat}NameError: global name 'TApplicationException' is not defined{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira