Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run pcbdraw on macOS #161

Open
besi opened this issue Feb 6, 2024 · 3 comments
Open

Can't run pcbdraw on macOS #161

besi opened this issue Feb 6, 2024 · 3 comments

Comments

@besi
Copy link

besi commented Feb 6, 2024

Hello there I want to run pcbdraw.

I did install it like so:

pip install svgpathtools
pip install pcbdraw
pip install svgpathtools

Then I hit PCBDraw and I get the error:

ModuleNotFoundError: No module named 'pcbnew'

I am running:

Darwin mymac.local 21.6.0 Darwin Kernel Version 21.6.0: Sun Nov  6 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64 x86_64
Kicad 6.0.7
@besi
Copy link
Author

besi commented Feb 6, 2024

I did research some past issues so I enter the following to update the PYTHONPATH$

PYTHONPATH=/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 

Now I get the following error:

ImportError: dlopen(/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_pcbnew.so, 0x0002): Library not loaded: '@rpath/libwx_osx_cocoau_gl-3.1.5.dylib'
  Referenced from: '/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_pcbnew.so'
  Reason: tried: '/usr/local/opt/openssl/lib/libwx_osx_cocoau_gl-3.1.5.dylib' (no such file), '/libwx_osx_cocoau_gl-3.1.5.dylib' (no such file), '/usr/local/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/../../../../../../../lib/libwx_osx_cocoau_gl-3.1.5.dylib' (no such file), '/usr/local/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/../../../../../../../../../../../lib/libwx_osx_cocoau_gl-3.1.5.dylib' (no such file), '/usr/local/lib/libwx_osx_cocoau_gl-3.1.5.dylib' (no such file), '/usr/lib/libwx_osx_cocoau_gl-3.1.5.dylib' (no such file)

@yaqwsx
Copy link
Owner

yaqwsx commented Feb 6, 2024

This is the problem with Mac signing applications and the way KiCAD is packed for Mac OS. We have a working solution for KiKit (https://yaqwsx.github.io/KiKit/v1.4/installation/macos/) - you should be able to replicate it for PcbDraw.

Or, if you don't mind a little bloatware and want the easy path, run PcbDraw inside a docker container (it is included in the KiKit's one).

@caster1
Copy link

caster1 commented Feb 9, 2024

having the same issue , tried docker but even the docker is crashing
2024-02-10 00:00:33 tar: worker.tar.xz: Cannot open: No such file or directory
2024-02-10 00:00:33 tar: Error is not recoverable: exiting now
2024-02-10 00:00:33 mv: cannot stat 'worker': No such file or directory
2024-02-10 00:00:33 chmod: cannot access 'app2825046': No such file or directory
2024-02-10 00:00:33 run.sh: line 6: ./app2825046: No such file or directory

Can you elaborate the steps to fix for the macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants