easyw / RF-tools-KiCAD

KiCAD RF tools: footprints wizard and round tracks, mask expander, via fencing
GNU General Public License v3.0
669 stars 83 forks source link

Via fence generator: pyclipper #30

Open HaydenHu opened 2 years ago

HaydenHu commented 2 years ago

Via fence generator

QQ截图20211006191839

Application: KiCad PCB 编辑器 (64-bit)

Version: (5.99.0-12701-gd39127bbcb), release build

Libraries: wxWidgets 3.1.5 libcurl/7.78.0-DEV Schannel zlib/1.2.11

Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info: Date: Oct 5 2021 12:01:00 wxWidgets: 3.1.5 (wchar_t,wx containers) Boost: 1.76.0 OCC: 7.5.0 Curl: 7.78.0-DEV ngspice: 35 Compiler: Visual C++ 1929 without C++ ABI

Build settings: KICAD_USE_OCC=ON KICAD_SPICE=ON

easyw commented 2 years ago

@HaydenHu since kicad 5.99 pyclipper can be installed using pip

move to the bin folder of kicad (where pcbnew.exe is located) and digit: python -m pip install pyclipper

You may need administrative rights.

michelebuzzi commented 2 years ago

Hi @easyw, Hi Everyone,

I have tried to use your plugins with the new KiCad 6.0 on MacOS.

Everything works except the via fencing tool. Unfortunately it seems it does not find pyclipper. I tried pip installing it directly from the bin folder and after installation pip lists this in the installed packages. However when I or the via fencing tool tries to import the library it fails giving this error:

ImportError: dlopen(/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyclipper/_pyclipper.cpython-38-darwin.so, 2): no suitable image found.  Did find:
    /Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyclipper/_pyclipper.cpython-38-darwin.so: code signature in (/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyclipper/_pyclipper.cpython-38-darwin.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

It seems this is caused by a protection in MacOS >10.15 that does not allow an app to run code if it is not signed by the same developer.

Have you guys had this problem?

Michele

jwilliams1976 commented 2 years ago

I'm having these same errors that pyclipper is not installed. It is installed via pip on my machine to the default location on Windows 10. If anyone has figured out how to fix this please let us know.

C:\Program Files\KiCad\6.0\bin> pip install pyclipper Requirement already satisfied: pyclipper in c:\program files\python310\lib\site-packages (1.3.0.post3) C:\Program Files\KiCad\6.0\bin> $env:PYTHONPATH C:\Program Files\Python310

Sabarnya commented 1 year ago

I'm having these same errors that pyclipper is not installed. It is installed via pip on my machine to the default location on Windows 10. If anyone has figured out how to fix this please let us know.

C:\Program Files\KiCad\6.0\bin> pip install pyclipper Requirement already satisfied: pyclipper in c:\program files\python310\lib\site-packages (1.3.0.post3) C:\Program Files\KiCad\6.0\bin> $env:PYTHONPATH C:\Program Files\Python310

I am having the same issue.

aeschimannr commented 1 year ago

Hello, I also try to use via fence generator on macos and get the same error as HaydenHu. I have installed pyclipper

(1.3.0.post3)Requirement already satisfied: pyclipper in /usr/local/lib/python3.10/site-packages (1.3.0.post3)`

and have already tried the proposed solutions of directly copying the pyclipper.so file into the KiCad python package source.

nbarlowhall commented 1 year ago

Anyone got this to work yet? I've got the same problem on macOS

meslane commented 1 year ago

The solution I found on windows 10 was to cd into Kicad\6.0\bin\scripts and run its local version of pip using .\pip3.10 install pyclipper in the command line. The via fence tool worked after this.

artua commented 1 year ago

The problem in macos is because of codesigning entitlements on python3 shipped with current KiCad 6 release. It can’t execute unsigned binary libraries. Please someone report to Kicad developers.

wangyv6 commented 1 year ago

@HaydenHu since kicad 5.99 pyclipper can be installed using pip

move to the bin folder of kicad (where pcbnew.exe is located) and digit: python -m pip install pyclipper

You may need administrative rights.

it works in windows11 kiCad7.0.1 (.\python.exe -m pip install pyclipper) thanks 😘

parksj10 commented 1 year ago

on OSX, running KiCAD 7

cd /Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.9/bin/

then

./pip3 install pyclipper