ERROR: ds_ctcdecoder-0.7.1-cp37-cp37m-windows_AMD64.whl is not a supported wheel on this platform

change setup.py and add print("decoder_pkg_url={}".format(decoder_pkg_url)) after decoder_pkg_url = get_decoder_pkg_url(version), rerun.

decoder_pkg_url=ds_ctcdecoder @ https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.7.1.cpu-ctc/artifacts/public/ds_ctcdecoder-0.7.1-cp37-cp37m-windows_AMD64.whl

so it’s AMD64 that is the issue?

why do you have cpu-ctc, it should not be this

I dont know why it is checking for AMD64 instead of amd64

Ah yes I know, we don’t support training on Windows and so the code is broken

1 Like

pip3 install --upgrade https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.7.1.win-ctc/artifacts/public/ds_ctcdecoder-0.7.1-cp37-cp37m-win_amd64.whl and then DS_NODECODER=1 pip3 install ... as before

Okay so that’s the issue. I tried this but again the same error
ERROR: ds_ctcdecoder-0.7.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.

please, can you share -v output proactively in that case?

(ProjEnv) C:\Users\HP\Downloads\DeepSpeech>pip3 install --upgrade https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.7.1.win-ctc/artifacts/public/ds_ctcdecoder-0.7.1-cp37-cp37m-win_amd64.whl -v
Non-user install because site-packages writeable
Created temporary directory: C:\Users\HP\AppData\Local\Temp\pip-ephem-wheel-cache-qi4o92vh
Created temporary directory: C:\Users\HP\AppData\Local\Temp\pip-req-tracker-xt2fnc2n
Initialized build tracking at C:\Users\HP\AppData\Local\Temp\pip-req-tracker-xt2fnc2n
Created build tracker: C:\Users\HP\AppData\Local\Temp\pip-req-tracker-xt2fnc2n
Entered build tracker: C:\Users\HP\AppData\Local\Temp\pip-req-tracker-xt2fnc2n
Created temporary directory: C:\Users\HP\AppData\Local\Temp\pip-install-pmdo0xe3
Cleaning up…
Removed build tracker: ‘C:\Users\HP\AppData\Local\Temp\pip-req-tracker-xt2fnc2n’
ERROR: ds_ctcdecoder-0.7.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
File “c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\pip_internal\cli\base_command.py”, line 186, in _main
status = self.run(options, args)
File “c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\pip_internal\commands\install.py”, line 301, in run
wheel_cache
File “c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\pip_internal\cli\req_command.py”, line 252, in populate_requirement_set
requirement_set.add_requirement(req_to_add)
File “c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\pip_internal\req\req_set.py”, line 112, in add_requirement
wheel.filename
pip._internal.exceptions.InstallationError: ds_ctcdecoder-0.7.1-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
WARNING: You are using pip version 20.0.2; however, version 20.1 is available.
You should consider upgrading via the ‘c:\users\hp\appdata\local\programs\python\python37-32\python.exe -m pip install --upgrade pip’ command.

sorry, I don’t know what’s going on.

Okay. Thank you. I tried on Colab too but got this error

Non-user install because site-packages writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-fm228klp
Created temporary directory: /tmp/pip-req-tracker-hl95yj0x
Initialized build tracking at /tmp/pip-req-tracker-hl95yj0x
Created build tracker: /tmp/pip-req-tracker-hl95yj0x
Entered build tracker: /tmp/pip-req-tracker-hl95yj0x
Created temporary directory: /tmp/pip-install-cq9jeo5e
Cleaning up…
Removed build tracker: ‘/tmp/pip-req-tracker-hl95yj0x’
ERROR: File “setup.py” not found. Directory cannot be installed in editable mode: /content
Exception information:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/base_command.py”, line 186, in _main
status = self.run(options, args)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py”, line 301, in run
wheel_cache
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/req_command.py”, line 259, in populate_requirement_set
wheel_cache=wheel_cache
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/req/constructors.py”, line 227, in install_req_from_editable
parts = parse_req_from_editable(editable_req)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/req/constructors.py”, line 198, in parse_req_from_editable
name, url, extras_override = parse_editable(editable_req)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/req/constructors.py”, line 109, in parse_editable
raise InstallationError(msg)
pip._internal.exceptions.InstallationError: File “setup.py” not found. Directory cannot be installed in editable mode: /content

COuld you help with this issue?

You’re running it in the wrong folder.

Is this 32-bit Python? We don’t support it, install 64-bit Python.

Hi reuben, Could you specify where I went wrong? which folder?

The message says “setup.py not found”, and it says you’re running from “/content”, which is the default folder in Colab. You need to run it from inside the repository checkout, as documented: https://deepspeech.readthedocs.io/en/v0.7.1/TRAINING.html#installing-deepspeech-training-code-and-its-dependencies

These are steps I followed (as written in documentation). Please let me know

!git clone https://github.com/mozilla/DeepSpeech

!cd DeepSpeech
!pip3 install --upgrade pip==20.0.2 wheel==0.34.2 setuptools==46.1.3
!pip3 install --upgrade --force-reinstall -e .

Either you didn’t do the cd or it didn’t work. The error message clearly states you tried to install the /content folder.

I got the issue. Actually !cd command doesnt work in colab.
it should be just

cd DeepSpeech/

I wasnt aware of this. Thanks for the help

Hi, I’ve 2 machines for training (Win-Linux) … I have the same above error with windows only.
Following the documentation, the following command fails:
pip3 install --upgrade --force-reinstall -e .

Although the below command installs the wheel, but the error persists:

pip3 install --upgrade https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.7.1.win-ctc/artifacts/public/ds_ctcdecoder-0.7.1-cp37-cp37m-win_amd64.whl

>pip3 install --upgrade --force-reinstall -v -e .
Non-user install because site-packages writeable
Created temporary directory: C:\Users\tarek\AppData\Local\Temp\pip-ephem-wheel-cache-3ozj0lzj
Created temporary directory: C:\Users\tarek\AppData\Local\Temp\pip-req-tracker-vfv6uqs6
Initialized build tracking at C:\Users\tarek\AppData\Local\Temp\pip-req-tracker-vfv6uqs6
Created build tracker: C:\Users\tarek\AppData\Local\Temp\pip-req-tracker-vfv6uqs6
Entered build tracker: C:\Users\tarek\AppData\Local\Temp\pip-req-tracker-vfv6uqs6
Created temporary directory: C:\Users\tarek\AppData\Local\Temp\pip-install-1fkc6ol2
Obtaining file:///C:/Users/tarek/Documents/repo/dsq
  Added file:///C:/Users/tarek/Documents/repo/dsq to build tracker 'C:\\Users\\tarek\\AppData\\Local\\Temp\\pip-req-tracker-vfv6uqs6'
    Running setup.py (path:C:\Users\tarek\Documents\repo\dsq\setup.py) egg_info for package from file:///C:/Users/tarek/Documents/repo/dsq
    Created temporary directory: C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_
    Running command python setup.py egg_info
    running egg_info
    creating C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info
    writing C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info\PKG-INFO
    writing dependency_links to C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info\dependency_links.txt
    writing requirements to C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info\requires.txt
    writing top-level names to C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info\top_level.txt
    writing manifest file 'C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info\SOURCES.txt'
    reading manifest file 'C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info\SOURCES.txt'
    writing manifest file 'C:\Users\tarek\AppData\Local\Temp\pip-pip-egg-info-ozxu97s_\deepspeech_training.egg-info\SOURCES.txt'
  Source in c:\users\tarek\documents\repo\dsq has version 0.7.1, which satisfies requirement deepspeech-training==0.7.1 from file:///C:/Users/tarek/Documents/repo/dsq
  Removed deepspeech-training==0.7.1 from file:///C:/Users/tarek/Documents/repo/dsq from build tracker 'C:\\Users\\tarek\\AppData\\Local\\Temp\\pip-req-tracker-vfv6uqs6'
ERROR: ds_ctcdecoder-0.7.1-cp37-cp37m-windows_AMD64.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
  File "c:\users\tarek\.conda\envs\dsq\lib\site-packages\pip\_internal\cli\base_command.py", line 188, in _main
    status = self.run(options, args)
  File "c:\users\tarek\.conda\envs\dsq\lib\site-packages\pip\_internal\cli\req_command.py", line 185, in wrapper
    return func(self, options, args)
  File "c:\users\tarek\.conda\envs\dsq\lib\site-packages\pip\_internal\commands\install.py", line 333, in run
    reqs, check_supported_wheels=not options.target_dir
  File "c:\users\tarek\.conda\envs\dsq\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 179, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "c:\users\tarek\.conda\envs\dsq\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 423, in _resolve_one
    add_req(subreq, extras_requested=available_requested)
  File "c:\users\tarek\.conda\envs\dsq\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 384, in add_req
    extras_requested=extras_requested,
  File "c:\users\tarek\.conda\envs\dsq\lib\site-packages\pip\_internal\req\req_set.py", line 109, in add_requirement
    wheel.filename)
pip._internal.exceptions.InstallationError: ds_ctcdecoder-0.7.1-cp37-cp37m-windows_AMD64.whl is not a supported wheel on this platform.
Removed build tracker: 'C:\\Users\\tarek\\AppData\\Local\\Temp\\pip-req-tracker-vfv6uqs6'

Without the proper setup I get ModuleNotFoundError: No module named 'deepspeech_training'

According to @lissyx training is broken on windows. Is there a workaround? Is it only the setup script?