SurabhiSuresh22 / Car-Price-Prediction

Deployment project using Flask and heroku app
https://car-price-predictor.onrender.com
2 stars 14 forks source link

Server not starting and getting error while running flask application #1

Open HarshitGupta150 opened 2 years ago

HarshitGupta150 commented 2 years ago

Hello. can u help me out . I am getting error while running your flask app code. Actually , I am using Xgboost model for the car prediction and then using that model in pickle file. The error generates when I install the packages mentioned in requirements.txt file.

Error I am facing is too long so I am pasting some parts of it:

UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running dist_info 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 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: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.UserWarning: Unknown distribution option: 'define_macros'

SurabhiSuresh22 commented 2 years ago

Dont use my requirements. txt file. There is a command to get the file you can google it. Get this file for your project on your pc and use that.

On Tue, May 10, 2022, 11:12 AM HarshitGupta150 @.***> wrote:

Hello. can u help me out . I am getting error while running your flask app code. Actually , I am using Xgboost model for the car prediction and then using that model in pickle file. The error generates when I install the packages mentioned in requirements.txt file.

Error I am facing is too long so I am pasting some parts of it:

UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running dist_info 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 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: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.UserWarning: Unknown distribution option: 'define_macros'

— Reply to this email directly, view it on GitHub https://github.com/SurabhiSuresh22/Car-Price-Prediction/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBW5IFID6YVTX7MH3YFM2DVJHZN7ANCNFSM5VQMFFMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

HarshitGupta150 commented 2 years ago

I did as u suggested but now on running the command flask run , I am getting this error:

Exception ignored in: <function Booster.del at 0x0000006B6C939C10> Traceback (most recent call last): File "Desktop\Flask Car App\env\lib\site-packages\xgboost\core.py", line 957, in del if self.handle is not None: AttributeError: 'Booster' object has no attribute 'handle'

Aborted!