kicad_jlcpcba icon indicating copy to clipboard operation
kicad_jlcpcba copied to clipboard

Cannot execute plugin

Open livigni opened this issue 4 years ago • 4 comments

Hi! I have put the folder inside my plugin folder (tried both the one in AppData\Roaming and in Program Files) but I get the following error: ![immagine](https://user-images.githubusercontent.com/4322107/108492022-f07f2700-72a4-11eb-8622-936a9b01d477.png Using KiCad 5.1.7 in Windows 10. What do I do wrong?

Thanks. BR, Vincenzo

livigni avatar Feb 19 '21 10:02 livigni

Hi,

This actually looks like it could be a Python version issue … where an older version doesn’t include the traceback attribute on an exception.

But I don’t understand why you would have an old version of Python as it’s part of the KiCad distribution.

When does that error come up? When you start KiCad or when you click on the plugin button?

If I get a chance I’ll try to spin up a Windows instance as I don’t usually use Windows and haven’t tested it for ages.

Lee.

On 19 Feb 2021, at 10:28, livigni [email protected] wrote:

Hi! I have put the folder inside my plugin folder (tried both the one in AppData\Roaming and in Program Files) but I get the following error: ![immagine](https://user-images.githubusercontent.com/4322107/108492022-f07f2700-72a4-11eb-8622-936a9b01d477.png https://user-images.githubusercontent.com/4322107/108492022-f07f2700-72a4-11eb-8622-936a9b01d477.png Using KiCad 5.1.7 in Windows 10. What do I do wrong?

Thanks. BR, Vincenzo

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/essele/kicad_jlcpcba/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK4K3D5GGHPABXEGF77673S7Y4LFANCNFSM4X4DV2CQ.

essele avatar Feb 19 '21 11:02 essele

It comes up when I click on the plugin button. Ths is the KiCad Python Shell, seems it is Python 2.7.18 Py 0.9.8 Python 2.7.18 (default, Apr 20 2020, 16:57:11) [GCC 9.3.0 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Startup script executed: C:\Users\livigvi001\AppData\Roaming\kicad\PyShell_pcbnew_startup.py

livigni avatar Feb 19 '21 11:02 livigni

Hi. I get the exact same error. windows 10, KiCad 5.1.7, Python 3.8 installed but the scripting shell is 2.7.18 as @livigni has reported. it seems we need to force the script to use python 3.... Somehow?

seems the answer is here: https://forum.kicad.info/t/why-is-python-version-shown-as-2-7-in-kicad5-1-0/15874/6

abrugsch avatar Mar 23 '21 17:03 abrugsch

I'm using latest stable kicad (not nightly). I'm missing a lot of components in the pos file.

I get kind of proper files (bom/bottom_pos/top_pos), but looks like exception still happens:

[Window Title]
Exception on python action plugin code

[Main Instruction]
Traceback (most recent call last):

[Content]
  File "C:\Users\user\AppData\Roaming\kicad\scripting\plugins/kicad_jlcpcba/jlcpcba_action.py", line 29, in Run
    tb = ''.join(traceback.format_exception(None, e, e.__traceback__))

AttributeError: 'exceptions.IOError' object has no attribute '__traceback__'



[OK]

Looks like I'm not getting pos entries for the customized footprints that are embedded in the pcb file.

Looks like the traceback above happens when it can't open/read footprint file by name.

joric avatar Sep 13 '21 06:09 joric