qiskit-metapackage icon indicating copy to clipboard operation
qiskit-metapackage copied to clipboard

Building wheel for fastdtw (setup.py) ... error

Open yusufalma opened this issue 3 years ago • 3 comments

Informations

  • Qiskit version: 0.28.0
  • Python version: 3.8.10
  • Operating system: Windows 7 Home Basic 64-bit Service Pack 1

What is the current behavior?

Collecting qiskit Using cached qiskit-0.28.0-py3-none-any.whl Collecting qiskit-ibmq-provider==0.15.0 Using cached qiskit_ibmq_provider-0.15.0-py3-none-any.whl (234 kB) Collecting qiskit-aqua==0.9.4 Using cached qiskit_aqua-0.9.4-py3-none-any.whl (2.1 MB) Requirement already satisfied: qiskit-terra==0.18.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit) (0.18.0) Requirement already satisfied: qiskit-ignis==0.6.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit) (0.6.0) Collecting qiskit-aer==0.8.2 Using cached qiskit_aer-0.8.2-cp38-cp38-win_amd64.whl (24.2 MB) Requirement already satisfied: pybind11>=2.6 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aer==0.8.2->qiskit) (2.7.0) Requirement already satisfied: numpy>=1.16.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aer==0.8.2->qiskit) (1.20.3) Requirement already satisfied: scipy>=1.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aer==0.8.2->qiskit) (1.6.3) Requirement already satisfied: sympy>=1.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (1.8) Requirement already satisfied: h5py<3.3.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (3.2.1) Collecting dlx<=1.0.4 Using cached dlx-1.0.4-py3-none-any.whl Requirement already satisfied: pandas in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (1.2.4) Requirement already satisfied: quandl in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (3.6.1) Requirement already satisfied: yfinance<0.1.63 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (0.1.62) Requirement already satisfied: setuptools>=40.1.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (57.0.0) Requirement already satisfied: retworkx>=0.8.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (0.9.0) Requirement already satisfied: psutil>=5 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (5.8.0) Requirement already satisfied: scikit-learn>=0.20.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (0.24.2) Collecting docplex>=2.21.207 Using cached docplex-2.21.207-py3-none-any.whl Collecting fastdtw<=0.3.4 Using cached fastdtw-0.3.4.tar.gz (133 kB) Requirement already satisfied: websocket-client>=1.0.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (1.0.1) Requirement already satisfied: urllib3>=1.21.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (1.26.5) Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (2.8.1) Requirement already satisfied: requests>=2.19 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (2.25.1) Requirement already satisfied: requests-ntlm>=1.1.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (1.1.0) Requirement already satisfied: dill>=0.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (0.3.4) Requirement already satisfied: fastjsonschema>=2.10 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (2.15.1) Requirement already satisfied: python-constraint>=1.4 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (1.4.0) Requirement already satisfied: jsonschema>=2.6 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (3.2.0) Requirement already satisfied: ply>=3.10 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (3.11) Requirement already satisfied: tweedledum<2.0,>=1.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (1.1.0) Requirement already satisfied: six in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from docplex>=2.21.207->qiskit-aqua==0.9.4->qiskit) (1.16.0) Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from jsonschema>=2.6->qiskit-terra==0.18.0->qiskit) (0.17.3) Requirement already satisfied: attrs>=17.4.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from jsonschema>=2.6->qiskit-terra==0.18.0->qiskit) (21.2.0) Requirement already satisfied: idna<3,>=2.5 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests>=2.19->qiskit-ibmq-provider==0.15.0->qiskit) (2.10) Requirement already satisfied: certifi>=2017.4.17 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests>=2.19->qiskit-ibmq-provider==0.15.0->qiskit) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests>=2.19->qiskit-ibmq-provider==0.15.0->qiskit) (4.0.0) Requirement already satisfied: ntlm-auth>=1.0.2 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (1.5.0) Requirement already satisfied: cryptography>=1.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (3.4.7) Requirement already satisfied: cffi>=1.12 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (1.14.5) Requirement already satisfied: pycparser in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from cffi>=1.12->cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (2.20) Requirement already satisfied: joblib>=0.11 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from scikit-learn>=0.20.0->qiskit-aqua==0.9.4->qiskit) (1.0.1) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from scikit-learn>=0.20.0->qiskit-aqua==0.9.4->qiskit) (2.1.0) Requirement already satisfied: mpmath>=0.19 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from sympy>=1.3->qiskit-aqua==0.9.4->qiskit) (1.2.1) Requirement already satisfied: multitasking>=0.0.7 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from yfinance<0.1.63->qiskit-aqua==0.9.4->qiskit) (0.0.9) Requirement already satisfied: lxml>=4.5.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from yfinance<0.1.63->qiskit-aqua==0.9.4->qiskit) (4.6.3) Requirement already satisfied: pytz>=2017.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from pandas->qiskit-aqua==0.9.4->qiskit) (2021.1) Requirement already satisfied: inflection>=0.3.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from quandl->qiskit-aqua==0.9.4->qiskit) (0.5.1) Requirement already satisfied: more-itertools in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from quandl->qiskit-aqua==0.9.4->qiskit) (8.8.0)

Building wheels for collected packages: fastdtw Building wheel for fastdtw (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\alma\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py'"'"'; file='"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Alma\AppData\Local\Temp\pip-wheel-g_a6l8_i' cwd: C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b
Complete output (46 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\fastdtw copying fastdtw\fastdtw.py -> build\lib.win-amd64-3.8\fastdtw copying fastdtw_init_.py -> build\lib.win-amd64-3.8\fastdtw running build_ext Traceback (most recent call last): File "", line 1, in File "C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py", line 81, in setup(**kwargs) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools_init_.py", line 153, in setup return distutils.core.setup(**attrs) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\wheel\bdist_wheel.py", line 299, in run self.run_command('build') File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build_ext.py", line 306, in run self.compiler = new_compiler(compiler=self.compiler, File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\ccompiler.py", line 1032, in new_compiler return klass(None, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 282, in init CygwinCCompiler.init (self, verbose, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 126, in init if self.ld_version >= "2.10.90": TypeError: '>=' not supported between instances of 'NoneType' and 'str'

ERROR: Failed building wheel for fastdtw Running setup.py clean for fastdtw Failed to build fastdtw Installing collected packages: fastdtw, docplex, dlx, qiskit-ibmq-provider, qiskit-aqua, qiskit-aer, qiskit Running setup.py install for fastdtw ... error ERROR: Command errored out with exit status 1: command: 'c:\users\alma\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py'"'"';file='"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Alma\AppData\Local\Temp\pip-record-jwofo40a\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\alma\appdata\local\programs\python\python38\Include\fastdtw' cwd: C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b
Complete output (48 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\fastdtw copying fastdtw\fastdtw.py -> build\lib.win-amd64-3.8\fastdtw copying fastdtw_init_.py -> build\lib.win-amd64-3.8\fastdtw running build_ext Traceback (most recent call last): File "", line 1, in File "C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py", line 81, in setup(**kwargs) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools_init_.py", line 153, in setup return distutils.core.setup(**attrs) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\install.py", line 545, in run self.run_command('build') File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build_ext.py", line 306, in run self.compiler = new_compiler(compiler=self.compiler, File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\ccompiler.py", line 1032, in new_compiler return klass(None, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 282, in init CygwinCCompiler.init (self, verbose, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 126, in init if self.ld_version >= "2.10.90": TypeError: '>=' not supported between instances of 'NoneType' and 'str'

ERROR: Command errored out with exit status 1: 'c:\users\alma\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py'"'"';file='"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-rbka7r7_\fastdtw_66b1704a7efb483e92ff211a23bdd13b\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Alma\AppData\Local\Temp\pip-record-jwofo40a\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\alma\appdata\local\programs\python\python38\Include\fastdtw' Check the logs for full command output.

Steps to reproduce the problem

pip install qiskit

What is the expected behavior?

Qiskit installed successfully.

Suggested solutions

yusufalma avatar Jul 29 '21 06:07 yusufalma

Hi, This seems not Qiskit's bug. The error occured in distutils module and distutils is an old and deprecated package 1. Would you try to install setuptools , which is a successor to distutils 1, by pip install -U setuptools and install qiskit again? Or, install a later version of Python downloaded from python.org 3 and install qiskit again with the later version of Python.

pjxiao avatar Jul 30 '21 01:07 pjxiao

Hi @pjxiao ,

Thanks for your respond. I have done your suggestion to upgrade setuptools, but the error still there. Here is the log:

Collecting qiskit Using cached qiskit-0.28.0-py3-none-any.whl Collecting qiskit-ibmq-provider==0.15.0 Using cached qiskit_ibmq_provider-0.15.0-py3-none-any.whl (234 kB) Collecting qiskit-aer==0.8.2 Using cached qiskit_aer-0.8.2-cp38-cp38-win_amd64.whl (24.2 MB) Requirement already satisfied: qiskit-ignis==0.6.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit) (0.6.0) Requirement already satisfied: qiskit-terra==0.18.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit) (0.18.0) Collecting qiskit-aqua==0.9.4 Using cached qiskit_aqua-0.9.4-py3-none-any.whl (2.1 MB) Requirement already satisfied: scipy>=1.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aer==0.8.2->qiskit) (1.6.3) Requirement already satisfied: pybind11>=2.6 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aer==0.8.2->qiskit) (2.7.0) Requirement already satisfied: numpy>=1.16.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aer==0.8.2->qiskit) (1.21.1) Requirement already satisfied: pandas in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (1.2.4) Requirement already satisfied: retworkx>=0.8.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (0.9.0) Requirement already satisfied: setuptools>=40.1.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (57.4.0) Requirement already satisfied: h5py<3.3.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (3.2.1) Requirement already satisfied: yfinance<0.1.63 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (0.1.62) Collecting fastdtw<=0.3.4 Using cached fastdtw-0.3.4.tar.gz (133 kB) Collecting dlx<=1.0.4 Using cached dlx-1.0.4-py3-none-any.whl Requirement already satisfied: sympy>=1.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (1.8) Requirement already satisfied: quandl in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (3.6.1) Requirement already satisfied: scikit-learn>=0.20.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (0.24.2) Requirement already satisfied: psutil>=5 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-aqua==0.9.4->qiskit) (5.8.0) Collecting docplex>=2.21.207 Using cached docplex-2.21.207-py3-none-any.whl Requirement already satisfied: websocket-client>=1.0.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (1.0.1) Requirement already satisfied: urllib3>=1.21.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (1.26.5) Requirement already satisfied: requests>=2.19 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (2.25.1) Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (2.8.1) Requirement already satisfied: requests-ntlm>=1.1.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-ibmq-provider==0.15.0->qiskit) (1.1.0) Requirement already satisfied: tweedledum<2.0,>=1.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (1.1.0) Requirement already satisfied: dill>=0.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (0.3.4) Requirement already satisfied: ply>=3.10 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (3.11) Requirement already satisfied: fastjsonschema>=2.10 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (2.15.1) Requirement already satisfied: jsonschema>=2.6 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (3.2.0) Requirement already satisfied: python-constraint>=1.4 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from qiskit-terra==0.18.0->qiskit) (1.4.0) Requirement already satisfied: six in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from docplex>=2.21.207->qiskit-aqua==0.9.4->qiskit) (1.16.0) Requirement already satisfied: attrs>=17.4.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from jsonschema>=2.6->qiskit-terra==0.18.0->qiskit) (21.2.0) Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from jsonschema>=2.6->qiskit-terra==0.18.0->qiskit) (0.17.3) Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests>=2.19->qiskit-ibmq-provider==0.15.0->qiskit) (4.0.0) Requirement already satisfied: idna<3,>=2.5 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests>=2.19->qiskit-ibmq-provider==0.15.0->qiskit) (2.10) Requirement already satisfied: certifi>=2017.4.17 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests>=2.19->qiskit-ibmq-provider==0.15.0->qiskit) (2021.5.30) Requirement already satisfied: ntlm-auth>=1.0.2 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (1.5.0) Requirement already satisfied: cryptography>=1.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (3.4.7) Requirement already satisfied: cffi>=1.12 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (1.14.5) Requirement already satisfied: pycparser in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from cffi>=1.12->cryptography>=1.3->requests-ntlm>=1.1.0->qiskit-ibmq-provider==0.15.0->qiskit) (2.20) Requirement already satisfied: joblib>=0.11 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from scikit-learn>=0.20.0->qiskit-aqua==0.9.4->qiskit) (1.0.1) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from scikit-learn>=0.20.0->qiskit-aqua==0.9.4->qiskit) (2.1.0) Requirement already satisfied: mpmath>=0.19 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from sympy>=1.3->qiskit-aqua==0.9.4->qiskit) (1.2.1) Requirement already satisfied: multitasking>=0.0.7 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from yfinance<0.1.63->qiskit-aqua==0.9.4->qiskit) (0.0.9) Requirement already satisfied: lxml>=4.5.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from yfinance<0.1.63->qiskit-aqua==0.9.4->qiskit) (4.6.3) Requirement already satisfied: pytz>=2017.3 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from pandas->qiskit-aqua==0.9.4->qiskit) (2021.1) Requirement already satisfied: more-itertools in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from quandl->qiskit-aqua==0.9.4->qiskit) (8.8.0) Requirement already satisfied: inflection>=0.3.1 in c:\users\alma\appdata\local\programs\python\python38\lib\site-packages (from quandl->qiskit-aqua==0.9.4->qiskit) (0.5.1) Building wheels for collected packages: fastdtw Building wheel for fastdtw (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\alma\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py'"'"'; file='"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Alma\AppData\Local\Temp\pip-wheel-znjhk3z6' cwd: C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af
Complete output (46 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\fastdtw copying fastdtw\fastdtw.py -> build\lib.win-amd64-3.8\fastdtw copying fastdtw_init_.py -> build\lib.win-amd64-3.8\fastdtw running build_ext Traceback (most recent call last): File "", line 1, in File "C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py", line 81, in setup(**kwargs) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools_init_.py", line 153, in setup return distutils.core.setup(**attrs) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\wheel\bdist_wheel.py", line 299, in run self.run_command('build') File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build_ext.py", line 306, in run self.compiler = new_compiler(compiler=self.compiler, File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\ccompiler.py", line 1032, in new_compiler return klass(None, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 282, in init CygwinCCompiler.init (self, verbose, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 126, in init if self.ld_version >= "2.10.90": TypeError: '>=' not supported between instances of 'NoneType' and 'str'

ERROR: Failed building wheel for fastdtw Running setup.py clean for fastdtw Failed to build fastdtw Installing collected packages: fastdtw, docplex, dlx, qiskit-ibmq-provider, qiskit-aqua, qiskit-aer, qiskit Running setup.py install for fastdtw ... error ERROR: Command errored out with exit status 1: command: 'c:\users\alma\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py'"'"'; file='"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Alma\AppData\Local\Temp\pip-record-2bd8wugy\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\alma\appdata\local\programs\python\python38\Include\fastdtw' cwd: C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af
Complete output (48 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\fastdtw copying fastdtw\fastdtw.py -> build\lib.win-amd64-3.8\fastdtw copying fastdtw_init_.py -> build\lib.win-amd64-3.8\fastdtw running build_ext Traceback (most recent call last): File "", line 1, in File "C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py", line 81, in setup(**kwargs) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools_init_.py", line 153, in setup return distutils.core.setup(**attrs) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\install.py", line 545, in run self.run_command('build') File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\command\build_ext.py", line 306, in run self.compiler = new_compiler(compiler=self.compiler, File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\ccompiler.py", line 1032, in new_compiler return klass(None, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 282, in init CygwinCCompiler.init (self, verbose, dry_run, force) File "c:\users\alma\appdata\local\programs\python\python38\lib\distutils\cygwinccompiler.py", line 126, in init if self.ld_version >= "2.10.90": TypeError: '>=' not supported between instances of 'NoneType' and 'str'

ERROR: Command errored out with exit status 1: 'c:\users\alma\appdata\local\programs\python\python38\python.exe' -u -c 'import io, os, sys, setuptools , tokenize; sys.argv[0] = '"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py'"'"'; _ file_='"'"'C:\Users\Alma\AppData\Local\Temp\pip-install-9s5cp7gu\fastdtw_93a9f7f2c62d4b8a907765b2f004d6af\setup.py'"'"';f = getattr(tokenize , '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Alma\AppData\Local\Temp\pip-record-2bd8wugy\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\alma\appdata\local\programs\python\python38\Include\fastdtw' Check the logs for full command output.

For install later version of Python, I don't think this will be the solution since qiskit requires Python >= 3.6.

Thank you

yusufalma avatar Jul 30 '21 05:07 yusufalma

Hmm, I tried to reproduce your error but I couldn't. Can you tell us where you got that Python interpreter (python.org, anaconda, etc.) and all the installed packages?

My environment:

> python
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
> pip freeze --all
Cython==0.29.24
pip==21.2.1
setuptools==57.4.0
wheel==0.36.2

pjxiao avatar Jul 30 '21 09:07 pjxiao

I'm going to close this as stale now - the relevant packages that were failing (not Qiskit) should have long since updated their dependencies. Please feel free to re-open if there are further problems installing Qiskit.

jakelishman avatar Mar 20 '23 11:03 jakelishman