internlm/SWE-Fixer-Train-110K huggingface dataset:
Repository: mindsdb/mindsdb

Issue:
Getting "all the input arrays must have same number of dimensions" error while training the data

**Describe the bug**
Getting "all the input arrays must have same number of dimensions" error while training the data, when I have too many None values in my csv file. Instead of avoiding these rows, mindsdb is stopping training the data.

**To Reproduce**
Steps to reproduce the behavior:
I am attaching the files which I tried to train. I tried to predict column "installment".

**Expected behavior**
Mindsdb should train the model by dropping "None" value rows

**Screenshots**
Please see the attachments

**Desktop (please complete the following information):**
 - OS: MacOs
![loan_data_error](https://user-images.githubusercontent.com/27191684/51692973-02d5fa80-2024-11e9-8e41-a7b217f34798.JPG)
![null_column_error_loan_data](https://user-images.githubusercontent.com/27191684/51692996-12554380-2024-11e9-955a-836700694497.JPG)

[Loan_data_with_error.csv.zip](https://github.com/mindsdb/mindsdb/files/2792822/Loan_data_with_error.csv.zip)






Discussion:
I am guessing while training the model, mindsdb is taking random group of rows. If all the rows in that particular group has None value for a particular column then it is stopping.
And before training, mindsdb is dividing the data and showing the numbers like 
Test:
Train:
Validation:
Total:

So what is Validation here?

Resolving patch:
diff --git a/mindsdb/libs/phases/stats_generator/stats_generator.py b/mindsdb/libs/phases/stats_generator/stats_generator.py
--- a/mindsdb/libs/phases/stats_generator/stats_generator.py
+++ b/mindsdb/libs/phases/stats_generator/stats_generator.py
@@ -85,7 +85,7 @@ def getColumnDataType(self, data):
             else:
                 type_dist[currentGuess] += 1
 
-        curr_data_type = None
+        curr_data_type = DATA_TYPES.TEXT
         max_data_type = 0
 
         for data_type in type_dist:
@@ -455,4 +455,3 @@ def test():
 # only run the test if this file is called from debugger
 if __name__ == "__main__":
     test()
-


Test patch:
Repository: mindsdb/mindsdb

Issue:
Cleanup before releasing v.1.0
* Remove any unused files
* Remove any unused variable and functions (loads of those in config I'd think)
* Remove any unused requirements
* Update the version for requirements
* Update and standardize the interface of older functions and add comments to them (probably won't have time for all, but at least some)


Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
 import setuptools
+import subprocess
 
 about = {}
 with open("mindsdb/__about__.py") as fp:
@@ -27,5 +28,10 @@
         "License :: OSI Approved :: MIT License",
         "Operating System :: OS Independent",
     ),
-    python_requires=">=3.3"
+    python_requires=">=3.6"
 )
+
+try:
+    subprocess.call(['python3','-m','spacy','download','en'])
+except:
+    subprocess.call(['python','-m','spacy','download','en'])


Test patch:
Repository: mindsdb/mindsdb

Issue:
AttributeError: 'PredictTransactionOutputData' object has no attribute 'predicted_values'
**Describe the bug**
After running predict.py in the example mindsdb/docs/examples/time_series/ I got the following AttributeError:

```
Traceback (most recent call last):
  File "predict.py", line 12, in <module>
    print(result.predicted_values)
AttributeError: 'PredictTransactionOutputData' object has no attribute 'predicted_values'
```

**To Reproduce**
Steps to reproduce the behavior:
1. First run train.py, with python3 train.py
2. When training is finished, run predict.py with python3 predict.py
3. See error

**Expected behavior**
I expected to see the predicted values.

**Desktop (please complete the following information):**
 - OS: Ubuntu 18.04.2 LTS
- mindsdb 1.0.5
- pip 19.1
- python 3.6.7
- virtualenv 15.1.0
- urllib3 1.24

**Additional context**
Before the Traceback I got the following warning many times:

```
WARNING:mindsdb-logger-core-logger:libs/backends/ludwig.py:141 - ('Missing previous predicted values for output column: '
 'Main_Engine_Fuel_Consumption_MT_day, these should be included in your input '
 'under the name: previous_Main_Engine_Fuel_Consumption_MT_day')
```
Finally, I've installed mindsdb using pip3 inside a virtualenvironment.



Discussion:

Resolving patch:
diff --git a/docs/examples/nlp/predict.py b/docs/examples/nlp/predict.py
--- a/docs/examples/nlp/predict.py
+++ b/docs/examples/nlp/predict.py
@@ -18,4 +18,4 @@
 
 # you can now print the results
 print('The predicted number of rooms')
-print(result.predicted_values)
+print(result)
diff --git a/docs/examples/time_series/predict.py b/docs/examples/time_series/predict.py
--- a/docs/examples/time_series/predict.py
+++ b/docs/examples/time_series/predict.py
@@ -9,4 +9,5 @@
 
 # you can now print the results
 print('The predicted main engine fuel consumption')
-print(result.predicted_values)
\ No newline at end of file
+for row in result:
+  print(row)


Test patch:
Repository: mindsdb/mindsdb

Issue:
ValueError: could not convert string to float: 'True'
**Your Environment**
* Python version: 3.7.3
* Operating system: Ubuntu 18.04
* Python environment used (e.g. venv, conda): venv
* Mindsdb version: 1.4.6

**Describe the bug**
Predict input value e.g `Number of times pregnant: 1`  is somehow converted to True instead of 1.
Inside [base_module](https://github.com/mindsdb/mindsdb/blob/f7ca6b842e2d0b29c9a0a465454bf772097431ee/mindsdb/libs/phases/base_module.py#L54) if you check the *kwargs data_frame value contains True as an input value. So the actual mapping error should be somewhere in transaction.py

**To Reproduce**
Steps to reproduce the behavior, for example:
1. Link to [full-example](https://github.com/ZoranPandovski/mindsdb-examples/tree/master/diabetes_example) 

**Additional context**
![Screenshot from 2019-08-20 16-14-32](https://user-images.githubusercontent.com/7192539/63953846-63c62500-ca82-11e9-8a69-f8878c7473cc.png)




Discussion:

Resolving patch:
diff --git a/mindsdb/libs/phases/data_extractor/data_extractor.py b/mindsdb/libs/phases/data_extractor/data_extractor.py
--- a/mindsdb/libs/phases/data_extractor/data_extractor.py
+++ b/mindsdb/libs/phases/data_extractor/data_extractor.py
@@ -4,6 +4,7 @@
 from mindsdb.libs.data_types.mindsdb_logger import log
 from mindsdb.libs.helpers.text_helpers import hashtext
 from mindsdb.external_libs.stats import calculate_sample_size
+from pandas.api.types import is_numeric_dtype
 
 import random
 import traceback
@@ -99,7 +100,12 @@ def _get_prepared_input_df(self):
         groups = df.columns.to_series().groupby(df.dtypes).groups
 
         boolean_dictionary = {True: 'True', False: 'False'}
-        df = df.replace(boolean_dictionary)
+        numeric_dictionary = {True: 1, False: 0}
+        for column in df:
+            if is_numeric_dtype(df[column]):
+                df[column] = df[column].replace(numeric_dictionary)
+            else:
+                df[column] = df[column].replace(boolean_dictionary)
 
         if np.dtype('datetime64[ns]') in groups:
             for colname in groups[np.dtype('datetime64[ns]')]:


Test patch:
Repository: mindsdb/mindsdb

Issue:
Unbound local error
**Your Environment**
anaconda 
* Python version: 3.7.4
* Pip version:19.2.2
* Operating system:Windows
* Python environment used (e.g. venv, conda): conda
* Mindsdb version you tried to install:1.6.15
* Additional info if applicable:

**Describe the bug**
got Unbound local error while running this example 
[https://github.com/ZoranPandovski/mindsdb-examples/tree/master/air_quality](https://github.com/ZoranPandovski/mindsdb-examples/tree/master/air_quality)
**To Reproduce**
Steps to reproduce the behavior, for example:
1. clone the repository
2. Run that example code in a jupyter notebook and you should see the error as presented in the screenshot.

**Expected behavior**
It should start the training.

**Additional context**
![1](https://user-images.githubusercontent.com/19743451/67293940-c7a91f00-f502-11e9-8601-eb8f98c914c4.PNG)
![2](https://user-images.githubusercontent.com/19743451/67293955-cbd53c80-f502-11e9-91e6-108cc96e1061.PNG)


Discussion:
Thanks for reporting this @sk-ip . The air-quality dataset use semicolon ';' as a delimiter which should be included in csv delimiters. 
I would like to work on this, please assign this to me

Resolving patch:
diff --git a/mindsdb/libs/data_sources/file_ds.py b/mindsdb/libs/data_sources/file_ds.py
--- a/mindsdb/libs/data_sources/file_ds.py
+++ b/mindsdb/libs/data_sources/file_ds.py
@@ -124,8 +124,10 @@ def _getDataIo(self, file):
             first_few_lines = []
             i = 0
             for line in data:
-                i += 1
+                if line in ['\r\n','\n']:
+                    continue
                 first_few_lines.append(line)
+                i += 1
                 if i > 0:
                     break
 


Test patch:
Repository: mindsdb/mindsdb

Issue:
ModuleNotFoundError: No module named 'mindsdb.integrations'
Starting MindsDB with the `datastore` : `enabled`: false configuration, throws the bellow error. We are missing the __init__ file inside integrations dir, so I think it wasn't pushed to PyPi

```
Failed to export amplitude audio encoder
PostgresDS Datasource is not available by default. If you wish to use it, please install psycopg2 or mindsdb[extra_data_sources]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/__main__.py", line 11, in <module>
    from mindsdb.interfaces.native.mindsdb import MindsdbNative
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/interfaces/native/mindsdb.py", line 6, in <module>
    from mindsdb.interfaces.native.predictor_process import PredictorProcess
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/interfaces/native/predictor_process.py", line 2, in <module>
    from mindsdb.interfaces.database.database import DatabaseWrapper
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/interfaces/database/database.py", line 1, in <module>
    from mindsdb.integrations.clickhouse.clickhouse import Clickhouse
ModuleNotFoundError: No module named 'mindsdb.integrations'
```


Discussion:

Resolving patch:
diff --git a/mindsdb/__about__.py b/mindsdb/__about__.py
--- a/mindsdb/__about__.py
+++ b/mindsdb/__about__.py
@@ -1,6 +1,6 @@
 __title__ = 'MindsDB'
 __package_name__ = 'mindsdb'
-__version__ = '1.99.10'
+__version__ = '1.99.11'
 __description__ = "MindsDB server, provides server capabilities to mindsdb native python library"
 __email__ = "jorge@mindsdb.com"
 __author__ = 'MindsDB Inc'
diff --git a/mindsdb/integrations/__init__.py b/mindsdb/integrations/__init__.py
new file mode 100644
--- /dev/null
+++ b/mindsdb/integrations/__init__.py
@@ -0,0 +1 @@
+


Test patch:
Repository: mindsdb/mindsdb

Issue:
AttributeError: 'NoneType' object has no attribute 'groups'
In the latest staging branch creating a new predictor throws an error:

```
2020-07-23 13:51:00,796 - INFO - COM_QUERY: INSERT INTO `mindsdb`.`predictors` (`name`, `status`, `accuracy`, `predict`, `select_data_query`, `external_datasource`, `training_options`) VALUES ('airq_predictor','','','SO2','SELECT * FROM data.pollution_measureme ORDER BY rand() LIMIT 10000','','')
2020-07-23 13:51:00,799 - ERROR - ERROR while executing query: INSERT INTO `mindsdb`.`predictors` (`name`, `status`, `accuracy`, `predict`, `select_data_query`, `external_datasource`, `training_options`) VALUES ('airq_predictor','','','SO2','SELECT * FROM data.pollution_measureme ORDER BY rand() LIMIT 10000','','')
Traceback (most recent call last):
  File "/home/zoran/MyProjects/mindsdb/mindsdb/api/mysql/mysql_proxy/mysql_proxy.py", line 851, in handle
    self.queryAnswer(sql)
  File "/home/zoran/MyProjects/mindsdb/mindsdb/api/mysql/mysql_proxy/mysql_proxy.py", line 488, in queryAnswer
    self.insert_predictor_answer(sql)
  File "/home/zoran/MyProjects/mindsdb/mindsdb/api/mysql/mysql_proxy/mysql_proxy.py", line 309, in insert_predictor_answer
    insert = SQLQuery.parse_insert(sql)
  File "/home/zoran/MyProjects/mindsdb/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 58, in parse_insert
    values = [x.strip("( ')") for x in values.groups()]
```
The database integration is ClickHouse and insert query is:

```
INSERT INTO predictors(name, predict, select_data_query) VALUES ('airq_predictor', 'SO2', 'SELECT * FROM data.pollution_measureme ORDER BY rand() LIMIT 10000');
```
Link to [dataset](https://github.com/mindsdb/mindsdb-examples/tree/master/others/air_pollution_seoul/raw_data)


Discussion:

Resolving patch:
diff --git a/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py b/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py
--- a/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py
+++ b/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py
@@ -50,12 +50,21 @@ class SQLQuery():
 
     @staticmethod
     def parse_insert(sql):
-        search = re.search(r'(\(.*\)).*(\(.*\))', sql)
-        columns = search.groups()[0].split(',')
-        columns = [x.strip('(` )') for x in columns]
-        p = re.compile('\s*,\s*'.join(["('.*')"] * len(columns)))
-        values = re.search(p, search.groups()[1])
-        values = [x.strip("( ')") for x in values.groups()]
+        columns = sql[:sql.find(')')]
+        values = sql[len(columns):]
+
+        columns = columns[columns.find('(') + 1:]
+        values = values[values.find('(') + 1:values.rfind(')')]
+
+        p = parse(f'select ({columns})')['select']['value']
+        columns = p['literal'] if isinstance(p, dict) else p
+        if isinstance(columns, list) is False:
+            columns = [columns]
+
+        p = parse(f'select ({values})')['select']['value']
+        values = p['literal'] if isinstance(p, dict) else p
+        if isinstance(values, list) is False:
+            values = [values]
 
         return dict(zip(columns, values))
 


Test patch:
Repository: mindsdb/mindsdb

Issue:
ModuleNotFoundError: No module named 'mindsdb.integrations.mysql'
Starting latest MindsDB version `python3 -m mindsdb --api mysql --config config.json` throws bellow error:

```
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/__main__.py", line 12, in <module>
    from mindsdb.interfaces.native.mindsdb import MindsdbNative
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/interfaces/native/mindsdb.py", line 6, in <module>
    from mindsdb.interfaces.native.predictor_process import PredictorProcess
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/interfaces/native/predictor_process.py", line 2, in <module>
    from mindsdb.interfaces.database.database import DatabaseWrapper
  File "/home/zoran/MyProjects/mindsdb-examples/tescl/mdb/lib/python3.7/site-packages/mindsdb/interfaces/database/database.py", line 3, in <module>
    from mindsdb.integrations.mysql.mysql import MySQL
ModuleNotFoundError: No module named 'mindsdb.integrations.mysql'
```


Discussion:

Resolving patch:
diff --git a/mindsdb/integrations/mysql/___init__.py b/mindsdb/integrations/mysql/__init__.py
similarity index 100%
rename from mindsdb/integrations/mysql/___init__.py
rename to mindsdb/integrations/mysql/__init__.py


Test patch:
Repository: mindsdb/mindsdb

Issue:
KeyError: 'mongodb' on start
Starting Mindsdb(python -m mindsdb) version 2.8.1 throws:

```
Failed to start mongodb API with exception 'mongodb'
Traceback (most recent call last):
  File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/mindsdb/__main__.py", line 83, in <module>
    p = ctx.Process(target=start_functions[api], args=(config_path, True,))
KeyError: 'mongodb'

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/mindsdb/__main__.py", line 83, in <module>
    p = ctx.Process(target=start_functions[api], args=(config_path, True,))
KeyError: 'mongodb'
```


Discussion:

Resolving patch:
diff --git a/mindsdb/__main__.py b/mindsdb/__main__.py
--- a/mindsdb/__main__.py
+++ b/mindsdb/__main__.py
@@ -40,14 +40,20 @@ def close_api_gracefully(p_arr):
     config = Config(config_path)
 
     if args.api is None:
-        api_arr = [api for api in config['api']]
+        api_arr = ['http', 'mysql']
     else:
         api_arr = args.api.split(',')
 
+    for api in api_arr:
+        if api not in config:
+            print(f"Trying run '{api}' API, but is no config for this api.")
+            print(f"Please, fill config['api']['{api}']")
+            sys.exit(0)
+
     start_functions = {
         'http': start_http,
         'mysql': start_mysql,
-        'mongo': start_mongo
+        'mongodb': start_mongo
     }
 
     mdb = MindsdbNative(config)


Test patch:
Repository: mindsdb/mindsdb

Issue:
Error when starting 2.8.3 version on Windows
This was found through the User testing session. Versions used:
* Python 3.8.3
* Mindsdb 2.8.3
* Windows 10 
![Screenshot from 2020-09-24 16-53-27](https://user-images.githubusercontent.com/7192539/94163445-264fe900-fe88-11ea-8322-c93224c4e314.png)
For more info check the User Test video.



Discussion:

Resolving patch:
diff --git a/mindsdb/api/http/initialize.py b/mindsdb/api/http/initialize.py
--- a/mindsdb/api/http/initialize.py
+++ b/mindsdb/api/http/initialize.py
@@ -145,7 +145,10 @@ def initialize_flask(config):
 
     port = config['api']['http']['port']
     host = config['api']['http']['host']
-    cors_origin_list = [f'http://{host}:{port}']
+    hosts = ['0.0.0.0', 'localhost', '127.0.0.1']
+    if host not in hosts:
+        hosts.append(host)
+    cors_origin_list = [f'http://{h}:{port}' for h in hosts]
 
     if 'MINDSDB_CORS_PORT' in os.environ:
         ports = os.environ['MINDSDB_CORS_PORT'].strip('[]').split(',')
diff --git a/mindsdb/utilities/fs.py b/mindsdb/utilities/fs.py
--- a/mindsdb/utilities/fs.py
+++ b/mindsdb/utilities/fs.py
@@ -133,8 +133,11 @@ def update_versions_file(config, versions):
     versions_file_path = os.path.join(config.paths['root'], 'versions.json')
     old_versions = {}
     if Path(versions_file_path).is_file():
-        with open(versions_file_path, 'rt') as f:
-            old_versions = json.loads(f.read())
+        try:
+            with open(versions_file_path, 'rt') as f:
+                old_versions = json.loads(f.read())
+        except Exception:
+            pass
 
     # do here anything for update
     if len(old_versions) == 0:
diff --git a/mindsdb/utilities/wizards.py b/mindsdb/utilities/wizards.py
--- a/mindsdb/utilities/wizards.py
+++ b/mindsdb/utilities/wizards.py
@@ -128,7 +128,7 @@ def cli_config(python_path, pip_path, storage_dir, config_dir, use_default=False
     http = _in('Enable HTTP API ? [Y/N]','Y',use_default)
     if http in ['Y','y']:
         config['api']['http'] = {}
-        config['api']['http']['host'] = _in('HTTP interface host: ','0.0.0.0',use_default)
+        config['api']['http']['host'] = _in('HTTP interface host: ', '127.0.0.1', use_default)
         config['api']['http']['port'] = _in('HTTP interface port: ','47334',use_default)
 
     mysql = _in('Enable MYSQL API ? [Y/N]','Y',use_default)


Test patch:
Repository: mindsdb/mindsdb

Issue:
Check if the python version is at least 3.6 on server start.
On Server start check if Python version is < 3.8

if lower version, print message:

```
MindsDB server requires Python >= 3.8 to run

Once you have Python 3.8 installed you can tun mindsdb as follows:

1. create and activate venv:
    python3.8 -m venv venv
    source venv/bin/activate
2. install MindsDB:
    pip3 install mindsdb
3. Run MindsDB
    python3.8 -m mindsdb

More instructions in https://docs.mindsdb.com

```

and exit


Discussion:
@torrmal  We support 3.7.x versions. So we can say versions great than 3.7.x

Resolving patch:
diff --git a/mindsdb/__main__.py b/mindsdb/__main__.py
--- a/mindsdb/__main__.py
+++ b/mindsdb/__main__.py
@@ -28,6 +28,28 @@ def close_api_gracefully(p_arr):
 
 
 if __name__ == '__main__':
+    version_error_msg = """
+MindsDB server requires Python >= 3.6 to run
+
+Once you have Python 3.6 installed you can tun mindsdb as follows:
+
+1. create and activate venv:
+python3.6 -m venv venv
+source venv/bin/activate
+
+2. install MindsDB:
+pip3 install mindsdb
+
+3. Run MindsDB
+python3.6 -m mindsdb
+
+More instructions in https://docs.mindsdb.com
+    """
+
+    if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 6):
+        print(version_error_msg)
+        exit(1)
+
     mp.freeze_support()
 
     args = args_parse()


Test patch:
Repository: mindsdb/mindsdb

Issue:
Add endpoint for mindsdb version
Add HTTP route to get a version of mindsdb: /util/version/
That should return as mindsb version in JSON view:
```
{
  "mindsdb": "2.11.2"
}
```
The new endpoint needs to be added in [Utils](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/api/http/namespaces/util.py).


Discussion:
Hi can I take this up? 
@ZoranPandovski Is this correct `@ns_conf.route('/endpoint')` or should it be `@ns_conf.route('/util/version')` ?

Resolving patch:
diff --git a/mindsdb/api/http/namespaces/util.py b/mindsdb/api/http/namespaces/util.py
--- a/mindsdb/api/http/namespaces/util.py
+++ b/mindsdb/api/http/namespaces/util.py
@@ -2,7 +2,7 @@
 from flask_restx import Resource, abort
 
 from mindsdb.api.http.namespaces.configs.util import ns_conf
-
+from mindsdb import __about__
 
 @ns_conf.route('/ping')
 class Ping(Resource):
@@ -24,3 +24,12 @@ def get(self):
             func()
             return '', 200
         abort(403, "")
+
+                
+@ns_conf.route('/util/version')
+class Version(Resource):
+    @ns_conf.doc('get_endpoint')
+    def get(self):
+        '''Check endpoint'''
+        return {'mindsdb': "{__about__.__version__}"}
+    


Test patch:
Repository: mindsdb/mindsdb

Issue:
Add update argument to executable function
Add optional boolean argument update to  [make_executable](https://github.com/mindsdb/mindsdb/blob/staging/mindsdb/utilities/wizards.py#L230)()  function, so if it's set to true then the executable should run 
```
py -m pip install mindsdb --upgrade 
```
before 
```
py -m mindsdb
```



Discussion:

Resolving patch:
diff --git a/mindsdb/utilities/wizards.py b/mindsdb/utilities/wizards.py
--- a/mindsdb/utilities/wizards.py
+++ b/mindsdb/utilities/wizards.py
@@ -227,8 +227,14 @@ def daemon_creator(python_path, config_path=None):
     return daemon_path
 
 
-def make_executable(python_path, exec_path, config_path=None):
+def make_executable(python_path, exec_path, config_path=None, update=False):
     text = f"""#!/bin/bash
+update={str(update).lower()}
+
+if [ "$update" = true ] 
+    then
+    {python_path} -m pip install mindsdb --upgrade 
+fi
 {python_path} -m mindsdb { "--config="+config_path  if config_path else ""}
 """
 


Test patch: