epcpower / st

GNU General Public License v2.0
4 stars 1 forks source link

error with step poetry install #29

Open Nagananda97 opened 2 years ago

Nagananda97 commented 2 years ago

below is the error i am getting while i try to install it

Installing dependencies from lock file ▒ Installing dulwich (0.20.6): Failed ▒ Installing typed-ast (1.5.3): Installing... ▒ Installing selenium (3.141.0): Failed ▒ Installing typed-ast (1.5.3): Failed

EnvCommandError

Command C:\Users\Ranial\AppData\Local\pypoetry\Cache\virtualenvs\epyq-yQ3huud7-py3.7\Scripts\pip.exe install --no-deps file:///C:/Users/Ranial/AppData/Local/pypoetry/Cache/artifacts/ec/47/ab/511bfc77137857d1c81cbe706b58d93d8730eaf484d016671ff5ce902b/typed_ast-1.5.3.tar.gz errored with the following return code 1, and output: Processing c:\users\ranial\appdata\local\pypoetry\cache\artifacts\ec\47\ab\511bfc77137857d1c81cbe706b58d93d8730eaf484d016671ff5ce902b\typed_ast-1.5.3.tar.gz Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: typed-ast Building wheel for typed-ast (setup.py): started Building wheel for typed-ast (setup.py): finished with status 'error' error: subprocess-exited-with-error

python setup.py bdist_wheel did not run successfully.
exit code: 1

[16 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-cpython-37
creating build\lib.win32-cpython-37\typed_ast
copying typed_ast\ast27.py -> build\lib.win32-cpython-37\typed_ast
copying typed_ast\ast3.py -> build\lib.win32-cpython-37\typed_ast
copying typed_ast\conversions.py -> build\lib.win32-cpython-37\typed_ast
copying typed_ast\__init__.py -> build\lib.win32-cpython-37\typed_ast
package init file 'ast3\tests\__init__.py' not found (or not a regular file)
creating build\lib.win32-cpython-37\typed_ast\tests
copying ast3\tests\test_basics.py -> build\lib.win32-cpython-37\typed_ast\tests
running build_ext
building '_ast27' extension
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/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for typed-ast
Running setup.py clean for typed-ast

Failed to build typed-ast Installing collected packages: typed-ast Running setup.py install for typed-ast: started Running setup.py install for typed-ast: finished with status 'error' error: subprocess-exited-with-error

Running setup.py install for typed-ast did not run successfully.
exit code: 1

[18 lines of output]
running install
C:\Users\Ranial\AppData\Local\pypoetry\Cache\virtualenvs\epyq-yQ3huud7-py3.7\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build\lib.win32-cpython-37
creating build\lib.win32-cpython-37\typed_ast
copying typed_ast\ast27.py -> build\lib.win32-cpython-37\typed_ast
copying typed_ast\ast3.py -> build\lib.win32-cpython-37\typed_ast
copying typed_ast\conversions.py -> build\lib.win32-cpython-37\typed_ast
copying typed_ast\__init__.py -> build\lib.win32-cpython-37\typed_ast
package init file 'ast3\tests\__init__.py' not found (or not a regular file)
creating build\lib.win32-cpython-37\typed_ast\tests
copying ast3\tests\test_basics.py -> build\lib.win32-cpython-37\typed_ast\tests
running build_ext
building '_ast27' extension
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/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: legacy-install-failure

Encountered error while trying to install package.

typed-ast

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

at c:\users\ranial\appdata\local\programs\python\python37-32\lib\site-packages\poetry\utils\env.py:1195 in _run

MohamadA337 commented 2 years ago

Hello @Nagananda97, I'm running into the same issue. Were you able to figure it out?