Remove warnings when import dataiku using Python 3.9

Options
Marlan
Marlan Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Dataiku Frontrunner Awards 2021 Participant, Neuron 2023 Posts: 317 Neuron
edited July 16 in Setup & Configuration

Hi all,

I am just starting to use Python 3.9 and I am getting the following warnings when I import the dataiku package:

distutils Version classes are deprecated. Use packaging.version instead.
invalid escape sequence \*
invalid escape sequence \*
invalid escape sequence \s
invalid escape sequence \:
invalid escape sequence \:

Any suggestions on how to remove these warnings?

I know that warnings.filterwarnings() will suppress the display of the distutils warning (but not the others).

I'm interested in determining whether I can configure the code environment or something like that so no warnings are generated.

I get that these warnings are not a problem in terms of functionality. They will however create questions and diminish confidence when we roll this out to our user base. That's why I'd like to try to stop these from occurring.

Thanks,

Marlan


Operating system used: RHEL

Answers

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 1,728 Neuron
    Options

    I have raised it with Dataiku Support. Dataiku are aware of it and are looking to fix it at some point. There appears to be no way of supressing the warnings so I am afraid this one is one that users will have to live with for the time being.

  • Marlan
    Marlan Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Dataiku Frontrunner Awards 2021 Participant, Neuron 2023 Posts: 317 Neuron
    Options

    Thanks for sharing what you've learning @Turribeach
    . Bummer! Guess we'll just have to live with it for now.

    Thanks!

    Marlan

Setup Info
    Tags
      Help me…