Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't build ... #33

Open
BacchusFLT opened this issue Nov 14, 2024 · 4 comments
Open

Won't build ... #33

BacchusFLT opened this issue Nov 14, 2024 · 4 comments

Comments

@BacchusFLT
Copy link

The docs don't say you need to download to a folder. Might be evident but might still not harm to mention.

Also, the "pip install -r requirements.txt" command failed with the following error message:

[CUT the above and only added from where it went south]

Collecting Pillow==10.3.0 (from -r requirements.txt (line 9))
Using cached pillow-10.3.0.tar.gz (46.6 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
╰─> [21 lines of output]
Traceback (most recent call last):
File "C:\Users\passp\scoop\apps\python\current\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
~~~~^^
File "C:\Users\passp\scoop\apps\python\current\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\passp\scoop\apps\python\current\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\passp\AppData\Local\Temp\pip-build-env-4jbbamv7\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\passp\AppData\Local\Temp\pip-build-env-4jbbamv7\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "C:\Users\passp\AppData\Local\Temp\pip-build-env-4jbbamv7\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 33, in
File "", line 27, in get_version
KeyError: 'version'
[end of output]

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

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade 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.

@sachinsenal0x64
Copy link
Owner

sachinsenal0x64 commented Dec 24, 2024

Can you try it in a virtual environment? https://github.com/pyenv/pyenv-virtualenv (python 3.10)

@Rustbeard86
Copy link

Rustbeard86 commented Dec 30, 2024

I am no python expert, but on my windows 11 system I had to remove the versions specified in requirements.txt from Pillow and zstandard, as the listed version would not build for me either.
(I'm hoping there isn't much of an issue in the latest versions of those packages.)

I also had to install setuptools to get the script to run.

@sachinsenal0x64
Copy link
Owner

sachinsenal0x64 commented Dec 30, 2024

Okay, so now everything works fine? :)

@Rustbeard86
Copy link

Rustbeard86 commented Dec 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants