container configuration for streamlit app

Options
ysaeed4
ysaeed4 Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 5

Dear Experts,

I am having difficulties in starting Streamlit app. In the container configuration, as shown in the attached image, when I select None, it gives error "Unable to start run : No container config to run Code Studio on".

However when I select container ai_exec gpu, it always say Pod is still missing.

I do not want to run the app using gpu, it can be run with cpus but I am unable to select that option.

Kind regards,

Yawar

Best Answers

  • ysaeed4
    ysaeed4 Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 5
    Answer ✓
    Options

    Hi @JordanB
    ,

    Thanks for your help. I have managed to start the streamlit app. I have another question with regards to creating virtual environment because after connecting to my GitHub repository with streamlit app code and requirements.txt, I create virtual environment and sync files with DSS but it always says " ModuleNotFoundError: No module named 'tensorflow'". It seems like it does not install the modules at the correct path as required.

    Kind regards,

    Yawar

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 293 Dataiker
    Answer ✓
    Options

    Hi @ysaeed4
    ,

    You will need to add a code environment block to your code studio template and rebuild the template (ref: https://knowledge.dataiku.com/latest/code/work-environment/tutorial-first-code-studio.html#configure-definition-settings).

    Unfortunately, it will not work to create a virtual environment directly from your code i.e. virtualenv/venv.

    Let me know if you have questions!

Answers

Setup Info
    Tags
      Help me…