Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I am installing DeePMD-kit from the source code and I follow the instruction from the document [https://github.com/deepmodeling/deepmd-kit/blob/master/doc/install/install-from-source.md#install-the-python-interface]. When I execute the command 'pip install ./' in the dir of deepmd-kit2.2.7, I encounter an error like this,
'''
Processing /data/home/***/deepmd-kit/deepmd-kit-2.2.7
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File "/data/home//deepmd-kit/deepmd-kit-2.2.7/deepmd_tensorflow/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/data/home//deepmd-kit/deepmd-kit-2.2.7/deepmd_tensorflow/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(hook_input['kwargs'])
File "/data/home/*/deepmd-kit/deepmd-kit-2.2.7/deepmd_tensorflow/lib/python3.9/site-packages/pip/vendor/pyproject_hooks/in_process/in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-wvyz4n6/overlay/lib/python3.9/site-packages/scikit_build_core/build/init.py", line 73, in prepare_metadata_for_build_wheel
return build_wheel_impl(
File "/tmp/pip-build-env-wvyz4n6/overlay/lib/python3.9/site-packages/scikit_build_core/build/wheel.py", line 95, in build_wheel_impl
metadata = get_standard_metadata(pyproject, settings)
File "/tmp/pip-build-env-wvyz4n6/overlay/lib/python3.9/site-packages/scikit_build_core/settings/metadata.py", line 39, in get_standard_metadata
metadata = StandardMetadata.from_pyproject(new_pyproject_dict)
File "/tmp/pip-build-env-wvyz4n6/normal/lib/python3.9/site-packages/pyproject_metadata/init.py", line 226, in from_pyproject
version_string = fetcher.get_str('project.version')
File "/tmp/pip-build-env-wvyz4n6/normal/lib/python3.9/site-packages/pyproject_metadata/init.py", line 91, in get_str
raise ConfigurationError(
pyproject_metadata.ConfigurationError: Field
project.version
has an invalid type, expecting a string (gotNone
)[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
'''
It seems that ' the Field
project.version
has an invalid type, expecting a string (gotNone
) '. I am wondering the reason of such an error and I hope to solve the problem for further installation.Wish anyone could give me some advices? Many thanks!
With best regards,
Ken
Beta Was this translation helpful? Give feedback.
All reactions