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

support python 3.12 (and bump dependencies) #16

Open
MisileLab opened this issue Aug 18, 2024 · 4 comments
Open

support python 3.12 (and bump dependencies) #16

MisileLab opened this issue Aug 18, 2024 · 4 comments

Comments

@MisileLab
Copy link

I think your dependency is too low, for example your numpy version does not have 3.12 support, fairseq doesn't have it too.

@TheDevisi
Copy link

Yes, so far only python 3.10 is supported (unfortunately). As for dependencies, when I tried to install them on python 3.12, I found an answer on stackoverflow that this problem can be fixed in python 3.13.
So we just should wait for python 3.13 (i think)?

@MisileLab
Copy link
Author

Yes, so far only python 3.10 is supported (unfortunately). As for dependencies, when I tried to install them on python 3.12, I found an answer on stackoverflow that this problem can be fixed in python 3.13.
So we just should wait for python 3.13 (i think)?

can you give the error? I'm using my fork for python 3.12. https://github.com/misilelab/rvc-python-butter

@TheDevisi
Copy link

Yes, so far only python 3.10 is supported (unfortunately). As for dependencies, when I tried to install them on python 3.12, I found an answer on stackoverflow that this problem can be fixed in python 3.13.
So we just should wait for python 3.13 (i think)?

can you give the error? I'm using my fork for python 3.12. https://github.com/misilelab/rvc-python-butter

Collecting fairseq Downloading fairseq-0.12.2.tar.gz (9.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.6/9.6 MB 11.1 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting cffi (from fairseq) Downloading cffi-1.17.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB) Collecting cython (from fairseq) Using cached Cython-3.0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB) Collecting hydra-core<1.1,>=1.0.7 (from fairseq) Using cached hydra_core-1.0.7-py3-none-any.whl.metadata (3.7 kB) Collecting omegaconf<2.1 (from fairseq) Using cached omegaconf-2.0.6-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.6 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with ==or!=operators PyYAML (>=5.1.*) ~~~~~~^ Please use pip<24.1 if you need to use this version. Using cached omegaconf-2.0.5-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.5 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with==or!=operators PyYAML (>=5.1.*) ~~~~~~^ Please use pip<24.1 if you need to use this version. Using cached omegaconf-2.0.4-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.4 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/92/b1/4f3023143436f12c98bab53f0b3db617bd18a7d223627d5030e13a7b4fc2/omegaconf-2.0.4-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with==or!=operators PyYAML (>=5.1.*) ~~~~~~^ Please use pip<24.1 if you need to use this version. Using cached omegaconf-2.0.3-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.3 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/29/08/a88210c2c1aa0a3f65f05d8a6c98939ccb84b6fb982aa6567dec4e6773f9/omegaconf-2.0.3-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with==or!=operators PyYAML (>=5.1.*) ~~~~~~^ Please use pip<24.1 if you need to use this version. Using cached omegaconf-2.0.2-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.2 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/72/fe/f8d162aa059fb4f327fd75144dd69aa7e8acbb6d8d37013e4638c8490e0b/omegaconf-2.0.2-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with==or!=operators PyYAML (>=5.1.*) ~~~~~~^ Please use pip<24.1 if you need to use this version. Using cached omegaconf-2.0.1-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.1 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/86/ec/605805e60abdb025b06664d107335031bb8ebdc52e0a90bdbad6a7130279/omegaconf-2.0.1-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with==or!=operators PyYAML (>=5.1.*) ~~~~~~^ Please use pip<24.1 if you need to use this version. Using cached omegaconf-2.0.0-py3-none-any.whl.metadata (3.5 kB) Collecting regex (from fairseq) Downloading regex-2024.7.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB) Collecting sacrebleu>=1.4.12 (from fairseq) Using cached sacrebleu-2.4.3-py3-none-any.whl.metadata (51 kB) Collecting torch (from fairseq) Downloading torch-2.4.0-cp312-cp312-manylinux1_x86_64.whl.metadata (26 kB) Collecting tqdm (from fairseq) Using cached tqdm-4.66.5-py3-none-any.whl.metadata (57 kB) Collecting bitarray (from fairseq) Downloading bitarray-2.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (34 kB) Collecting torchaudio>=0.8.0 (from fairseq) Downloading torchaudio-2.4.0-cp312-cp312-manylinux1_x86_64.whl.metadata (6.4 kB) Collecting numpy (from fairseq) Using cached numpy-2.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB) Collecting omegaconf<2.1 (from fairseq) Using cached omegaconf-2.0.6-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.6 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/d0/eb/9d63ce09dd8aa85767c65668d5414958ea29648a0eec80a4a7d311ec2684/omegaconf-2.0.6-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with==or!=operators PyYAML (>=5.1.*) ~~~~~~^ Please use pip<24.1 if you need to use this version. Using cached omegaconf-2.0.5-py3-none-any.whl.metadata (3.0 kB) WARNING: Ignoring version 2.0.5 of omegaconf since it has invalid metadata: Requested omegaconf<2.1 from https://files.pythonhosted.org/packages/e5/f6/043b6d255dd6fbf2025110cea35b87f4c5100a181681d8eab496269f0d5b/omegaconf-2.0.5-py3-none-any.whl (from fairseq) has invalid metadata: .* suffix can only be used with==or!=` operators
PyYAML (>=5.1.*)
~~~~~~^
Please use pip<24.1 if you need to use this version.
INFO: pip is looking at multiple versions of hydra-core to determine which version is compatible with other requirements. This could take a while.
Collecting fairseq
Using cached fairseq-0.12.1.tar.gz (9.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
╰─> [19 lines of output]
Traceback (most recent call last):
File "/home/devisi/devshit/.venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/devisi/devshit/.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 "/home/devisi/devshit/.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-_fnb5kjc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-_fnb5kjc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-_fnb5kjc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 27, in
File "", line 18, in write_version_py
FileNotFoundError: [Errno 2] No such file or directory: 'fairseq/version.txt'
[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.
`

@MisileLab
Copy link
Author

@TheDevisi
facebookresearch/fairseq#5518
(also, you maybe need facebookresearch/fairseq#5012 later)

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

2 participants