You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2019/11/15 20:35:00 UTC

[jira] [Commented] (PROTON-2094) Support Python 3.7

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

Jiri Daněk commented on PROTON-2094:
------------------------------------

The supported version list in setup.py was amended in PROTON-2096.

bq. Could NOT find PythonLibs: Found unsuitable version "3.6.8" [...]

There are two Python detection commands used in CMake. There is {{FindPythonInterp}} [1] and {{FindPythonLibs}} [2]. It is necessary that {{PythonInterp}} is called first (which proton build script does) and that the interpreter and library that are found do match. When they don't (which is detected by version mismatch), you get the error you pasted.

What that error means is that interpreter "3.7.4" was found and library "3.6.8" was found, these are mismatched, so build fails.

Try adding {{-DPYTHON_EXECUTABLE=/path/to/interpreter/python}} to CMake commandline, maybe. The idea is to help those CMake modules to find matching versions of both interpreter and library.

What's {{pyenv}}? I am only familiar with {{pipenv}}, {{python -m venv}} and {{python -m virtualenv}}. In my experience, running cmake in any of these does work.

[1] https://cmake.org/cmake/help/latest/module/FindPythonInterp.html
[2] https://cmake.org/cmake/help/latest/module/FindPythonLibs.html

> Support Python 3.7
> ------------------
>
>                 Key: PROTON-2094
>                 URL: https://issues.apache.org/jira/browse/PROTON-2094
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: python-binding
>    Affects Versions: proton-c-0.29.0
>         Environment: Ubuntu 18.04
>            Reporter: Omer Katz
>            Assignee: Andrew Stitcher
>            Priority: Major
>              Labels: build, features
>             Fix For: proton-c-future
>
>
> I tried building the bindings locally on Python 3.7 and it didn't work.
> I checked setup.py and Python 3.7 is not listed under the supported versions.



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

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