KiPython scripting console greyed out, extensions not working

Hi all, I finally got around to installing 6 and as I somewhat expected, there are problems with all of my plugins. I’m trying to install RC Tools, InteractiveHtmlBom, and Teardrops and haven’t been able to get them to work when I put the unzipped folders (always with init.py directly available) in my “plugins” folder. Furthermore, when I try to open the Scripting Console two windows open: the first, called “wxPython: stdout/stderr” contains a long error message and the KiPython window is completely greyed out, and I can’t input any text on either.

I’ve tried both version 6.0.5 and 6.0.4 with the exact same behavior. I’ve found some reference to similar behavior on other threads but not exactly this it seems. Does anyone have any tips I could try?

Error message is:
Traceback (most recent call last):
File “”, line 1, in
File “/private/var/folders/mp/9wnz92qn6tq7qqswjr1t_c440000gn/T/AppTranslocation/D0CEAC6C-12B1-434C-BAFF-08F622D7BDBC/d/KiCad.app/Contents/SharedSupport/scripting/kicad_pyshell/init.py”, line 25, in
from wx.py import crust, version, dispatcher
File “/private/var/folders/mp/9wnz92qn6tq7qqswjr1t_c440000gn/T/AppTranslocation/D0CEAC6C-12B1-434C-BAFF-08F622D7BDBC/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/init.py”, line 6, in
from . import crust
File “/private/var/folders/mp/9wnz92qn6tq7qqswjr1t_c440000gn/T/AppTranslocation/D0CEAC6C-12B1-434C-BAFF-08F622D7BDBC/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/crust.py”, line 16, in
from .shell import Shell
File “/private/var/folders/mp/9wnz92qn6tq7qqswjr1t_c440000gn/T/AppTranslocation/D0CEAC6C-12B1-434C-BAFF-08F622D7BDBC/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/shell.py”, line 28, in
from .path import ls,cd,pwd,sx
File “/private/var/folders/mp/9wnz92qn6tq7qqswjr1t_c440000gn/T/AppTranslocation/D0CEAC6C-12B1-434C-BAFF-08F622D7BDBC/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/path.py”, line 8, in
import subprocess
File “/private/var/folders/mp/9wnz92qn6tq7qqswjr1t_c440000gn/T/AppTranslocation/D0CEAC6C-12B1-434C-BAFF-08F622D7BDBC/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/subprocess.py”, line 64, in
import msvcrt
File “”, line 991, in _find_and_load
File “”, line 971, in _find_and_load_unlocked
File “”, line 914, in _find_spec
File “”, line 1342, in find_spec
File “”, line 1314, in _get_spec
File “”, line 1443, in find_spec
File “”, line 1483, in _fill_cache
OSError: [Errno 34] Result too large: ‘.’

Kicad info:

Application: KiCad

Version: (6.0.4-0), release build

Libraries:
wxWidgets 3.1.5
libcurl/7.64.1 SecureTransport (LibreSSL/2.8.3) zlib/1.2.11 nghttp2/1.41.0

Platform: macOS Big Sur Version 11.6 (Build 20G165), 64 bit, Little endian, wxMac

Build Info:
Date: Mar 17 2022 21:21:05
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.78.0
OCC: 7.6.1
Curl: 7.64.1
ngspice: 35
Compiler: Clang 12.0.0 with C++ ABI 1002

Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON

I know for a fact that Interactive HTML BOM is available in the new plugin manager, but I’m not sure about the other two. Have you tried using the plugin manager (from KiCad’s project manager it is in the “Tools” menu as “Plugin and Content Manager”. If that works and your other plugins aren’t available there, try to see where the PCM installed Interactive HTML BOM and try to emulate the install process by hand.

I’m not familiar with MacOS, so I’m not sure where plugins are placed on that OS.

I’m experiencing a similar problem, but encountered it a different way.

I was using 6.0.5 (release) for Mac, and installed plugins via the new PCM “Plugin and Content Manager”. They were working fine.

Now I upgraded to 6.0.6 (release) for Mac, and the plugins are no longer appearing in the menus or GUI.

I tried to uninstall and reinstall them in the PCM, but the problem persists.

To debug, I went to Preferences > Action Plugins and clicked the yellow ! icon button, here is the output …

  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/SharedSupport/scripting/kicad_pyshell/__init__.py", line 25, in <module>
    from wx.py import crust, version, dispatcher
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/__init__.py", line 6, in <module>
    from . import crust
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/crust.py", line 16, in <module>
    from .shell import Shell
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/shell.py", line 28, in <module>
    from .path import ls,cd,pwd,sx
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/path.py", line 8, in <module>
    import subprocess
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/subprocess.py", line 64, in <module>
    import msvcrt
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

**********************************
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

Just checked, and my install of 6.0.6 (release) for Mac has the same problem.

Same message as Jack mentioned in the stdout/stderr window…

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/SharedSupport/scripting/kicad_pyshell/__init__.py", line 25, in <module>
    from wx.py import crust, version, dispatcher
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/__init__.py", line 6, in <module>
    from . import crust
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/crust.py", line 16, in <module>
    from .shell import Shell
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/shell.py", line 28, in <module>
    from .path import ls,cd,pwd,sx
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wx/py/path.py", line 8, in <module>
    import subprocess
  File "/private/var/folders/3h/h0lsc1wx6ds311g4xqfxzhnc0000gn/T/AppTranslocation/C7860B19-1B1F-4542-BACD-7C280B78EFD9/d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/subprocess.py", line 64, in <module>
    import msvcrt
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 914, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1342, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1443, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache
OSError: [Errno 34] Result too large: '.'

Hey Jack, I am not certain, but I think we are both experiencing this bug …

Issue #9428: Scripts not working and Scripting Console throwing errors

It is marked as “duplicate” of a closed bug …

Issue #8622: Python Scripting - KiPython initial window is initially almost empty

But we are experiencing #9428 and not #8622, since our console does not “pop open and display meaningful content” (my console stays greyed out and empty when I resize the console window), so perhaps #9428 was misdiagnosed as a duplicate :face_with_monocle:

Reading around online, and since we are both on Mac OS, it seems likely that it might be something having to do with Translocation or some other security feature stepping on the toes of KiCad’s Python, but I am not certain that is the cause yet.

Hi all,

I am facing a very similar problem in MacOS. I think there are two issues, at least from what I can gather:

  1. The msvcrt that @zambetti reports is an specific module for Windows users. The import fails because importing it somehow gives that issue. This can be fixed if in: /private/var/folders/jh/.../T/AppTranslocation/.../d/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.8/subprocess.py you change
# try:
#     import msvcrt
#     import _winapi
#     _mswindows = True
# except ModuleNotFoundError:
    # _mswindows = False
    # import _posixsubprocess
    # import select
    # import selectors
# else:
#     from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP,
#                          STD_INPUT_HANDLE, STD_OUTPUT_HANDLE,
#                          STD_ERROR_HANDLE, SW_HIDE,
#                          STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW,
#                          ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
#                          HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,
#                          NORMAL_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
#                          CREATE_NO_WINDOW, DETACHED_PROCESS,
#                          CREATE_DEFAULT_ERROR_MODE, CREATE_BREAKAWAY_FROM_JOB)

#     __all__.extend(["CREATE_NEW_CONSOLE", "CREATE_NEW_PROCESS_GROUP",
#                     "STD_INPUT_HANDLE", "STD_OUTPUT_HANDLE",
#                     "STD_ERROR_HANDLE", "SW_HIDE",
#                     "STARTF_USESTDHANDLES", "STARTF_USESHOWWINDOW",
#                     "STARTUPINFO",
#                     "ABOVE_NORMAL_PRIORITY_CLASS", "BELOW_NORMAL_PRIORITY_CLASS",
#                     "HIGH_PRIORITY_CLASS", "IDLE_PRIORITY_CLASS",
#                     "NORMAL_PRIORITY_CLASS", "REALTIME_PRIORITY_CLASS",
#                     "CREATE_NO_WINDOW", "DETACHED_PROCESS",
#                     "CREATE_DEFAULT_ERROR_MODE", "CREATE_BREAKAWAY_FROM_JOB"])
_mswindows = False
import _posixsubprocess
import select
import selectors

That is a dirty hack that should be fixed somehow in future releases, maybe without a better way for assessing if you are in Windows than with a try-except assessment.

  1. If you fix that, then the other issue that @zambetti explains pops up to me (I also see it in the console). I was playing around in the importlib source code, but couldn’t figure out why that was happening…
1 Like

Unfortunately, InteractiveHtmlBOM and other “internal” plugins don’t work either on my Mac. I’m certain that the issue is related to MacOS’ “protective” features, but I’m not comfortable totally disabling Gatekeeper and I don’t know how to code-sign properly. (If someone has suggestions on how to properly do it, by all means please share!)

For now, I’m basically just back to using version 5. Bummer.

Hi Andy, did you have 6.0.5 installed before? Are you running 6.0.6 now?

For me 6.0.5 was working perfectly (with plugins/python, etc). This problem began when I installed 6.0.6 (by drag&drop replacing the 6.0.5 folder from the 6.0.6 DMG)

See if removing the kicad folder from applications and then copying 6.0.6 helps.

There isn’t one in kicad v6. I only recently added it to nightly.

1 Like

Hello and thank you!

Your suggestion to delete the /Applications/KiCad folder, then reinstall from the DMG solved the problem.

I would never have guessed that the security features in Mac OS consider deletion/creation to be different than drag/drop replacement, strange.

I suppose this problem isn’t widespread, otherwise there’d be more discussion about it, but this might be a good reason to revise the installer DMG instructions (screenshot below).

Thank you again, this is a huge help since I rely quite a bit on some plugins.

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