Open scripting console on centos7.9

version: 6.99 nightly
– The C compiler identification is GNU 9.3.0
[cmake] – The CXX compiler identification is GNU 9.3.0
[cmake] – Check for working C compiler: /usr/local/gcc-9.3.0/bin/gcc
[cmake] – Check for working C compiler: /usr/local/gcc-9.3.0/bin/gcc - works
[cmake] – Detecting C compiler ABI info
[cmake] – Detecting C compiler ABI info - done
[cmake] – Detecting C compile features
[cmake] – Detecting C compile features - done
[cmake] – Check for working CXX compiler: /usr/local/gcc-9.3.0/bin/g++
[cmake] – Check for working CXX compiler: /usr/local/gcc-9.3.0/bin/g++ - works
[cmake] – Detecting CXX compiler ABI info
[cmake] – Detecting CXX compiler ABI info - done
[cmake] – Detecting CXX compile features
[cmake] – Detecting CXX compile features - done
[cmake] – KiCad install dir: </home/bzdr/kicad/build/debug/install>
[cmake] – Looking for malloc.h
[cmake] – Looking for malloc.h - found
[cmake] – Looking for iso646.h
[cmake] – Looking for iso646.h - found
[cmake] – Looking for stdint.h
[cmake] – Looking for stdint.h - found
[cmake] – Looking for strcasecmp
[cmake] – Looking for strcasecmp - found
[cmake] – Looking for strncasecmp
[cmake] – Looking for strncasecmp - found
[cmake] – Looking for strtok_r
[cmake] – Looking for strtok_r - found
[cmake] – Looking for malloc
[cmake] – Looking for malloc - found
[cmake] – Looking for math.h
[cmake] – Looking for math.h - found
[cmake] – Looking for C++ include cmath
[cmake] – Looking for C++ include cmath - found
[cmake] – Looking for asinh
[cmake] – Looking for asinh - found
[cmake] – Looking for acosh
[cmake] – Looking for acosh - found
[cmake] – Looking for atanh
[cmake] – Looking for atanh - found
[cmake] – Performing Test HAVE_CMATH_ISINF
[cmake] – Performing Test HAVE_CMATH_ISINF - Success
[cmake] – Looking for clock_gettime in rt
[cmake] – Looking for clock_gettime in rt - found
[cmake] – Looking for gettimeofday
[cmake] – Looking for gettimeofday - found
[cmake] – Looking for getc_unlocked
[cmake] – Looking for getc_unlocked - found
[cmake] – Performing Test COMPILER_SUPPORTS_WSUGGEST_OVERRIDE
[cmake] – Performing Test COMPILER_SUPPORTS_WSUGGEST_OVERRIDE - Success
[cmake] – Enabling warning -Wsuggest-override
[cmake] – Performing Test COMPILER_SUPPORTS_WINCONSISTENT_MISSING_OVERRIDE
[cmake] – Performing Test COMPILER_SUPPORTS_WINCONSISTENT_MISSING_OVERRIDE - Failed
[cmake] – Performing Test COMPILER_SUPPORTS_WDUPLICATED_BRANCHES
[cmake] – Performing Test COMPILER_SUPPORTS_WDUPLICATED_BRANCHES - Success
[cmake] – Enabling warning -Wduplicated-branches
[cmake] – Performing Test COMPILER_SUPPORTS_WDUPLICATED_COND
[cmake] – Performing Test COMPILER_SUPPORTS_WDUPLICATED_COND - Success
[cmake] – Enabling warning -Wduplicated-cond
[cmake] – Performing Test COMPILER_SUPPORTS_WVLA
[cmake] – Performing Test COMPILER_SUPPORTS_WVLA - Success
[cmake] – Enabling error for -Wvla
[cmake] – Performing Test COMPILER_SUPPORTS_WIMPLICIT_FALLTHROUGH
[cmake] – Performing Test COMPILER_SUPPORTS_WIMPLICIT_FALLTHROUGH - Success
[cmake] – Enabling warning -Wimplicit-fallthrough
[cmake] – Performing Test COMPILER_SUPPORTS_WRETURN_TYPE
[cmake] – Performing Test COMPILER_SUPPORTS_WRETURN_TYPE - Success
[cmake] – Enabling error for -Wreturn-type
[cmake] – Performing Test COMPILER_SUPPORTS_WSHADOW
[cmake] – Performing Test COMPILER_SUPPORTS_WSHADOW - Success
[cmake] – Enabling warning -Wshadow
[cmake] – Performing Test COMPILER_SUPPORTS_WSIGN
[cmake] – Performing Test COMPILER_SUPPORTS_WSIGN - Success
[cmake] – Enabling warning -Wsign-compare
[cmake] – Performing Test COMPILER_SUPPORTS_WMISSING_INIT
[cmake] – Performing Test COMPILER_SUPPORTS_WMISSING_INIT - Success
[cmake] – Enabling warning -Wmissing-field-initializers
[cmake] – Performing Test COMPILER_SUPPORTS_WEMPTY_BODY
[cmake] – Performing Test COMPILER_SUPPORTS_WEMPTY_BODY - Success
[cmake] – Enabling warning -Wempty-body
[cmake] – Performing Test COMPILER_SUPPORTS_WREORDER
[cmake] – Performing Test COMPILER_SUPPORTS_WREORDER - Success
[cmake] – Enabling warning -Wreorder
[cmake] – Performing Test COMPILER_SUPPORTS_WMISMATCHED_TAGS
[cmake] – Performing Test COMPILER_SUPPORTS_WMISMATCHED_TAGS - Failed
[cmake] – Performing Test COMPILER_SUPPORTS_WIMPLICIT_FLOAT_CONVERSION
[cmake] – Performing Test COMPILER_SUPPORTS_WIMPLICIT_FLOAT_CONVERSION - Failed
[cmake] – Performing Test COMPILER_SUPPORTS_WPSABI
[cmake] – Performing Test COMPILER_SUPPORTS_WPSABI - Success
[cmake] – Disabling warning -Wpsabi
[cmake] – Configuring KiCad for the wxGLCanvas EGL backend
[cmake] – Found Gettext: /bin/msgmerge (found version “0.19.8.1”)
[cmake] – Found OpenGL: /usr/lib64/libOpenGL.so
[cmake] – Found OpenGL EGL library: /usr/lib64/libEGL.so
[cmake] – Found GLM: /usr/include (found suitable version “0.9.8.6”, minimum required is “0.9.8”)
[cmake] – Found ZLIB: /usr/lib64/libz.so (found version “1.2.7”)
[cmake] – Check for installed ZLIB – found
[cmake] – Found CURL: /usr/lib64/libcurl.so (found version “7.29.0”)
[cmake] – Found PkgConfig: /bin/pkg-config (found version “0.27.1”)
[cmake] – Checking for module ‘cairo’
[cmake] – Found cairo, version 1.15.12
[cmake] – Found Cairo: /usr/lib64/libcairo.so (found suitable version “1.15.12”, minimum required is “1.12”)
[cmake] – Checking for module ‘pixman-1’
[cmake] – Found pixman-1, version 0.34.0
[cmake] – Found Pixman: /usr/lib64/libpixman-1.so (found suitable version “0.34.0”, minimum required is “0.30”)
[cmake] – Found Boost: /usr/local/lib/cmake/Boost-1.78.0/BoostConfig.cmake (found suitable version “1.78.0”, minimum required is “1.59.0”)
[cmake] – Found Freetype: /usr/lib64/libfreetype.so (found version “2.8.0”)
[cmake] – Found the following HarfBuzz libraries:
[cmake] – HarfBuzz (required): /usr/lib64/libharfbuzz.so
[cmake] – Found HarfBuzz: /usr/include/harfbuzz (found version “1.7.5”)
[cmake] – Found Fontconfig: /usr/lib64/libfontconfig.so (found version “2.13.0”)
[cmake] – Found OCC: /usr/local/occt/include/opencascade (found version “7.6.0”)
[cmake] – Found OpenCASCADE Standard Edition version: 7.6.0
[cmake] – ++ OpenCASCADE Standard Edition include directory: /usr/local/occt/include/opencascade
[cmake] – ++ OpenCASCADE Standard Edition shared libraries directory: /usr/local/occt/lib
[cmake] – Found SWIG: /usr/local/bin/swig (found suitable version “4.0.2”, minimum required is “3.0”)
[cmake] – pybind11 v2.7.1
[cmake] – Found PythonInterp: /usr/local/bin/python3 (found version “3.6.8”)
[cmake] – Found PythonLibs: /usr/local/python3.6.8/lib/libpython3.6m.so
[cmake] – Performing Test HAS_FLTO
[cmake] – Performing Test HAS_FLTO - Success
[cmake] – Found PythonInterp: /usr/local/bin/python3 (found suitable version “3.6.8”, minimum required is “3.6”)
[cmake] – Check for installed Python Interpreter – found
[cmake] – Python module install path: lib/python3.6/site-packages
[cmake] – Found PythonLibs: /usr/local/python3.6.8/lib/libpython3.6m.so (found suitable version “3.6.8”, minimum required is “3.6”)
[cmake] – Found Phoenix 4.1.1/gtk3 (wxWidgets 3.1.5)
[cmake] – Found wxWidgets: -L/usr/local/wxWidgets-3.1.5/lib;-pthread;;;-lwx_gtk3u_gl-3.1;-lwx_gtk3u_aui-3.1;-lwx_gtk3u_html-3.1;-lwx_gtk3u_core-3.1;-lwx_baseu_net-3.1;-lwx_baseu-3.1;-lwx_gtk3u_propgrid-3.1;-lwx_baseu_xml-3.1;-lwx_gtk3u_stc-3.1;-lwx_gtk3u_richtext-3.1 (found suitable version “3.1.5”, minimum required is “3.1.5”)
[cmake] – Found Doxygen: /bin/doxygen (found version “1.8.5”) found components: doxygen missing components: dot
[cmake] – Found UnixCommands: /bin/bash
[cmake] – Checking for module ‘gtk±3.0’
[cmake] – Found gtk±3.0, version 3.22.30
[cmake] – S3DSG version: 2.0.0
[cmake] – Found Boost: /usr/local/lib/cmake/Boost-1.78.0/BoostConfig.cmake (found version “1.78.0”) found components: unit_test_framework filesystem system
[cmake] – Found wxWidgets: -L/usr/local/wxWidgets-3.1.5/lib;-pthread;;;-lwx_gtk3u_gl-3.1;-lwx_gtk3u_aui-3.1;-lwx_gtk3u_html-3.1;-lwx_gtk3u_core-3.1;-lwx_baseu_net-3.1;-lwx_baseu-3.1;-lwx_baseu_xml-3.1;-lwx_gtk3u_stc-3.1 (found suitable version “3.1.5”, minimum required is “3.0.0”)
[cmake] – Configuring done
[cmake] CMake Warning (dev) at thirdparty/3dxware_sdk/CMakeLists.txt:33 (add_library):
[cmake] Policy CMP0063 is not set: Honor visibility properties for all target
[cmake] types. Run “cmake --help-policy CMP0063” for policy details. Use the
[cmake] cmake_policy command to set the policy and suppress this warning.
[cmake]
[cmake] Target “TDxNavlib” of type “STATIC_LIBRARY” has the following visibility
[cmake] properties set for CXX:
[cmake]
[cmake] CXX_VISIBILITY_PRESET
[cmake] VISIBILITY_INLINES_HIDDEN
[cmake]
[cmake] For compatibility CMake is not honoring them for this target.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] – Generating done

click the scripting console button , the report err :

python path(sys.attr(“path”)) :
[’/home/bzdr/kicad/build/debug/pcbnew;
/home/bzdr/kicad//scripting;
/usr/local/python3.6.8/lib/python3.6/site-packages/wx’,
‘/home/bzdr/kicad/build/debug/pcbnew’,
‘/usr/local/python3.6.8/lib/python36.zip’,
‘/usr/local/python3.6.8/lib/python3.6’,
‘/usr/local/python3.6.8/lib/python3.6/lib-dynload’,
‘/usr/local/python3.6.8/lib/python3.6/site-packages’,
‘.’,
‘/home/bzdr/kicad//build/debug/scripting’,
‘/home/bzdr/.local/share/kicad/6.99/scripting’,
‘/home/bzdr/.local/share/kicad/6.99/scripting/plugins’
]

Hello and welcome @bzdr

It is best to post a copy of your version information.

Go to Help / About Kicad / Copy version information (top right hand corner of opened window).

To me it looks like the problem has nothing to do with KiCad directly. There’s some library incompatibility in the system’s libraries, in wxWidgets python bindings.

Wasn’t the minimum python bumped to at least 3.8 for kicad6 ?

No, it’s 3.6 even in 6.99.

You can try starting a normal python interpreter in a terminal window, then from wx import core. Does it throw the same error or does it succeed?

Application: KiCad PCB Editor

Version: 6.99.0-unknown, debug build

Libraries:
wxWidgets 3.1.5
FreeType 2.8.0
HarfBuzz 1.7.5
FontConfig 2.13.0
libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0

Platform: Linux 3.10.0-1160.el7.x86_64 x86_64, 64 bit, Little endian, wxGTK, ,

Build Info:
Date: Jun 14 2022 19:36:43
wxWidgets: 3.1.5 (wchar_t,wx containers) GTK+ 3.22
Boost: 1.78.0
OCC: 7.6.0
Curl: 7.29.0
ngspice: 31
Compiler: GCC 9.3.0 with C++ ABI 1013

Build settings:
KICAD_USE_OCC=ON
KICAD_USE_EGL=ON
KICAD_SPICE=ON
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE_ADDRESS=OFF
KICAD_SANITIZE_THREADS=OFF

it does succeed

in a terminal window, then from wx import core do succeed , it’s any other problems?

The error in your first post suggests that the wxPython library you have doesn’t match the wxWidgets library, although they seem to match on versions. How did you get those libs, through system package manager, pip, manually compiled?

Save this to a test.py

import wx

app = wx.App()
wx.MessageBox("wx is working correctly")

and run it with python3 test.py, you should see a popup.

1、i get those libs by cmd: pip3 install -U -f Index of /wxPython4/extras/linux/gtk3/centos-7 wxPython
2、 python3 test.py result
image
Gtk-Message: 14:49:43.785: GtkDialog mapped without a transient parent. This is discouraged.

That seems fine. I’m not too familiar with centos but when I install wxpython from pip on debian it doesn’t work properly. Try getting both wxwidgets and wxpython from system repository, that guarantees that they can cooperate.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.