Skip to content

Incompatible with latest version of Python (3.13) due to the NumPy version being incompatible. #3

@Dyvergent

Description

@Dyvergent

While trying to clone this repository and installing as a library, I ran into the following problem:

C:\Users\hp>git clone https://github.com/entangledloops/slidingpuzzle
Cloning into 'slidingpuzzle'...
remote: Enumerating objects: 1463, done.
remote: Counting objects: 100% (391/391), done.
remote: Compressing objects: 100% (125/125), done.
remote: Total 1463 (delta 224), reused 366 (delta 207), pack-reused 1072 (from 1)
Receiving objects: 100% (1463/1463), 320.95 KiB | 998.00 KiB/s, done.
Resolving deltas: 100% (912/912), done.

C:\Users\hp>cd slidingpuzzle

C:\Users\hp\slidingpuzzle>pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///C:/Users/hp/slidingpuzzle
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting numpy==1.23.5 (from slidingpuzzle==0.1.5)
  Using cached numpy-1.23.5.tar.gz (10.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      Traceback (most recent call last):
        File "C:\Users\hp\AppData\Roaming\Python\Python313\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "C:\Users\hp\AppData\Roaming\Python\Python313\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\hp\AppData\Roaming\Python\Python313\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 137, in get_requires_for_build_wheel
          backend = _build_backend()
        File "C:\Users\hp\AppData\Roaming\Python\Python313\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 70, in _build_backend
          obj = import_module(mod_path)
        File "C:\Program Files\Python313\Lib\importlib\__init__.py", line 88, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
                 ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "C:\Users\hp\AppData\Local\Temp\pip-build-env-_t5g932i\overlay\Lib\site-packages\setuptools\__init__.py", line 16, in <module>
          import setuptools.version
        File "C:\Users\hp\AppData\Local\Temp\pip-build-env-_t5g932i\overlay\Lib\site-packages\setuptools\version.py", line 1, in <module>
          import pkg_resources
        File "C:\Users\hp\AppData\Local\Temp\pip-build-env-_t5g932i\overlay\Lib\site-packages\pkg_resources\__init__.py", line 2172, in <module>
          register_finder(pkgutil.ImpImporter, find_on_path)
                          ^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'numpy' when getting requirements to build wheel

This is most likely due to the version of NumPy being installed (1.23.5) not being compatible with Python 3.13. Could this be fixed? The only way that I can currently think of a workaround for this is to downgrade my Python version, however I regularly utilise some of the 3.13 features.

This is my first time creating an issue as well, so bear with me. Any other known fixes would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions