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

ERROR: Could not build wheels for pyworld, which is required to install pyproject.toml-based projects #676

Closed
RizeKishimaro opened this issue Aug 9, 2023 · 4 comments

Comments

@RizeKishimaro
Copy link

Issue Type

Bug Report

vc client version number

From Anaconda

OS

Ubuntu 20.04

GPU

0000:00:02.0 VGA compatible controller: Intel Corporation Device 9a78 (rev 01)

Clear setting

no

Sample model

no

Input chunk num

no

Wait for a while

no

read tutorial

yes

Extract files to a new folder.

no

Voice Changer type

RVC

Model type

none

Situation

i was trying to install vcclient on anaconda but unfortunately it didn't correctly install i was spend my time to solve this but nothing could help me.

application window capture

image

logs on terminal

Building wheels for collected packages: pyworld
Building wheel for pyworld (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pyworld (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [107 lines of output]
/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/dist.py:509: InformationOnly: Normalizing 'v0.3.3' to '0.3.3'
self.metadata.version = self._normalize_version(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/pyworld
copying pyworld/init.py -> build/lib.linux-x86_64-cpython-310/pyworld
running build_ext
/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-93qasmw4/pyworld_9bc4c0a8db05484e9cd61bc610ca2752/pyworld/pyworld.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Compiling pyworld/pyworld.pyx because it changed.
[1/1] Cythonizing pyworld/pyworld.pyx
Traceback (most recent call last):
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 416, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 27, in
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/init.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 349, in run
self.run_command("build")
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Distutils/build_ext.py", line 122, in build_extension
new_ext = cythonize(
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1280, in cythonize_one
result = compile_single(pyx_file, options, full_module_name=full_module_name)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 615, in compile_single
return run_pipeline(source, options, full_module_name)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py", line 539, in run_pipeline
err, enddata = Pipeline.run_pipeline(pipeline, source)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/Pipeline.py", line 398, in run_pipeline
data = run(phase, data)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/Pipeline.py", line 375, in run
return phase(data)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/Pipeline.py", line 52, in generate_pyx_code_stage
module_node.process_implementation(options, result)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/ModuleNode.py", line 222, in process_implementation
self.generate_c_code(env, options, result)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/ModuleNode.py", line 490, in generate_c_code
self.generate_module_preamble(env, options, modules, result.embedded_metadata, h_code)
File "/tmp/pip-build-env-41ig_eu9/overlay/lib/python3.10/site-packages/Cython/Compiler/ModuleNode.py", line 773, in generate_module_preamble
code.putln(json.dumps(metadata, indent=4, sort_keys=True))
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/init.py", line 238, in dumps
**kw).encode(obj)
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/encoder.py", line 201, in encode
chunks = list(chunks)
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/encoder.py", line 325, in _iterencode_list
yield from chunks
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/home/woody/anaconda3/envs/vcclient-dev/lib/python3.10/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type PosixPath is not JSON serializable
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyworld
Failed to build pyworld
ERROR: Could not build wheels for pyworld, which is required to install pyproject.toml-based projects

@MikailKaparov
Copy link

same

@Rafacasari
Copy link
Contributor

Try using --no-build-isolation argument

@RizeKishimaro
Copy link
Author

thanks finally it works after i runed pip install -r requirements.txt --no-build-isolation

1 similar comment
@RizeKishimaro
Copy link
Author

thanks finally it works after i runed pip install -r requirements.txt --no-build-isolation

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