[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] fix unable to load *.pyd files with Python 3.8.x on Windows

From: Jun Omae <jun66j5_at_gmail.com>
Date: Tue, 12 May 2020 14:47:04 +0900

Hi,

On Tue, May 12, 2020 at 4:33 AM Johan Corveleyn <jcorvel_at_gmail.com> wrote:
> [[[
> C:\research\svn\dev\trunk>python win-tests.py --log-level=DEBUG
> --debug --swig=python R:\test_swigpython
> Testing Debug configuration on local repository.
> -- Running Swig Python tests --
> Fatal Python error: _PyInterpreterState_Get(): no current thread state
> Python runtime state: unknown
>
> [Test runner reported failure]
> ]]]
>
> Any ideas?
> (Note: it's entirely possible that I did something wrong here locally :-))

Python bindings is unable to build with Debug mode. Instead, try to
build and test with Release mode.

The limitation is described in subversion/bindings/swig/INSTALL:

[[[
       NOTE: Our Python SWIG bindings will currently NOT compile in Debug mode
             unless you have python24_d.lib (which binary distributions of
             Python do not contain). Therefore, the Python bindings will only
             compile in Release mode. (This is due to pyconfig.h using the
            _DEBUG flag too and setting a #pragma comment(lib) value.)
]]]

-- 
Jun Omae <jun66j5_at_gmail.com> (大前 潤)
Received on 2020-05-12 07:47:22 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.