jeffminton / keyboard_stl_generator

Generate a 3D model from a keyboard design from keyboard layout editor and split up the design so it can be printed on a 3D printer
GNU Affero General Public License v3.0
107 stars 8 forks source link

ModuleNotFoundError: No module named 'pkg_resources' #12

Closed naratteu closed 1 week ago

naratteu commented 1 week ago
> python --version
Python 3.12.7
> pip install solidpython
> git clone https://github.com/jeffminton/keyboard_stl_generator.git
> cd keyboard_stl_generator
> # add keyboard-layout.json
> python keyboard_stl_generator.py -i keyboard-layout.json
Traceback (most recent call last):
  File "/keyboard_stl_generator/keyboard_stl_generator.py", line 14, in <module>
    from solid import *
  File "/usr/local/lib/python3.12/site-packages/solid/__init__.py", line 4, in <module>
    from .solidpython import scad_render, scad_render_to_file
  File "/usr/local/lib/python3.12/site-packages/solid/solidpython.py", line 26, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

It seems to be a problem with solidpython.

I solved it with the command below.

> pip install setuptools

Source: https://suskind.tistory.com/m/117

jeffminton commented 1 week ago

Thanks for letting me know. I added a requirements.txt file that will ensure setuptools is also installed. Thanks