Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
After I upgraded DSS to V11, I want to try new function of Object detection.
I encountered a error when I created a code environment as follow:
Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/__main__.py", line 168, in <module> File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/__main__.py", line 162, in run File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/virtualenv/__init__.py", line 3, in <module> File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/virtualenv/run/__init__.py", line 14, in <module> File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/virtualenv/run/plugin/creators.py", line 6, in <module> File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/virtualenv/create/via_global_ref/builtin/builtin_way.py", line 7, in <module> File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/virtualenv/create/creator.py", line 15, in <module> File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/virtualenv/discovery/cached_py_info.py", line 16, in <module> File "/opt/dataiku-dss-11.0.1/scripts/virtualenv.pyz/virtualenv/discovery/py_info.py", line 16, in <module>ImportError: cannot import name 'dist' from 'distutils' (/usr/lib/python3.7/distutils/__init__.py)
What did you use to install Dataiku v11? Did you run the upgrade script after installing Dataiku v11?
Sorry for the late response, I am still waiting for the answer from our system admin.
I will get back to you as soon as I get the answer.
We upgrade system to V11.0.1 from v10.0.5
Just follow the instruction on https://doc.dataiku.com/dss/latest/installation/custom/upgrade.html
dataiku-dss-NEWVERSION/installer.sh -d DATA_DIR -u
DATA_DIR/bin/dssadmin install-R-integration
DATA_DIR/bin/dss start
Hi, how did you create the code environment - did you follow the instructions here? https://doc.dataiku.com/dss/latest/machine-learning/computer-vision/first-model.html#install-the-req...
Thanks,
Greg
Actually, I found that this error occurred even when I was simply creating a new code environment in the Administration --> Code Env.s page.
Hi all,
I tried the things as following:
1. reinstall Python3.6 to Python3.9
2. reinstall python3.6-distutils to python3.9-distutils
3. copy all files in the folder of python3.9-distutils to the folder of python3.6-distutils.
4. restart Dataiku service.
Now I can successfully create the code env of python3.8 and python3.9, but still cannot create code env of python3.6 and python3.7. The error I encountered is as attached image:
Any suggestion?
On what OS is Dataiku installed?
Ubuntu 20.04.4
Hi, indeed this does not seem to be related to the Object Detection feature, but rather an issue with your underlying Python installation/configuration, so I would recommend opening a support track to help diagnose that further.
Thanks,
Greg
I am also getting the same error.
Sorry to hear that you are encountering the same problem.
Actually I did a lot to fix that, therefore I don't know exactly which action or actions were really work.
But the last two steps I did to fix it were as follows for your reference.
1. cleaning up the virtualenv cache dir in the DSS host by executing
rm -rf /home/dataiku/.local/share/virtualenv/*
@ishtiyaq We have previously seen such an error on the DSS installations on WSL.
Are you running Ubuntu on WSL?
No, I am using ubuntu on an Amazon EC2 instance.
Ok, thanks for confirmation.
In that case, we are left with two points that cause this: