Skip to content

An error when running "py -3 setup.py". #14854

@linette-zyy

Description

@linette-zyy

Environment data

image

  • Python version Python 3.9.0 (64-bit)
  • Anaconda3 2020.11 (Python 3.8.5 64- bit)

Steps to reproduce:

  1. git clone https://github.com/qubitron/pydemo
  2. cd pydemo
  3. py -3 setup.py

Expected behaviour

The script is running successfully without any error.

Actual behaviour

An error when running "py -3 setup.py".
image

C:\Windows\system32>cd C:\Users\vyizh12\pydemo

C:\Users\vyizh12\pydemo>py -3 setup.py
Cloning into 'hello-stackoverflow'...
remote: Enumerating objects: 88, done.
Receivingotal 88 (delta 0), reused 0 (delta 0), pack-reused 88 eceiving objects:  46% (41/88)
Receiving objects: 100% (88/88), 69.86 KiB | 546.00 KiB/s, done.
Resolving deltas: 100% (33/33), done.
Collecting astroid==1.6.1
  Using cached astroid-1.6.1-py2.py3-none-any.whl (288 kB)
Collecting attrs==17.4.0
  Using cached attrs-17.4.0-py2.py3-none-any.whl (31 kB)
Collecting certifi==2018.1.18
  Using cached certifi-2018.1.18-py2.py3-none-any.whl (151 kB)
Collecting chardet==3.0.4
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting colorama==0.3.9
  Using cached colorama-0.3.9-py2.py3-none-any.whl (20 kB)
Collecting idna==2.6
  Using cached idna-2.6-py2.py3-none-any.whl (56 kB)
Collecting isort==4.3.4
  Using cached isort-4.3.4-py3-none-any.whl (45 kB)
Collecting lazy-object-proxy==1.3.1
  Using cached lazy-object-proxy-1.3.1.tar.gz (32 kB)
Collecting mccabe==0.6.1
  Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting numpy==1.14.1
  Using cached numpy-1.14.1.zip (4.9 MB)
Collecting pandas==0.22.0
  Using cached pandas-0.22.0.tar.gz (11.3 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\scripts\python.exe' 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\vyizh12\AppData\Local\Temp\pip-build-env-olb0bixx\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython 'numpy==1.9.3; python_version=='"'"'3.5'"'"'' 'numpy==1.12.1; python_version=='"'"'3.6'"'"'' 'numpy==1.13.1; python_version>='"'"'3.7'"'"''
       cwd: None
  Complete output (180 lines):
  Ignoring numpy: markers 'python_version == "3.5"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.6"' don't match your environment
  Collecting wheel
    Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
  Collecting setuptools
    Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
  Collecting Cython
    Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
  Collecting numpy==1.13.1
    Using cached numpy-1.13.1.zip (5.0 MB)
  Using legacy 'setup.py install' for numpy, since package 'wheel' is not installed.
  Installing collected packages: wheel, setuptools, Cython, numpy
      Running setup.py install for numpy: started
      Running setup.py install for numpy: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\vyizh12\\AppData\\Local\\Temp\\pip-install-fbhk8_w_\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\vyizh12\\AppData\\Local\\Temp\\pip-install-fbhk8_w_\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\vyizh12\AppData\Local\Temp\pip-record-m9qyiy58\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\vyizh12\AppData\Local\Temp\pip-build-env-olb0bixx\overlay' --compile --install-headers 'C:\Users\vyizh12\AppData\Local\Temp\pip-build-env-olb0bixx\overlay\include\site\python3.9\numpy'
           cwd: C:\Users\vyizh12\AppData\Local\Temp\pip-install-fbhk8_w_\numpy\
      Complete output (158 lines):
      Running from numpy source directory.

      Note: if you need reliable uninstall behavior, then install
      with pip instead of using `setup.py install`:

        - `pip install .`       (from a git repo or downloaded source
                                 release)
        - `pip install numpy`   (last NumPy release on PyPi)


      C:\Users\vyizh12\AppData\Local\Temp\pip-install-fbhk8_w_\numpy\numpy\distutils\misc_util.py:469: SyntaxWarning: "is" with a literal. Did you mean "=="?
        return is_string(s) and ('*' in s or '?' is s)
      blas_opt_info:
      blas_mkl_info:
        libraries mkl_rt not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      blis_info:
        libraries blis not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      openblas_info:
        libraries openblas not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_3_10_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries tatlas not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_3_10_blas_info:
        libraries satlas not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries ptf77blas,ptcblas,atlas not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_blas_info:
        libraries f77blas,cblas,atlas not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      C:\Users\vyizh12\AppData\Local\Temp\pip-install-fbhk8_w_\numpy\numpy\distutils\system_info.py:572: UserWarning:
          Atlas (http://math-atlas.sourceforge.net/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [atlas]) or by setting
          the ATLAS environment variable.
        self.calc_info()
      blas_info:
        libraries blas not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      C:\Users\vyizh12\AppData\Local\Temp\pip-install-fbhk8_w_\numpy\numpy\distutils\system_info.py:572: UserWarning:
          Blas (http://www.netlib.org/blas/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [blas]) or by setting
          the BLAS environment variable.
        self.calc_info()
      blas_src_info:
        NOT AVAILABLE

      C:\Users\vyizh12\AppData\Local\Temp\pip-install-fbhk8_w_\numpy\numpy\distutils\system_info.py:572: UserWarning:
          Blas (http://www.netlib.org/blas/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [blas_src]) or by setting
          the BLAS_SRC environment variable.
        self.calc_info()
        NOT AVAILABLE

      'svnversion' is not recognized as an internal or external command,
      operable program or batch file.
      'svnversion' is not recognized as an internal or external command,
      operable program or batch file.
      non-existing path in 'numpy\\distutils': 'site.cfg'
      F2PY Version 2
      lapack_opt_info:
      lapack_mkl_info:
        libraries mkl_rt not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      openblas_lapack_info:
        libraries openblas not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      atlas_3_10_threads_info:
      Setting PTATLAS=ATLAS
        libraries tatlas,tatlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries lapack_atlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries tatlas,tatlas not found in C:\
        libraries lapack_atlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
        NOT AVAILABLE

      atlas_3_10_info:
        libraries satlas,satlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries lapack_atlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries satlas,satlas not found in C:\
        libraries lapack_atlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_3_10_info'>
        NOT AVAILABLE

      atlas_threads_info:
      Setting PTATLAS=ATLAS
        libraries ptf77blas,ptcblas,atlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries lapack_atlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries ptf77blas,ptcblas,atlas not found in C:\
        libraries lapack_atlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_threads_info'>
        NOT AVAILABLE

      atlas_info:
        libraries f77blas,cblas,atlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries lapack_atlas not found in C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib
        libraries f77blas,cblas,atlas not found in C:\
        libraries lapack_atlas not found in C:\
      <class 'numpy.distutils.system_info.atlas_info'>
        NOT AVAILABLE

      lapack_info:
        libraries lapack not found in ['C:\\Users\\vyizh12\\pydemo\\hello-stackoverflow\\env\\lib', 'C:\\']
        NOT AVAILABLE

      C:\Users\vyizh12\AppData\Local\Temp\pip-install-fbhk8_w_\numpy\numpy\distutils\system_info.py:572: UserWarning:
          Lapack (http://www.netlib.org/lapack/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [lapack]) or by setting
          the LAPACK environment variable.
        self.calc_info()
      lapack_src_info:
        NOT AVAILABLE

      C:\Users\vyizh12\AppData\Local\Temp\pip-install-fbhk8_w_\numpy\numpy\distutils\system_info.py:572: UserWarning:
          Lapack (http://www.netlib.org/lapack/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [lapack_src]) or by setting
          the LAPACK_SRC environment variable.
        self.calc_info()
        NOT AVAILABLE

      C:\Python39-64\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running install
      running build
      running config_cc
      unifing config_cc, config, build_clib, build_ext, build commands --compiler options
      running config_fc
      unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
      running build_src
      build_src
      building py_modules sources
      creating build
      creating build\src.win-amd64-3.9
      creating build\src.win-amd64-3.9\numpy
      creating build\src.win-amd64-3.9\numpy\distutils
      building library "npymath" sources
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\vyizh12\\AppData\\Local\\Temp\\pip-install-fbhk8_w_\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\vyizh12\\AppData\\Local\\Temp\\pip-install-fbhk8_w_\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\vyizh12\AppData\Local\Temp\pip-record-m9qyiy58\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\vyizh12\AppData\Local\Temp\pip-build-env-olb0bixx\overlay' --compile --install-headers 'C:\Users\vyizh12\AppData\Local\Temp\pip-build-env-olb0bixx\overlay\include\site\python3.9\numpy' Check the logs for full command output.
  WARNING: You are using pip version 20.2.3; however, version 20.3 is available.
  You should consider upgrading via the 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\scripts\python.exe -m pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\scripts\python.exe' 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\vyizh12\AppData\Local\Temp\pip-build-env-olb0bixx\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython 'numpy==1.9.3; python_version=='"'"'3.5'"'"'' 'numpy==1.12.1; python_version=='"'"'3.6'"'"'' 'numpy==1.13.1; python_version>='"'"'3.7'"'"'' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.3 is available.
You should consider upgrading via the 'C:\Users\vyizh12\pydemo\hello-stackoverflow\env\scripts\python.exe -m pip install --upgrade pip' command.
fatal: destination path 'stackoverflow-flask' already exists and is not an empty directory.
Requirement already satisfied: Flask in c:\users\vyizh12\pydemo\stackoverflow-flask\env\lib\site-packages (from -r requirements.txt (line 1)) (1.1.2)
Requirement already satisfied: Werkzeug>=0.15 in c:\users\vyizh12\pydemo\stackoverflow-flask\env\lib\site-packages (from Flask->-r requirements.txt (line 1)) (1.0.1)
Requirement already satisfied: Jinja2>=2.10.1 in c:\users\vyizh12\pydemo\stackoverflow-flask\env\lib\site-packages (from Flask->-r requirements.txt (line 1)) (2.11.2)
Requirement already satisfied: itsdangerous>=0.24 in c:\users\vyizh12\pydemo\stackoverflow-flask\env\lib\site-packages (from Flask->-r requirements.txt (line 1)) (1.1.0)
Requirement already satisfied: click>=5.1 in c:\users\vyizh12\pydemo\stackoverflow-flask\env\lib\site-packages (from Flask->-r requirements.txt (line 1)) (7.1.2)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\vyizh12\pydemo\stackoverflow-flask\env\lib\site-packages (from Jinja2>=2.10.1->Flask->-r requirements.txt (line 1)) (1.1.1)
WARNING: You are using pip version 20.2.3; however, version 20.3 is available.
You should consider upgrading via the 'C:\Users\vyizh12\pydemo\stackoverflow-flask\env\scripts\python.exe -m pip install --upgrade pip' command.
Collecting pylint
  Using cached pylint-2.6.0-py3-none-any.whl (325 kB)
Collecting colorama; sys_platform == "win32"
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting isort<6,>=4.2.5
  Using cached isort-5.6.4-py3-none-any.whl (98 kB)
Collecting toml>=0.7.1
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting astroid<=2.5,>=2.4.0
  Using cached astroid-2.4.2-py3-none-any.whl (213 kB)
Collecting mccabe<0.7,>=0.6
  Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Processing c:\users\vyizh12\appdata\local\pip\cache\wheels\41\20\07\2a3e02cdfc8b442404202f6ef99ff1b1c16b73910968a46f2f\lazy_object_proxy-1.4.3-cp39-cp39-win_amd64.whl
Collecting wrapt~=1.11
  Using cached wrapt-1.12.1.tar.gz (27 kB)
Collecting six~=1.12
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Using legacy 'setup.py install' for wrapt, since package 'wheel' is not installed.
Installing collected packages: colorama, isort, toml, lazy-object-proxy, wrapt, six, astroid, mccabe, pylint
    Running setup.py install for wrapt ... done
Successfully installed astroid-2.4.2 colorama-0.4.4 isort-5.6.4 lazy-object-proxy-1.4.3 mccabe-0.6.1 pylint-2.6.0 six-1.15.0 toml-0.10.2 wrapt-1.12.1
WARNING: You are using pip version 20.2.3; however, version 20.3 is available.
You should consider upgrading via the 'C:\Users\vyizh12\pydemo\myapp\env\scripts\python.exe -m pip install --upgrade pip' command.
Traceback (most recent call last):
  File "C:\Users\vyizh12\pydemo\setup.py", line 53, in <module>
    os.mkdir(snippetsPath)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\vyizh12\\AppData\\Roaming\\Code\\User\\snippets'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions