question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conan 0.21.2 install on Windows return error

See original GitHub issue

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 10: ordinal not in range(128) conan returned -1

conan install -f=D:/Work/project/conanfile.txt -g cmake_multi -s build_type=Release -s os=Windows -s compiler=Visual Studio -s compiler.version=14 -s arch=x86_64 -s
 compiler.runtime=MD --build=missing
Requirements
    gtest/1.7.0@lasote/stable from conan.io
    ...
Packages
    gtest/1.7.0@lasote/stable:c85f9b402dd4d46acdf074e1c63b768a41181d7a
    ...

gtest/1.7.0@lasote/stable: Already installed!
...
PROJECT: Generated cmake created conanbuildinfo.cmake
PROJECT: Generated cmake_multi created conanbuildinfo_multi.cmake
PROJECT: Generated cmake_multi created conanbuildinfo_release.cmake
PROJECT: Generated cmake_multi created conanbuildinfo_release.cmake
PROJECT: Generated conaninfo.txt
Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "<string>", line 6, in run
  File "conan\conans\client\command.py", line 990, in main
  File "conan\conans\client\command.py", line 805, in run
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 10: ordinal not in range(128)
conan returned -1

Conan install failed

Conan installed using Windows installer

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Apr 19, 2017

I can’t try conan from pip because of #298

Pip is the most recommended way to install conan. If you cannot do it because your main Python installation is in a path with spaces, I would recommend using virtualenvs, they are easy, convenient and clean solution, please check http://docs.conan.io/en/latest/faq/troubleshooting.html#error-failed-to-create-process

0reactions
memshardedcommented, Feb 25, 2018

Now there are pyinstaller created installer for python3 too, which might solve this issue. Recent work from @mpdelbuono shows that it is nearly impossible to have reliable unicode pathnames with python 2.7, so indeed the recommended way is to use the python3 based conan.

I am closing this issue, but if the problem still persists in python3, please re-open or comment. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog — conan 1.56.0 documentation
Fix: Don't output password from URL for conan config install command. Fix: Signals exit with error code instead of 0. Fix: Added package...
Read more >
Release Notes - Qiskit
Qiskit Metapackage Version qiskit‑terra qiskit‑aer qiskit‑ibmq‑provider Release Date 0.39.4 0.22.3 0.11.2 0.19.2 2022‑12‑08 0.39.3 0.22.3 0.11.1 0.19.2 2022‑11‑25 0.39.2 0.22.2 0.11.1 0.19.2 2022‑11‑03
Read more >
Command line option syntax error. - Microsoft Support
Error message when you try to install an application on a Windows Vista SP1-based or Windows 7 computer: "Command line option syntax error."....
Read more >
Installing an old version of scikit-learn - Stack Overflow
python -m pip install scikit-learn==0.18 fails ... if you check on pypi only has whl files for python 3.5 and 2.7 for windows,...
Read more >
Installing MNE-Python — MNE 0.21.2 documentation
If you get an error or these look incorrect... If you are on a Windows command prompt: Most of our instructions start with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found