[ 
https://issues.apache.org/jira/browse/DISPATCH-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281111#comment-17281111
 ] 

ASF subversion and git services commented on DISPATCH-1946:
-----------------------------------------------------------

Commit e78a18ae77451afc5dda064467f0695a3742fd41 in qpid-dispatch's branch 
refs/heads/master from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=e78a18a ]

DISPATCH-1946: Ensure that router schema is presented to json as a string

This closes #1013


> [docker] Schema compile fails in ubuntu xenial container
> --------------------------------------------------------
>
>                 Key: DISPATCH-1946
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1946
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Container, Management Agent
>    Affects Versions: 1.14.0
>         Environment: Host: Fedora 32 x86_64;
> Docker version 19.03.11, build 42e35e6;
> File dockerfiles/Dockerfile-ubuntu changed: "FROM ubuntu:latest", to use 
> "FROM ubuntu:xenial"
>  
>            Reporter: Charles E. Rolke
>            Assignee: Charles E. Rolke
>            Priority: Major
>
> {{ValueError: Invalid schema qdrouter.json: the JSON object must be str, not 
> 'bytes'}}
>  
> {code:java}
> # make
> [  1%] Generating schema_enum.h, schema_enum.c
> Run python script '/qpid-dispatch/src/schema_c.py':ValueError: Invalid schema 
> qdrouter.json: the JSON object must be str, not 'bytes'
> Traceback (most recent call last):
>   File "/qpid-dispatch/python/qpid_dispatch_internal/management/qdrouter.py", 
> line 45, in __init__
>     super(QdSchema, self).__init__(**json.loads(qd_schema, 
> **JSON_LOAD_KWARGS))
>   File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
>     s.__class__.__name__))
> TypeError: the JSON object must be str, not 'bytes'
> During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
>   File "/qpid-dispatch/build/tests/run.py", line 132, in <module>
>     run_path(sys.argv[0], run_name="__main__")
>   File "/qpid-dispatch/build/tests/run.py", line 116, in run_path
>     runpy.run_path(file_path, run_name=run_name)
>   File "/usr/lib/python3.5/runpy.py", line 254, in run_path
>     pkg_name=pkg_name, script_name=fname)
>   File "/usr/lib/python3.5/runpy.py", line 96, in _run_module_code
>     mod_name, mod_spec, pkg_name, script_name)
>   File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
>     exec(code, run_globals)
>   File "/qpid-dispatch/src/schema_c.py", line 111, in <module>
>     Generator()
>   File "/qpid-dispatch/src/schema_c.py", line 58, in __init__
>     self.schema = QdSchema()
>   File "/qpid-dispatch/python/qpid_dispatch_internal/management/qdrouter.py", 
> line 47, in __init__
>     raise ValueError("Invalid schema qdrouter.json: %s" % e)
> ValueError: Invalid schema qdrouter.json: the JSON object must be str, not 
> 'bytes'
> src/CMakeFiles/qpid-dispatch.dir/build.make:71: recipe for target 
> 'src/schema_enum.h' failed
> make[2]: *** [src/schema_enum.h] Error 1
> CMakeFiles/Makefile2:981: recipe for target 
> 'src/CMakeFiles/qpid-dispatch.dir/all' failed
> make[1]: *** [src/CMakeFiles/qpid-dispatch.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to