python path in eeschema
Bug #1820781 reported by
Adam Wolf
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Unknown
|
Bug Description
Basically, the BOM Generator dialog is running python but it's running the system python (with the bundled python's libraries :D). We want it to runthe bundled python. When users modify the command to use the bundled python, it works fine.
So I dug into it, and we fix the PATH so that when something from pcbnew runs "python", it runs the right python on both macOS and Windows.
I was going to fix it in common.cpp but I have not been able to get to it in the last few months so I am opening this up to anyone.
tags: | added: macos |
tags: | added: python |
Changed in kicad: | |
importance: | Undecided → Low |
milestone: | none → 6.0.0-rc1 |
status: | New → Triaged |
tags: | added: eeschema |
tags: | added: packaging |
Changed in kicad: | |
importance: | Low → Unknown |
status: | Expired → Fix Released |
To post a comment you must log in.
i think something snapped here recently
BOM generator stopped working.
Run command: bin\scripting\ plugins/ bom_csv_ grouped_ by_value. py" "C:\Cad\ AC\Batteries\ STB4\5SnP_ 4211573380\ 4211573380_ R15_2019_ 11_15_BMZ_ ECN\Display. xml" "C:/Cad/ AC/Batteries/ STB4/5SnP_ 4211573380/ 4211573380_ R15_2019_ 11_15_BMZ_ ECN/Display. csv"
python "C:\Program Files\KiCad\
Command error. Return code 3 [:<exec_ prefix> ] rror: No module named 'encodings'
Error messages:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundE
Current thread 0x00007b10 (most recent call first):
Application: Eeschema 393-gd4cea0f2b) , release build compatible with 2.8)
Version: (5.99.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Build date: Nov 18 2019 19:40:04
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.66.0
Compiler: GCC 9.2.0 with C++ ABI 1013
Build settings: SCRIPTING= ON SCRIPTING_ MODULES= ON SCRIPTING_ PYTHON3= OFF SCRIPTING_ WXPYTHON= ON SCRIPTING_ WXPYTHON_ PHOENIX= OFF SCRIPTING_ ACTION_ MENU=ON GITHUB_ PLUGIN= ON USE_OCE= ON USE_OCC= OFF
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON