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.

Installation trouble - Failed building wheel for cocotb

See original GitHub issue

After an attempt to use cocotb a few months ago without success, I want to give it a second shot. I am using Windows 10 as OS. Now I want to install the tools on another computer, but the installation gives me some errors. For me the installation description is rather poor. Sometime its unknown where to download tools and what versions are needed. I manged to install Python (version 3.10), that’s rather easy. The same counts for Conda. But the make file installation gives me trouble, but that can be skipped, is only needed to run the testbenches. But I still don’t know where to download and which version. Installation of Microsoft Visual C++ is much more problematic. Only Visual C++ or also Studio? its should be version 14+, I installed version 16. But the installation of cocotb gives me really errors.

      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe" /c /nologo /O2 /GL /DNDEBUG /MD /W4 -DGPILOG_EXPORTS= -D__STDC_FORMAT_MACROS= -DWIN32= -Icocotb\share\include -IC:\Users\Albert\AppData\Local\Programs\Python\Python310\include -IC:\Users\Albert\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpcocotb\share\lib\gpi_log\gpi_logging.cpp /Fobuild\temp.win-amd64-3.10\Release\cocotb\libs\libgpilog\cocotb\share\lib\gpi_log\gpi_logging.obj /permissive-
      gpi_logging.cpp
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\cstdio(12): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

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

I did an update for pip, which was proposes with an earlier error message. Don’t know what is going on here. Placed the installation I did in a document. Is attached. Especially the red lines in the doc are unclear for me. Sorry I am a hardware guy, with only little software experience. CoCotb.docx e

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AlbertHoevenaarscommented, Mar 4, 2022

Oh yes. Thanks for the help!

0reactions
ktbarrettcommented, Mar 4, 2022

Have your questions been answered?

Read more comments on GitHub >

github_iconTop Results From Across the Web

install failed · Discussion #2697 · cocotb/cocotb - GitHub
I am trying to cocotb install in cygwin. ... collected packages: cocotb Building wheel for cocotb (PEP 517) ... error ERROR: Command errored...
Read more >
ERROR: Could not build wheels for scipy which use PEP 517 ...
I have already installed openblas which is required by scipy. So, no issues with that. When i gave pip3 install scipy --trusted-host pypi.org...
Read more >
cocotb/Lobby - Gitter
Running python3 setup.py install works, pip is automatically adding that --ignore-installed option and a few others which cause the failure.
Read more >
Installation — cocotb 1.7.2 documentation
Using cocotb requires installation of prerequisites and installation of cocotb ... The installation instructions vary depending on your operating system:.
Read more >
could not build wheels for ta-lib, which is required to install ...
ERROR : Failed building wheel for TA_Lib Failed to build TA_Lib ERROR: Could ... I use pip3 to install cocotb. python version is...
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