You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2018/06/28 13:00:00 UTC

[jira] [Commented] (DISPATCH-1056) Build fails making docs on python-3-only fedora 28

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

Justin Ross commented on DISPATCH-1056:
---------------------------------------

Reproduced this.  I'm not sure if it is a defect. Perhaps it reflects some missing dependency metadata.

The qdmanage code starts with this line:

#!/usr/bin/env python

On F28, that resolves to Python 2, so it tries to load the proton Python binding from the Python 2 packages.  If I install python2-qpid-proton, everything goes as planned.  I didn't try it, but I think the same would happen if you built Proton with python2-devel and setup the paths.

It may be worth taking a look at changing the shebang to a generated value based on the platform.

> Build fails making docs on python-3-only fedora 28
> --------------------------------------------------
>
>                 Key: DISPATCH-1056
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1056
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.1.0
>            Reporter: Chuck Rolke
>            Assignee: Justin Ross
>            Priority: Major
>
> The build failed originally when asciidoc and asciidoctor were not installed. After installing them the build still fail. Proton is build and installed at a shared install prefix: /opt/local
> {{Scanning dependencies of target qdrouterd}}
> {{[ 91%] Building C object router/CMakeFiles/qdrouterd.dir/src/main.c.o}}
> {{[ 93%] Linking C executable qdrouterd}}
> {{[ 93%] Built target qdrouterd}}
> {{Scanning dependencies of target doc_gen}}
> {{[ 95%] Generating qdrouterd_help.adoc}}
> {{[ 96%] Generating qdrouterd.conf.5.adoc}}
> {{[100%] Generating qdmanage_help.adoc}}
> {{[100%] Generating qdstat_help.adoc}}
> {{Traceback (most recent call last):}}
> {{  File "/home/root/git/qpid-dispatch/tools/qdmanage", line 29, in <module>}}
> {{    from qpid_dispatch.management.client import Node, Url}}
> {{  File "/home/root/git/qpid-dispatch/python/qpid_dispatch/management/client.py", line 30, in <module>}}
> {{    import proton}}
> {{ImportError: No module named proton}}
> {{Traceback (most recent call last):}}
> {{  File "/home/root/git/qpid-dispatch/build/run.py", line 123, in <module>}}
> {{    run_path(sys.argv[0], run_name="__main__")}}
> {{  File "/home/root/git/qpid-dispatch/build/run.py", line 107, in run_path}}
> {{    runpy.run_path(file_path, run_name=run_name)}}
> {{  File "/usr/lib64/python2.7/runpy.py", line 252, in run_path}}
> {{    return _run_module_code(code, init_globals, run_name, path_name)}}
> {{  File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code}}
> {{    mod_name, mod_fname, mod_loader, pkg_name)}}
> {{  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code}}
> {{    exec code in run_globals}}
> {{  File "/home/root/git/qpid-dispatch/docs/man/help2txt.py", line 68, in <module>}}
> {{    main(sys.argv)}}
> {{  File "/home/root/git/qpid-dispatch/docs/man/help2txt.py", line 65, in main}}
> {{    print(help2txt(check_output(program)))}}
> {{  File "/usr/lib64/python2.7/subprocess.py", line 223, in check_output}}
> {{    raise CalledProcessError(retcode, cmd, output=output)}}
> {{subprocess.CalledProcessError: Command '['/home/root/git/qpid-dispatch/tools/qdmanage', '--help']' returned non-zero exit status 1}}
> {{make[2]: *** [docs/man/CMakeFiles/doc_gen.dir/build.make:83: docs/man/qdmanage_help.adoc] Error 1}}
> {{make[2]: *** Deleting file 'docs/man/qdmanage_help.adoc'}}
> {{make[2]: *** Waiting for unfinished jobs....}}
> {{Traceback (most recent call last):}}
> {{  File "/home/root/git/qpid-dispatch/tools/qdstat", line 35, in <module>}}
> {{    from qpid_dispatch.management.client import Url, Node, Entity}}
> {{  File "/home/root/git/qpid-dispatch/python/qpid_dispatch/management/client.py", line 30, in <module>}}
> {{    import proton}}
> {{ImportError: No module named proton}}
> {{Traceback (most recent call last):}}
> {{  File "/home/root/git/qpid-dispatch/build/run.py", line 123, in <module>}}
> {{    run_path(sys.argv[0], run_name="__main__")}}
> {{  File "/home/root/git/qpid-dispatch/build/run.py", line 107, in run_path}}
> {{    runpy.run_path(file_path, run_name=run_name)}}
> {{  File "/usr/lib64/python2.7/runpy.py", line 252, in run_path}}
> {{    return _run_module_code(code, init_globals, run_name, path_name)}}
> {{  File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code}}
> {{    mod_name, mod_fname, mod_loader, pkg_name)}}
> {{  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code}}
> {{    exec code in run_globals}}
> {{  File "/home/root/git/qpid-dispatch/docs/man/help2txt.py", line 68, in <module>}}
> {{    main(sys.argv)}}
> {{  File "/home/root/git/qpid-dispatch/docs/man/help2txt.py", line 65, in main}}
> {{    print(help2txt(check_output(program)))}}
> {{  File "/usr/lib64/python2.7/subprocess.py", line 223, in check_output}}
> {{    raise CalledProcessError(retcode, cmd, output=output)}}
> {{subprocess.CalledProcessError: Command '['/home/root/git/qpid-dispatch/tools/qdstat', '--help']' returned non-zero exit status 1}}
> {{make[2]: *** [docs/man/CMakeFiles/doc_gen.dir/build.make:91: docs/man/qdstat_help.adoc] Error 1}}
> {{make[2]: *** Deleting file 'docs/man/qdstat_help.adoc'}}
> {{make[1]: *** [CMakeFiles/Makefile2:385: docs/man/CMakeFiles/doc_gen.dir/all] Error 2}}
> {{make: *** [Makefile:141: all] Error 2}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org