coleifer / peewee

a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb
http://docs.peewee-orm.com/
MIT License
11.06k stars 1.37k forks source link

Installation broken: No module named 'peewee' (v3.17.4) #2891

Closed romeroyonatan closed 4 months ago

romeroyonatan commented 4 months ago

Hello peewee contributors

I found the installation of the latest version (3.17.4) is failing with python 3.12.3

$ python --version                  
Python 3.12.3
$ pip install peewee==3.17.4
Collecting peewee==3.17.4
  Using cached peewee-3.17.4.tar.gz (3.0 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
  ╰─> [19 lines of output]
      Traceback (most recent call last):
        File "/tmp/a/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/tmp/a/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/a/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-6o22jxes/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-6o22jxes/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-6o22jxes/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 196, in <module>
        File "<string>", line 150, in _do_setup
      ModuleNotFoundError: No module named 'peewee'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Thanks for your time

Have a nice day

coleifer commented 4 months ago

Thanks for the quick report, I suppose I really need to check pip install against every version. We can all be grateful for @pypa's stewardship and truly creating makework and problems where previously everything worked great.

3.17.5 should be up now and working.

zVitorSantos commented 4 months ago

Thank you, I just had this same error, just now I was going to report it, you are quick congratulations

coleifer commented 4 months ago

You gotta be quick when packaging is in the mix!

romeroyonatan commented 4 months ago

Thank you very much for the quick fix. Amazing

It is fixed now

$ pip install peewee==3.17.5
Collecting peewee==3.17.5
  Downloading peewee-3.17.5.tar.gz (3.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 2.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: peewee
  Building wheel for peewee (pyproject.toml) ... done
  Created wheel for peewee: filename=peewee-3.17.5-py3-none-any.whl size=138635 sha256=e422d2eac9ada3cca549927d26a1c0ae6d287575f6f331c1e1f93a91ecebc07a
  Stored in directory: /home/yonatanromero/.cache/pip/wheels/df/29/bd/2c860b403d4964724adb889d7e1451b2f3e2942603a199279d
Successfully built peewee
Installing collected packages: peewee
  Attempting uninstall: peewee
    Found existing installation: peewee 3.17.3
    Uninstalling peewee-3.17.3:
      Successfully uninstalled peewee-3.17.3
Successfully installed peewee-3.17.5