Python Package Import Error

jcforaker
jcforaker Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 2

I am unable to import from my Python module even though I have properly defined the module in the Dataiku Python Library. I even added a __init__.py to the folder to make sure Dataiku "saw" it as a module folder. It didn't work for me with standard user permissions, and it doesn't work for me even after being elevated to an admin. Images of the Dataiku Library and the Notebook where I attempt to do the import are attached to this thread. Any suggestions for how to fix this would be appreciated.

Answers

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,024 Neuron

    For project libraries to be available in Notebooks you have to restart the notebook kernel after adding the library. Have you done so?

  • jcforaker
    jcforaker Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 2

    Thanks for the suggestion. I did restart the kernel after adding the library, but was still unable to import from it. It's odd because I CAN import from SOME libraries, just not ALL of the ones in my library on Dataiku.

Setup Info
    Tags
      Help me…