dlt
dlt copied to clipboard
install `streamlit` dependency on `dlt pipeline show`
Background
Make it easy for the user to use dlt .. show
command by optionally adding required dependencies
Tasks
-
- [ ] make another extra so you can install
streamlit
withpython-dlt[streamlit]
- [ ] make another extra so you can install
-
- [ ] when running a dlt command, handle
MissingImportException
and optionally (ask) install the dependencies. Then rerun the command.
- [ ] when running a dlt command, handle
-
- [ ] do not offer installation if
dlt
is run outside of virtual env. display a warning instead
- [ ] do not offer installation if

I'm stuck in a loop right now, where it keeps telling me to pip install pandas
, even after I have done that
@TyDunn is it hard for you to switch to python 3.10 and see if this still happens? I can get back to this task end of this week
Have the same problem with 3.10.10:
Also tried 3.9 and had the same problem too
where the problem is coming from:
-
dlt
waspip installed
into the main/global python environment - then a virtual environment was created and activated
- now the
dlt
command is run but still from the global environment. it does not see pandas/streamlit so it complains - the user uses
pip install
but in the activated virtual environment so pandas is installed into it - the
dlt
ran again in global environment still does not see it so it complains and we are in a loop
How to solve it:
- uninstall dlt from global environment, activate virtual environment and install dlt into it
How to fix library:
- warn the user when
dlt
runs from global environment