Sign up to take part
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)
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
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...
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:
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.
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/*
Ok, thanks for confirmation.
In that case, we are left with two points that cause this: