mlx icon indicating copy to clipboard operation
mlx copied to clipboard

[BUG] python setup.py generate_stubs fails with "No module named 'setuptools'"

Open rudkx opened this issue 2 years ago • 2 comments

Describe the bug I'm following the instructions from Build from source and when I hit the step for Python API where I run python setup.py generate_stubs I hit this:

% python setup.py generate_stubs
Traceback (most recent call last):
  File "/Users/rudkx/repo/mlx/setup.py", line 11, in <module>
    from setuptools import Command, Extension, find_namespace_packages, setup
ModuleNotFoundError: No module named 'setuptools'

To Reproduce

Follow all the steps in Build from source up to the python setup.py generate_stubs.

Expected behavior Successful installation.

Desktop (please complete the following information):

  • OS Version: macOS 14.5

Additional context

My repo was forked earlier today with top-of-tree at 95d11bd.

rudkx avatar Jun 23 '24 20:06 rudkx

Looks like you need to install setuptools, e.g. pip install setuptools

awni avatar Jun 23 '24 20:06 awni

Yes thanks, that worked. It doesn't appear to be documented as a dependency.

rudkx avatar Jun 26 '24 05:06 rudkx