Repository: k4yt3x/video2x

Issue #755: "Step 1: Install Video2X and Dependencies" fails on pdm.pep517.exceptions.PEP621ValidationError: {'license-expression': ['unknown field']}
Created: 2022-10-25T13:27:04Z
When running Step 1 in the Colab I get the following error. As far as I know I followed step 0 correctly. I tried it several times yesterday and today. Restarting the runtime many times. I'm not familiar with Colab so perhaps the problem just lies with me not understanding what to do?

...
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing build dependencies ... done
Running command Getting requirements to build wheel
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in 
main()
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-5y2y85sv/overlay/lib/python3.7/site-packages/pdm/pep517/api.py", line 26, in get_requires_for_build_wheel
if builder.meta.config.run_setuptools:
File "/tmp/pip-build-env-5y2y85sv/overlay/lib/python3.7/site-packages/pdm/pep517/base.py", line 154, in meta
self._meta.validate(True)
File "/tmp/pip-build-env-5y2y85sv/overlay/lib/python3.7/site-packages/pdm/pep517/metadata.py", line 58, in validate
return validate_pep621(self.data, raising)
File "/tmp/pip-build-env-5y2y85sv/overlay/lib/python3.7/site-packages/pdm/pep517/validator.py", line 85, in validate_pep621
raise PEP621ValidationError(validator.errors)
pdm.pep517.exceptions.PEP621ValidationError: {'license-expression': ['unknown field']}
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.
full command: /usr/bin/python3.7 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpnrv61vuo
cwd: /tmp/pip-install-kzlt0tky/video2x_c67fbdfff34a4f63a53bc6fa4a542a55
Getting requirements to build wheel ... error
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.


Edit: this happens in 5.0.0 beta-6 but works in 5.0.0 beta-4, so if you also encounter this problem, you can change it in colab in the script of Step 1.
For me this works, but the bug/problem is still there in beta-6 so I'm not sure that this issue should be closed.

Duplicate issue #763: The line "!python3.7 -m pip install -Uvf /content/wheels video2x@git+https://github.com/k4yt3x/video2x.git@5.0.0-beta6" produces an error
Created: 2022-11-05T18:06:41Z
I am attempting to ue your colab notebook. I have a colab pro account.  I get an error trying to install video2x from your github, as follows:
Successfully installed pdm-pep517-1.0.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing build dependencies ... done
Running command Getting requirements to build wheel
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in 
main()
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-bzbp7w07/overlay/lib/python3.7/site-packages/pdm/pep517/api.py", line 26, in get_requires_for_build_wheel
if builder.meta.config.run_setuptools:
File "/tmp/pip-build-env-bzbp7w07/overlay/lib/python3.7/site-packages/pdm/pep517/base.py", line 154, in meta
self._meta.validate(True)
File "/tmp/pip-build-env-bzbp7w07/overlay/lib/python3.7/site-packages/pdm/pep517/metadata.py", line 58, in validate
return validate_pep621(self.data, raising)
File "/tmp/pip-build-env-bzbp7w07/overlay/lib/python3.7/site-packages/pdm/pep517/validator.py", line 85, in validate_pep621
raise PEP621ValidationError(validator.errors)
pdm.pep517.exceptions.PEP621ValidationError: {'license-expression': ['unknown field']}
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.
full command: /usr/bin/python3.7 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpoqxexazn
cwd: /tmp/pip-install-mfv7bpx4/video2x_55ee0ef16b5f45e4a52fd3760820522f
Getting requirements to build wheel ... error
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.

Closing comment (2022-11-07T20:05:53Z): This is a duplicate of #755