print('Versions:') print(f' - lightwood {lightwood_version}') print(f' - MindsDB_native {mindsdb_native_version}') print(f' - MindsDB {mindsdb_version}') os.environ['MINDSDB_STORAGE_PATH'] = config.paths['predictors'] if args.verbose is True: config['log']['level']['console'] = 'DEBUG' os.environ['DEFAULT_LOG_LEVEL'] = config['log']['level']['console'] os.environ['LIGHTWOOD_LOG_LEVEL'] = config['log']['level']['console'] update_versions_file( config, { 'lightwood': lightwood_version, 'mindsdb_native': mindsdb_native_version, 'mindsdb': mindsdb_version, 'python': sys.version.replace('\n', '') }) if args.api is None: api_arr = ['http', 'mysql'] else: api_arr = args.api.split(',') apis = { api: { 'port': config['api'][api]['port'], 'process': None, 'started': False }
paths = mindsdb_config.paths for path in paths.values(): create_directory(path) os.environ['MINDSDB_STORAGE_PATH'] = paths['predictors'] from mindsdb_native import * # Figure out how to add this as a module import lightwood #import dataskillet import mindsdb.utilities.wizards as wizards from mindsdb.interfaces.custom.model_interface import ModelInterface from lightwood.__about__ import __version__ as lightwood_version from mindsdb.__about__ import __version__ as mindsdb_version from mindsdb_native.__about__ import __version__ as mindsdb_native_version print('versions:') print(f' - lightwood {lightwood_version}') print(f' - MindsDB_native {mindsdb_native_version}') print(f' - MindsDB {mindsdb_version}') update_versions_file( mindsdb_config, { 'lightwood': lightwood_version, 'mindsdb_native': mindsdb_native_version, 'mindsdb': mindsdb_version } )