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

Utf8 error when using pip install on windows #293

Open
martinResearch opened this issue May 10, 2020 · 2 comments
Open

Utf8 error when using pip install on windows #293

martinResearch opened this issue May 10, 2020 · 2 comments

Comments

@martinResearch
Copy link

Hi,
I am getting an error when trying to install aubio using pip install aubio on my windows machine :

Running setup.py install for aubio ... error
Complete output from command d:\python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\martin\AppData\Local\T
emp\pip-install-94kdjwar\aubio\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\m
artin\AppData\Local\Temp\pip-record-p3le4shn\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
checking for aubio = 0.4.9
Running "pkg-config --libs --cflags aubio = 0.4.9" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
Info: aubio 0.4.9 was not found by pkg-config
Info: looking for optional additional packages
checking for libavcodec
Running "pkg-config --libs --cflags libavcodec" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
checking for libavformat
Running "pkg-config --libs --cflags libavformat" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
checking for libavutil
Running "pkg-config --libs --cflags libavutil" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
checking for libswresample
Running "pkg-config --libs --cflags libswresample" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
checking for libavresample
Running "pkg-config --libs --cflags libavresample" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
checking for sndfile
Running "pkg-config --libs --cflags sndfile" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
checking for samplerate
Running "pkg-config --libs --cflags samplerate" failed: FileNotFoundError(2, 'Le fichier spécifié est introuvable', None, 2, None)
Info: libaubio was not installed or built locally with waf, adding src/
workaround on win64 to avoid empty pre-processor output
Running command: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe -E -DAUBIO_UNSTABLE=1 -Isrc src\aubio.h
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\martin\AppData\Local\Temp\pip-install-94kdjwar\aubio\setup.py", line 95, in
'aubiocut = aubio.cut:main',
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\site-packages\setuptools_init_.py", line 145, in setup
return distutils.core.setup(**attrs)
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "d:\projets\python\smartpython\smartpython-3.6.2.0-64bit\python-3.6.2.amd64\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "python\lib\moresetuptools.py", line 192, in build_extension
usedouble=enable_double)
File "python\lib\gen_external.py", line 271, in generate_external
c_declarations = get_c_declarations(header, usedouble=usedouble)
File "python\lib\gen_external.py", line 101, in get_c_declarations
cpp_output = get_cpp_output(header=header, usedouble=usedouble)
File "python\lib\gen_external.py", line 129, in get_cpp_output
% err_output.decode('utf8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 54: invalid start byte

Maybe is it because my system is french ? Any idea how to solve that ?

@martinResearch martinResearch changed the title Utf8 error when usin pip install aubio on windows Utf8 error when using pip install on windows May 10, 2020
@HorieYuan
Copy link

I meet this error on windows

File "C:\Program Files\Python37\lib\site-packages\aubio\__init__.py", line 26, in <module>
    from ._aubio import __version__ as version
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 945-946: invalid continuation byte

@campfred
Copy link

Has anyone found a way to resolve this? My system is in French too and I'm encountering the same issue.

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