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.

No pre-compiled wheels for Windows

See original GitHub issue

Currently https://pypi.org/project/cutadapt/#files has Linux wheels for Python 3.6, 3.7, 3.8, 3.9 and 3.10 - plus a .tar.gz archive of the source code. This means pip install cutadapt on Windows attempts to compile things:

$ pip install cutadapt
Collecting cutadapt
  Using cached cutadapt-3.5.tar.gz (303 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting dnaio~=0.5
  Using cached dnaio-0.6.0.tar.gz (131 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting xopen~=1.1
  Using cached xopen-1.2.1-py3-none-any.whl (12 kB)
Collecting isal>=0.9.0
  Using cached isal-0.11.1-cp310-cp310-win_amd64.whl (274 kB)
Using legacy 'setup.py install' for dnaio, since package 'wheel' is not installed.
Building wheels for collected packages: cutadapt
  Building wheel for cutadapt (pyproject.toml): started
  Building wheel for cutadapt (pyproject.toml): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe' 'C:\Users\xxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\xxx\AppData\Local\Temp\tmp0a8lowdp'
       cwd: C:\Users\xxx\AppData\Local\Temp\pip-install-n29oeudt\cutadapt_10e512be8b9643199f3079ff9d38e975
  Complete output (24 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.10
  creating build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\adapters.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\align.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\filters.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\json.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\log.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\modifiers.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\parser.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\pipeline.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\report.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\statistics.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\steps.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\tokenizer.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\utils.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\_version.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\__init__.py -> build\lib.win-amd64-3.10\cutadapt
  copying src\cutadapt\__main__.py -> build\lib.win-amd64-3.10\cutadapt
  running build_ext
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for cutadapt
Failed to build cutadapt
ERROR: Could not build wheels for cutadapt, which is required to install pyproject.toml-based projects

https://cutadapt.readthedocs.io/en/stable/installation.html#installation-on-windows highlights that the GitHub releases page often has a .exe file for Windows. Would it be easy for you to make a Windows wheel as well / instead of the EXE?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
marcelmcommented, Dec 28, 2021

Sadly I’m not able to install MSVC on the machine in question

Thanks. I’ll need to make Windows wheels for dnaio as well.

That can give an error due to the xopen, dnaio and python-isal dependencies

Good point, I forgot (and just copied what TestPyPI writes on top of the page.)

1reaction
marcelmcommented, Jan 19, 2022

Oh great, thanks for testing it! Some of the changes benefitted all platforms, so it was good to do this even for users not on Windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Are Python Wheels and Why Should You Care?
In this tutorial, you'll learn what Python wheels are and why you should care as both a developer and end user of Python...
Read more >
How to install, download and build Python wheels - ActiveState
Pip will install the appropriate wheel for Windows, Linux or macOS. ... There's no need to specify that you want to install a...
Read more >
Python Wheels
Faster installation for pure Python and native C extension packages. Avoids arbitrary code execution for installation. (Avoids setup.py) ...
Read more >
How to install Python wheels for Windows using pip - YouTube
How to use pip to install precompiled binaries for Python. In particular we see how to install Numpy+Mkl, which is a fundamental package ......
Read more >
Python Extension Packages for Windows - Christoph Gohlke
This page is not a pip package index. Many binaries depend on numpy+mkl and the current Microsoft Visual C++ Redistributable for Visual ...
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