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

Especially you have AMD64 when I see amd64 in our URLs.

Its the same info using -v before -e

(ProjEnv) C:\Users\HP\Downloads\DeepSpeech>pip3 install --upgrade --force-reinstall -v -e .
Non-user install because site-packages writeable
Created temporary directory: C:\Users\HP\AppData\Local\Temp\pip-ephem-wheel-cache-ky8kl615
Created temporary directory: C:\Users\HP\AppData\Local\Temp\pip-req-tracker-rlt1hce7
Initialized build tracking at C:\Users\HP\AppData\Local\Temp\pip-req-tracker-rlt1hce7
Created build tracker: C:\Users\HP\AppData\Local\Temp\pip-req-tracker-rlt1hce7
Entered build tracker: C:\Users\HP\AppData\Local\Temp\pip-req-tracker-rlt1hce7
Created temporary directory: C:\Users\HP\AppData\Local\Temp\pip-install-dhup5qzx
Obtaining file:///C:/Users/HP/Downloads/DeepSpeech
Added file:///C:/Users/HP/Downloads/DeepSpeech to build tracker ‘C:\Users\HP\AppData\Local\Temp\pip-req-tracker-rlt1hce7’
Running setup.py (path:C:\Users\HP\Downloads\DeepSpeech\setup.py) egg_info for package from file:///C:/Users/HP/Downloads/DeepSpeech
Running command python setup.py egg_info
running egg_info
writing training\deepspeech_training.egg-info\PKG-INFO
writing dependency_links to training\deepspeech_training.egg-info\dependency_links.txt
writing requirements to training\deepspeech_training.egg-info\requires.txt
writing top-level names to training\deepspeech_training.egg-info\top_level.txt
reading manifest file ‘training\deepspeech_training.egg-info\SOURCES.txt’
writing manifest file ‘training\deepspeech_training.egg-info\SOURCES.txt’
Source in c:\users\hp\downloads\deepspeech has version 0.7.1, which satisfies requirement deepspeech-training==0.7.1 from file:///C:/Users/HP/Downloads/DeepSpeech
Removed deepspeech-training==0.7.1 from file:///C:/Users/HP/Downloads/DeepSpeech from build tracker ‘C:\Users\HP\AppData\Local\Temp\pip-req-tracker-rlt1hce7’
Cleaning up…
Removed build tracker: ‘C:\Users\HP\AppData\Local\Temp\pip-req-tracker-rlt1hce7’
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\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 331, in run
resolver.resolve(requirement_set)
File “c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\pip_internal\legacy_resolve.py”, line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File “c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\pip_internal\legacy_resolve.py”, line 394, in _resolve_one
add_req(subreq, extras_requested=available_requested)
File “c:\users\hp\appdata\local\programs\python\python37-32\lib\site-packages\pip_internal\legacy_resolve.py”, line 355, in add_req
extras_requested=extras_requested,
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-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.