You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Skraba (Jira)" <ji...@apache.org> on 2021/03/30 17:19:00 UTC
[jira] [Created] (AVRO-3100) Python tool fails during RPC interop
tests
Ryan Skraba created AVRO-3100:
---------------------------------
Summary: Python tool fails during RPC interop tests
Key: AVRO-3100
URL: https://issues.apache.org/jira/browse/AVRO-3100
Project: Apache Avro
Issue Type: Bug
Components: python
Affects Versions: 1.11.0
Reporter: Ryan Skraba
Fix For: 1.11.0
The `avro.tool` module fails during RPC interop tests.
When py_tool is set to {{python3 -m avro.tool}}:
{code}
+ py_tool rpcsend http://127.0.0.1:45815 share/test/schemas/simple.avpr add -file share/test/interop/rpc/add/onePlusOne/request.avro
+ PYTHONPATH=lang/py
+ python3 -m avro.tool rpcsend http://127.0.0.1:45815 share/test/schemas/simple.avpr add -file share/test/interop/rpc/add/onePlusOne/request.avro
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/rskraba/avro/lang/py/avro/tool.py", line 166, in <module>
sys.exit(main(sys.argv))
File "/home/rskraba/avro/lang/py/avro/tool.py", line 157, in main
send_message(uri, proto, msg, datum)
File "/home/rskraba/avro/lang/py/avro/tool.py", line 91, in send_message
url_obj = urllib.parse(uri)
TypeError: 'module' object is not callable
{code}
(See https://github.com/apache/avro/pull/1165)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)