Giter VIP home page Giter VIP logo

flight-price-prediction's Introduction

Flight Fare Prediction:

Table of Content

Demo

Link: https://flight-price-prediction-api.herokuapp.com/

Overview

This is a Flask web app which predicts fare of Flight ticket.

Motivation

What to do when you are at home due to this pandemic situation? I started to learn Machine Learning model to get most out of it. I came to know mathematics behind all supervised models. Finally it is important to work on application (real world application) to actually make a difference.

Installation

The Code is written in Python 3.6.10. If you don't have Python installed you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:

pip install -r requirements.txt

Deployement on Heroku

Login or signup in order to create virtual app. You can either connect your github profile or download ctl to manually deploy this project.

Our next step would be to follow the instruction given on Heroku Documentation to deploy a web app.

Directory Tree

├── static 
│   ├── css
├── template
│   ├── home.html
├── Procfile
├── README.md
├── app.py
├── flight_price.ipynb
├── flight_rf.pkl
├── requirements.txt

Technologies Used

Bug / Feature Request

If you find a bug (the website couldn't handle the query and / or gave undesired results), kindly open an issue here by including your search query and the expected result

Future Scope

  • Use multiple Algorithms
  • Optimize Flask app.py
  • Front-End

flight-price-prediction's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flight-price-prediction's Issues

Failed to compile Python app

When i was trying to deploy this project on heroku its showing "Push rejected, failed to compile python app. Push failed".
Please help me.

i got an issue while running an app on heroku

               compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-x86_64-3.1/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/app/.heroku/python/include/python3.10 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -c'
               gcc: build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.c
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘unicodetype_repr’:
               numpy/core/src/multiarray/scalartypes.c.src:482:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 482 |     ip = dptr = Py@Name@_AS_@NAME@(self);
                     |     ^~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:488:5: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
                 488 |     new = Py@Name@_From@Name@@extra@(ip, len);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
                 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
                     |                                          ^~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘unicodetype_str’:
               numpy/core/src/multiarray/scalartypes.c.src:482:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 482 |     ip = dptr = Py@Name@_AS_@NAME@(self);
                     |     ^~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:488:5: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
                 488 |     new = Py@Name@_From@Name@@extra@(ip, len);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
                 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
                     |                                          ^~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘gentype_reduce’:
               numpy/core/src/multiarray/scalartypes.c.src:1866:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                1866 |         buffer = PyUnicode_AS_DATA(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1867:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                1867 |         buflen = PyUnicode_GET_DATA_SIZE(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1867:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                1867 |         buflen = PyUnicode_GET_DATA_SIZE(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1867:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                1867 |         buflen = PyUnicode_GET_DATA_SIZE(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1871:5: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
                1871 |     if (PyObject_AsReadBuffer(self, (const void **)&buffer, &buflen)<0) {
                     |     ^~
               In file included from /app/.heroku/python/include/python3.10/genobject.h:12,
                                from /app/.heroku/python/include/python3.10/Python.h:110,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/abstract.h:343:17: note: declared here
                 343 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     |                 ^~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘datetime_arrtype_new’:
               numpy/core/src/multiarray/scalartypes.c.src:2850:30: warning: comparison of integer expressions of different signedness: ‘NPY_DATETIMEUNIT’ {aka ‘enum <anonymous>’} and ‘int’ [-Wsign-compare]
                2850 |         if (ret->obmeta.base == -1) {
                     |                              ^~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘timedelta_arrtype_new’:
               numpy/core/src/multiarray/scalartypes.c.src:2850:30: warning: comparison of integer expressions of different signedness: ‘NPY_DATETIMEUNIT’ {aka ‘enum <anonymous>’} and ‘int’ [-Wsign-compare]
                2850 |         if (ret->obmeta.base == -1) {
                     |                              ^~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3228:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     |                           |
                     |                           double
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3228:12: error: too few arguments to function ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |            ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘cfloat_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3236:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3237 |             (((PyC@name@ScalarObject *)obj)->obval).real);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3236:16: error: too few arguments to function ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3243 |             (((PyC@name@ScalarObject *)obj)->obval).imag);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:16: error: too few arguments to function ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3228:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     |                           |
                     |                           double
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3228:12: error: too few arguments to function ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |            ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘clongdouble_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3236:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3237 |             (((PyC@name@ScalarObject *)obj)->obval).real);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3236:16: error: too few arguments to function ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3243 |             (((PyC@name@ScalarObject *)obj)->obval).imag);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:16: error: too few arguments to function ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3258:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3258 |     return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
                     |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     |                           |
                     |                           double
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3258:12: error: too few arguments to function ‘_Py_HashDouble’
                3258 |     return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
                     |            ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3229:1: warning: control reaches end of non-void function [-Wreturn-type]
                3229 | }
                     | ^
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3229:1: warning: control reaches end of non-void function [-Wreturn-type]
                3229 | }
                     | ^
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3259:1: warning: control reaches end of non-void function [-Wreturn-type]
                3259 | }
                     | ^
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘unicodetype_repr’:
               numpy/core/src/multiarray/scalartypes.c.src:482:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 482 |     ip = dptr = Py@Name@_AS_@NAME@(self);
                     |     ^~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:488:5: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
                 488 |     new = Py@Name@_From@Name@@extra@(ip, len);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
                 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
                     |                                          ^~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘unicodetype_str’:
               numpy/core/src/multiarray/scalartypes.c.src:482:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 482 |     ip = dptr = Py@Name@_AS_@NAME@(self);
                     |     ^~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:483:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                 483 |     len = Py@Name@_GET_SIZE(self);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:488:5: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
                 488 |     new = Py@Name@_From@Name@@extra@(ip, len);
                     |     ^~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
                 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
                     |                                          ^~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘gentype_reduce’:
               numpy/core/src/multiarray/scalartypes.c.src:1866:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                1866 |         buffer = PyUnicode_AS_DATA(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1867:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                1867 |         buflen = PyUnicode_GET_DATA_SIZE(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1867:9: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
                1867 |         buflen = PyUnicode_GET_DATA_SIZE(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
                 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
                     |                                             ^~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1867:9: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
                1867 |         buflen = PyUnicode_GET_DATA_SIZE(self);
                     |         ^~~~~~
               In file included from /app/.heroku/python/include/python3.10/unicodeobject.h:1046,
                                from /app/.heroku/python/include/python3.10/Python.h:83,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
                 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
                     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:1871:5: warning: ‘PyObject_AsReadBuffer’ is deprecated [-Wdeprecated-declarations]
                1871 |     if (PyObject_AsReadBuffer(self, (const void **)&buffer, &buflen)<0) {
                     |     ^~
               In file included from /app/.heroku/python/include/python3.10/genobject.h:12,
                                from /app/.heroku/python/include/python3.10/Python.h:110,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/abstract.h:343:17: note: declared here
                 343 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
                     |                 ^~~~~~~~~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘datetime_arrtype_new’:
               numpy/core/src/multiarray/scalartypes.c.src:2850:30: warning: comparison of integer expressions of different signedness: ‘NPY_DATETIMEUNIT’ {aka ‘enum <anonymous>’} and ‘int’ [-Wsign-compare]
                2850 |         if (ret->obmeta.base == -1) {
                     |                              ^~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘timedelta_arrtype_new’:
               numpy/core/src/multiarray/scalartypes.c.src:2850:30: warning: comparison of integer expressions of different signedness: ‘NPY_DATETIMEUNIT’ {aka ‘enum <anonymous>’} and ‘int’ [-Wsign-compare]
                2850 |         if (ret->obmeta.base == -1) {
                     |                              ^~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3228:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     |                           |
                     |                           double
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3228:12: error: too few arguments to function ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |            ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘cfloat_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3236:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3237 |             (((PyC@name@ScalarObject *)obj)->obval).real);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3236:16: error: too few arguments to function ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3243 |             (((PyC@name@ScalarObject *)obj)->obval).imag);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:16: error: too few arguments to function ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3228:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     |                           |
                     |                           double
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3228:12: error: too few arguments to function ‘_Py_HashDouble’
                3228 |     return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
                     |            ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘clongdouble_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3236:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3237 |             (((PyC@name@ScalarObject *)obj)->obval).real);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3236:16: error: too few arguments to function ‘_Py_HashDouble’
                3236 |     hashreal = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                               ^~~~~~~~
                     |                               |
                     |                               double
                3243 |             (((PyC@name@ScalarObject *)obj)->obval).imag);
                     |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3242:16: error: too few arguments to function ‘_Py_HashDouble’
                3242 |     hashimag = _Py_HashDouble((double)
                     |                ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3258:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
                3258 |     return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
                     |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     |                           |
                     |                           double
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                                      ^~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src:3258:12: error: too few arguments to function ‘_Py_HashDouble’
                3258 |     return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
                     |            ^~~~~~~~~~~~~~
               In file included from /app/.heroku/python/include/python3.10/Python.h:77,
                                from numpy/core/src/multiarray/scalartypes.c.src:3:
               /app/.heroku/python/include/python3.10/pyhash.h:10:23: note: declared here
                  10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
                     |                       ^~~~~~~~~~~~~~
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3229:1: warning: control reaches end of non-void function [-Wreturn-type]
                3229 | }
                     | ^
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3229:1: warning: control reaches end of non-void function [-Wreturn-type]
                3229 | }
                     | ^
               numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
               numpy/core/src/multiarray/scalartypes.c.src:3259:1: warning: control reaches end of non-void function [-Wreturn-type]
                3259 | }
                     | ^
               error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-x86_64-3.1/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/app/.heroku/python/include/python3.10 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -c build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-x86_64-3.10/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o.d" failed with exit status 1
               [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.
         ╰─> numpy
         
         note: This is an issue with the package mentioned above, not pip.
         hint: See above for output from the failure.
         [end of output]
     
     note: This error originates from a subprocess, and is likely not a problem with pip.
   error: subprocess-exited-with-error
   
   × pip subprocess to install build dependencies did not run successfully.
   │ exit code: 1
   ╰─> See above for output.
   
   note: This error originates from a subprocess, and is likely not a problem with pip.

! Push rejected, failed to compile Python app.
! Push failed

link is inactive

I wanna try the link, but it looks inactive and cannot be accessed. Yea, probably I was coming late.

pickle file upload

How do you upload pickle here in GitHub? It says larger than 25MB. Your pickle file is 45 MB.

error

@app.route("/")
@cross_origin()
def home():
return render_template("home.html")

IndentationError: expected an indented block

query

why did we used two dataset ?
data_train and
test_data

Source and destination

Hello..Delhi and kolkata is present in both source and destination text field ..so if we r giving source as kolkata and destination also as kolkata its calculating a price.But how source and destination will be same?

datetime picker is not working

the date time picker is not working;
had to manually add date and time ;
which gave error

please help me fix this issue

Update app

Hello,
Your code is good enough but it is just predict for some places. We can improve this by adding more places.
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.