milesgranger / gap_statistic

Dynamically get the suggested clusters in the data for unsupervised learning.
The Unlicense
217 stars 46 forks source link

no module named 'wheel.wheelfile' - need to update required version of wheel #64

Open lebedov opened 3 months ago

lebedov commented 3 months ago

The version of wheel required by gap-stat for installation (0.31.1) doesn't seem to contain the module wheel.wheelfile; this breaks installation via pip.

        File "/private/var/folders/jt/c4z7qp7x3h137gz4c0wbzdyr0000gp/T/pip-build-env-glc3q1ra/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 686, in get_command_class
          from .command.bdist_wheel import bdist_wheel
        File "/private/var/folders/jt/c4z7qp7x3h137gz4c0wbzdyr0000gp/T/pip-build-env-glc3q1ra/overlay/lib/python3.10/site-packages/setuptools/command/bdist_wheel.py", line 29, in <module>
          from wheel.wheelfile import WheelFile
      ModuleNotFoundError: No module named 'wheel.wheelfile'

Updating the required wheel version to a more recent release seems to fix the problem. Will submit PR.

lebedov commented 3 months ago

Per the PR I submitted, I just updated the required wheel version in pyproject.toml and installed from my local source directory. Perhaps the old version of wheel is still present on your system; try uninstalling and reinstalling wheel, then install from source with my modification applied.

KautsarAqsa commented 1 month ago

This issue still happens to me both in Windows 10 and Ubuntu.