mindsdb icon indicating copy to clipboard operation
mindsdb copied to clipboard

Split one requirements file to base and extras

Open ilia-tsyplenkov opened this issue 1 year ago • 1 comments

Description

Fix dependency issues. Make installation process more stable How to test it locally: assume you local copy of mindsdb repository located in your home dir IMPORTANT: we officially support python 3.8 and 3.9 only

  • checkout to PR's branch: cd ~/mindsdb && git checkout it_extras_packages
  • create new virtual env: cd ~ && python3 -m venv extras_env
  • activate created virtual env: source extras_env/bin/activate`
  • cd ~/mindsdb
  • install base requirements: pip install .
  • run mindsdb: python -m mindsdb
  • walk through next tutorials in learning hub: Predict Home Rental Prices, Forecast Quaterly House Sales, Predicting Text Sentiment with Hugging Face all of them must work from the box
  • try to walk through Forecasting Monthly Expenditures with StatsForecast tutorial:
    • You should see next error on creating model step: to use statsforecast please install 'pip install mindsdb[statsforecast]'
    • Stop the application
    • install statsforecast handler: pip install ".[statsforecast]"
    • Launch the application again
    • Finish the tutorial

pip install mindsdb - base installation pip install mindsdb[grpc] - base installation + grpc pip install mindsdb[telemetry] - base installation + telemetry pip install mindsdb[all_extras] - installation with all requirements from requirements dir pip install mindsdb[HANDLER_NAME] - install specific handler in addition pip install mindsdb[confluence] for instance pip install mindsdb[all_handlers_extras] - install all handlers

Type of change

(Please delete options that are not relevant)

  • [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
  • [x] ⚡ New feature (non-breaking change which adds functionality)
  • [ ] 📢 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] 📄 This change requires a documentation update

What is the solution?

(Describe at a high level how the feature was implemented)

Checklist:

  • [x] My code follows the style guidelines(PEP 8) of MindsDB.
  • [ ] I have commented my code, particularly in hard-to-understand areas.
  • [ ] I have updated the documentation, or created issues to update them.
  • [ ] I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • [ ] I have shared a short loom video or screenshots demonstrating any new functionality.

ilia-tsyplenkov avatar May 23 '23 15:05 ilia-tsyplenkov

Works for me on Windows!

pip install -r requirements/requirements.txt pip install -r requirements/requirements-grpc.txt pip install -r requirements/requirements-telemetry.txt

Had to also pip install python-magic-bin for libmagic dependency.

tmichaeldb avatar Jun 01 '23 20:06 tmichaeldb