question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while running manage.py

See original GitHub issue

Hi , Great work! When I tried to install the setup on windows , I got the following error while running python manage.py preparetracker Error: RuntimeError: Attempted to compile AOT function without the compiler used by numpy.distutils present. Cannot find suitable msvc.

Can someone please help me out? Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
manishs17commented, Apr 25, 2020

@poornimajd , that’s nice . If you still want on windows just install Build Tools for Visual Studio 2019

you can find that in this page, https://visualstudio.microsoft.com/downloads/ scroll down until you see Tools for Visual Studio under the All downloads section and select the download for Build Tools for Visual Studio.

0reactions
manishs17commented, Dec 15, 2020

@poornimajd , that’s nice . If you still want on windows just install Build Tools for Visual Studio 2019 you can find that in this page, https://visualstudio.microsoft.com/downloads/ scroll down until you see Tools for Visual Studio under the All downloads section and select the download for Build Tools for Visual Studio.

hello i have done all what you suggested but i am still getting the error. please helpe me, it is quite urgent!!

what’s the exact error message ?

python : The term ‘python’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • python manage.py preparetracker
  •   + CategoryInfo          : ObjectNotFound: (python:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

what version of python you have installed ? use python 3.6 and try executing it from a separate command prompt terminal and not VS code.

i solved the python version problem . a am back to where i got stuck before. RuntimeError: Attempted to compile AOT function without the compiler used by numpy.distutils present. Cannot find suitable msvc.

have you installed this (Build Tools for Visual Studio 2019) from, https://visualstudio.microsoft.com/downloads/ if you have already done that, can you verify installtion by typing cl in Developer command prompt on windows image

distutils.errors.LinkError: Command “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\abdirahman\AppData\Local\Programs\Python\Python36\libs /LIBPATH:C:\Users\abdirahman\AppData\Local\Programs\Python\Python36\PCbuild\amd64 /LIBPATH:C:\Users\abdirahman\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\lib /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64 python36.lib msvcrt.lib npymath.lib /EXPORT:PyInit_fhog_utils C:\Users\ABDIRA~1\AppData\Local\Temp\pycc-build-fhog_utils-z8kqzobo\fhog_utils.cp36-win_amd64.o C:\Users\ABDIRA~1\AppData\Local\Temp\pycc-build-fhog_utils-z8kqzobo\Users\abdirahman\AppData\Local\Programs\Python\Python36\lib\site-packages\numba\pycc\modulemixin.obj C:\Users\ABDIRA~1\AppData\Local\Temp\pycc-build-fhog_utils-z8kqzobo\Users\abdirahman\AppData\Local\Programs\Python\Python36\lib\site-packages\numba\pycc…/_math_c99.obj C:\Users\ABDIRA~1\AppData\Local\Temp\pycc-build-fhog_utils-z8kqzobo\Users\abdirahman\AppData\Local\Programs\Python\Python36\lib\site-packages\numba\pycc…/runtime/nrt.obj /OUT:C:\repos\eva\annotator\kcftracker\fhog_utils.cp36-win_amd64.pyd /IMPLIB:C:\Users\ABDIRA~1\AppData\Local\Temp\pycc-build-fhog_utils-z8kqzobo\fhog_utils.cp36-win_amd64.lib” failed with exit status 1158

this is the new error i got, it says distutils links error

check if this helps, https://stackoverflow.com/questions/43858836/python-installing-clarifai-vs14-0-link-exe-failed-with-exit-status-1158

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while Running Python manage.py runserver comman
First i ran django-admin startproject This command works according to tutorial but when I run this command python manage.py runserver ...
Read more >
Django shows error when trying to run the manage.py server
I have been facing issues in using Django. Actually when I tried to run the command :- python manage.py runserver. It gives me...
Read more >
Error while using manage.py - Google Groups
I am using conda virtual enviroment to use django for my project . I am learning django from telusko youtube channel . First...
Read more >
Running Django Project Tutorials on PythonAnywhere - DJ4E
The problem with these errors is that you think you are supposed to edit files like manage.py or settings.py but the files are...
Read more >
error while running '$ python manage.py collectstatic --noinput'.
Error while running '$ python manage.py collectstatic --noinput'. remote: See traceback above for details. remote: remote: You may need to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found