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

[musicbert] error in installing requirements #208

Open
arash-sadeghi opened this issue Dec 18, 2024 · 0 comments
Open

[musicbert] error in installing requirements #208

arash-sadeghi opened this issue Dec 18, 2024 · 0 comments

Comments

@arash-sadeghi
Copy link

I am trying to install requriements.txt in ubuntu 20 with python3.6.15. I am getting error

Building wheel for fairseq (pyproject.toml) ... error
The detailed error is below:

Head of error
`Collecting oauthlib>=3.0.0
Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
|████████████████████████████████| 151 kB 5.1 MB/s
Using legacy 'setup.py install' for miditoolkit, since package 'wheel' is not installed.
Using legacy 'setup.py install' for jieba, since package 'wheel' is not installed.
Using legacy 'setup.py install' for textrank4zh, since package 'wheel' is not installed.
Using legacy 'setup.py install' for fastBPE, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pretty-midi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for secrets, since package 'wheel' is not installed.
Using legacy 'setup.py install' for antlr4-python3-runtime, since package 'wheel' is not installed.
Using legacy 'setup.py install' for sacremoses, since package 'wheel' is not installed.
Building wheels for collected packages: fairseq, dtw-python, pyworld, python-ldap
Building wheel for fairseq (pyproject.toml) ... error ERROR: Command errored out with exit status 1: command: /home/arash/Desktop/workdir/muzic/.env36/bin/python3.6 /home/arash/Desktop/workdir/muzic/.env36/lib/python3.6/site-packages/pip/_vendor/pep517
/in_process/_in_process.py build_wheel /tmp/tmpzkz0otxr
cwd: /tmp/pip-install-ocqvlt7z/fairseq_1748cfcb673a446eb6097c005c13f189
Complete output (676 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/fairseq
copying fairseq/registry.py -> build/lib.linux-x86_64-3.6/fairseq
copying fairseq/token_generation_constraints.py -> build/lib.linux-x86_64-3.6/fairseq
copying fairseq/pdb.py -> build/lib.linux-x86_64-3.6/fairseq
copying fairseq/iterative_refinement_generator.py -> build/lib.linux-x86_64-3.6/fairseq
copying fairseq/tokenizer.py -> build/lib.linux-x86_64-3.6/fairseq
copying fairseq/checkpoint_utils.py -> build/lib.linux-x86_64-3.6/fairseq
copying fairseq/incremental_decoding_utils.py -> build/lib.linux-x86_64-3.6/fairseq
copying fairseq/binarizer.py -> build/lib.linux-x86_64-3.6/fairseq

`

end of error

`
copying Lib/slapdtest/certs/client.conf -> build/lib.linux-x86_64-3.6/slapdtest/certs
copying Lib/slapdtest/certs/client.key -> build/lib.linux-x86_64-3.6/slapdtest/certs
copying Lib/slapdtest/certs/client.pem -> build/lib.linux-x86_64-3.6/slapdtest/certs
copying Lib/slapdtest/certs/gencerts.sh -> build/lib.linux-x86_64-3.6/slapdtest/certs
copying Lib/slapdtest/certs/gennssdb.sh -> build/lib.linux-x86_64-3.6/slapdtest/certs
copying Lib/slapdtest/certs/server.conf -> build/lib.linux-x86_64-3.6/slapdtest/certs
copying Lib/slapdtest/certs/server.key -> build/lib.linux-x86_64-3.6/slapdtest/certs
copying Lib/slapdtest/certs/server.pem -> build/lib.linux-x86_64-3.6/slapdtest/certs
running build_ext
building '_ldap' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/Modules
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 -DLDAPMODULE_AUTHOR=python-ldap project -DLDAPMODULE_LICENSE=Python style -IModules -I/home/arash/Desktop/workdir/muzic/.env36/include -I/usr/include/python3.6m -c Modules/LDAPObject.c -o build/temp.linux-x86_64-3.6/Modules/LDAPObject.o
In file included from Modules/LDAPObject.c:3:
Modules/common.h:9:10: fatal error: Python.h: No such file or directory
9 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for python-ldap
Failed to build fairseq dtw-python pyworld python-ldap
ERROR: Could not build wheels for fairseq, dtw-python, pyworld, python-ldap, which is required to install pyproject.toml-based projects
`

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

1 participant