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

Plugin doesn't load in KiCad 8.0 No module named 'bs4' #36

Open
aocole opened this issue May 1, 2024 · 2 comments
Open

Plugin doesn't load in KiCad 8.0 No module named 'bs4' #36

aocole opened this issue May 1, 2024 · 2 comments

Comments

@aocole
Copy link

aocole commented May 1, 2024

Hello. Thanks for this plugin. I installed v1.3 via the plugin manager but the plugin doesn't load. The "plugin errors" dialog under preferences shows me the following:

  File "/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/aocole/Documents/KiCad/8.0/3rdparty/plugins/com_github_jarrettr_stretch/__init__.py", line 3, in <module>
    from .kiplug.svg_writer import SvgWrite
  File "/Users/aocole/Documents/KiCad/8.0/3rdparty/plugins/com_github_jarrettr_stretch/kiplug/svg_writer.py", line 4, in <module>
    from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
@JarrettR
Copy link
Owner

JarrettR commented May 2, 2024

Thanks for the report.

To fix that, you'll need to BS4. So you'll have to python -m pip install bs4 with whatever version of Python is being run by KiCad.

I'm not sure where that is on Mac - Windows it's at C:\Program Files\KiCad\8.0\bin\python.exe and Linux uses the system Python.

@aocole
Copy link
Author

aocole commented May 4, 2024

Thanks - in my case on mac:

cd /Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin
./pip3 install bs4

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

2 participants