Opened 3 weeks ago

Closed 3 weeks ago

#2265 closed defect (fixed)

Compatibility issues on Python 3.7 or above

Reported by: nanang Owned by: nanang
Priority: normal Milestone: release-2.10
Component: python Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

This ticket will address two compatibility issues in PJSUA2 Python (via SWIG):

  • Makefile hardcoded to use Python 3.6.
  • async becomes reserved keyword since Python 3.7.

Thanks to Wüstengecko for the report and the proposed patch.

Known issue using Python3 on Windows/MSys

The PJSUA2 module setup fails with message:

ValueError: Unknown MS Compiler version 1900/1916/...

It turns out that for mingw32, the Python3 distutil setup checks the Python3 distribution version (to include specific MSVC library in the linking). Some Python3 installers downloaded from python.org puts MSVC 19xx in its version string, which is unfortunately unrecognized by distutil setup.

Change History (1)

comment:1 Changed 3 weeks ago by nanang

  • Owner set to nanang
  • Resolution set to fixed
  • Status changed from new to closed

In 6152:

Close #2265: Fixed compatibility issues on Python 3.7 or above.

Note: See TracTickets for help on using tickets.