-
Notifications
You must be signed in to change notification settings - Fork 6
eeschema is using system Python #227
Comments
This is somewhat confusing. build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/bin/python
Hmm. |
@agatti is that when you use a download from downloads.kicad-pcb.org or when you build it yourself? |
Could someone who doesn't compile KiCad on their Mac test the following for
me? Could you go into a terminal and type the following:
DYLD_PRINT_LIBRARIES=YES DYLD_PRINT_LIBRARIES_POST_LAUNCH=YES
/Applications/KiCad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/bin/python
-c 'import xml.sax as sax; sax.make_parser()'; echo $?
and paste me the complete output? Also, if possible and you haven't
already, could you tell me if the above steps when doing the BOM thing also
breaks for you?
Thanks a bunch, this will really help me get this solved.
…On Wed, Oct 31, 2018 at 8:23 AM xzcvczx ***@***.***> wrote:
@agatti <https://github.com/agatti> is that when you use a download from
downloads.kicad-pcb.org or when you build it yourself?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACLYVFMgWvrgCnSmw4PFziffCcTenOGks5uqaQ3gaJpZM4X9anx>
.
|
|
@xzcvczx it was a nightly build downloaded from downloads.kicad-pcb.org indeed. |
Can you check your sys.path |
xzcvczx can you reproduce the crash?
…On Wed, Oct 31, 2018, 8:10 PM xzcvczx ***@***.*** wrote:
Can you check your sys.paths
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACLYUwDRUQpjVtMZjzKIR4JRvIGtAVlks5uqknwgaJpZM4X9anx>
.
|
i will try it in a couple of hours |
ah, i think i might know what the issue is.....
and if i modify the command to
is that using $PATH to find/run python as such is not even using bundled python |
That's what I thought too! but look at the stack trace... hmm.
…On Wed, Oct 31, 2018 at 9:35 PM xzcvczx ***@***.***> wrote:
ah, i think i might know what the issue is.....
python "/Applications/kicad.app/Contents/SharedSupport/plugins/bom_html_grouped_by_value.py" "%I" "%O"
is that using $PATH to find/run python as such is not even using bundled
python
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACLYWmp3OQELo4MdopvBjIdsCeJdojTks5uql4GgaJpZM4X9anx>
.
|
Maybe it's using the system python, with the PYTHONPATH set from the
wrapper? that would do it!
On Wed, Oct 31, 2018 at 9:53 PM Adam Wolf <[email protected]>
wrote:
… That's what I thought too! but look at the stack trace... hmm.
On Wed, Oct 31, 2018 at 9:35 PM xzcvczx ***@***.***> wrote:
> ah, i think i might know what the issue is.....
>
> python "/Applications/kicad.app/Contents/SharedSupport/plugins/bom_html_grouped_by_value.py" "%I" "%O"
>
> is that using $PATH to find/run python as such is not even using bundled
> python
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#227 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AACLYWmp3OQELo4MdopvBjIdsCeJdojTks5uql4GgaJpZM4X9anx>
> .
>
|
oh weird i wonder how thats happened, i ran those commands inside the bom gen window and i don't get the bundle paths |
Is there a workaround for this ? |
Maybe! Based on the thread above, you may be able to run the BOM generator with a modified beginning. Can you try changing the "python" part at the beginning to be: /Applications/kicad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python and let me know how it goes? |
This is working like a charm! Thanks a lot! |
I dug into fixing this in KiCad, and have poked the dev mailing list when I
got stuck. I'll run this down and get it fixed upstream.
…On Tue, Dec 18, 2018 at 6:51 AM Thomas Brichart ***@***.***> wrote:
Maybe! Based on the thread above, you may be able to run the BOM generator
with a modified beginning. Can you try changing the "python" part at the
beginning to be:
/Applications/kicad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python
and let me know how it goes?
This is working like a charm! Thanks a lot!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACLYVgLoJ5E8Hz73EoxALVjaFYylEB5ks5u6OTqgaJpZM4X9anx>
.
|
the fix worked for me too. thanks |
I have the same problem with OS X and the new line gave me this error: Command error. Return code -1 |
@timatthehub I think that's a different issue, at least by the looks of it. That looks like there's actually an error when the script runs, which is different than this issue, which is that it isn't finding the right version. |
@timatthehub I had the same issue. I changed the beginning to the following: instead of: |
This problem still exists on: Build settings: The changing python to /Applications/KiCad/kicad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python bom_csv_sorted_by_ref.py produces: Success Except the output is supposed to be ShiftTeensy.csv not ShiftTeensy |
Continued: Command error. Return code 2 Whats with the python 2.7version, thought was supposed to be 3.x |
After looking around a little more something tells me I'm posting in the wrong place. Where should I be posting this? thanks |
The problem is that KiCad is just calling "python" and assuming that the
path is set correctly.
KiCad on macos still uses Python 2.7, and will until the 6 series. The
change from 2.7 to 3 on and how it is packaged is kinda a big one, and not
super suitable for 5.1, which is primarily being released for a technical
reason regarding Linux desktops.
I need to figure out if this is better solved in KiCad or in the packaging
for macOS.
There are two workarounds posted above, I believe. Have you tried those?
…On Mon, Mar 18, 2019, 7:31 PM Mike4U ***@***.***> wrote:
After looking around a little more something tells me I'm posting in the
wrong place. Where should I be posting this?
thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACLYR7KiBx6dzpQmGmeCz2LF6fwUAR5ks5vYC_4gaJpZM4X9anx>
.
|
I posted this upstream: https://bugs.launchpad.net/kicad/+bug/1820781 |
The python path Tyden posted above worked for me. Repeating here for completeness for others. /Applications/KiCad/kicad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python |
Reproduction steps:
-- OS Version
ProductName: Mac OS X
ProductVersion: 10.14
BuildVersion: 18A391
-- KiCad version
KiCad nightly 20181026-050928-ed5fa2ca2-10_14
Thank you for your time,
Alessandro
The text was updated successfully, but these errors were encountered: