ImportError on DeepLabCut 2.1

Hi there,

I have just tried to import DeepLabCut 2.1 on Ubuntu and I am getting the following error

In [2]: import deeplabcut                                                                                          
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-cfa4f159dfc5> in <module>
----> 1 import deeplabcut

~/anaconda3/envs/dlc2/lib/python3.6/site-packages/deeplabcut/__init__.py in <module>
     32     from deeplabcut.generate_training_dataset import multiple_individual_labeling_toolbox
     33     from deeplabcut.generate_training_dataset import adddatasetstovideolistandviceversa,  dropduplicatesinannotatinfiles
---> 34     from deeplabcut.gui.launch_script import launch_dlc
     35 
     36     from deeplabcut.refine_training_dataset import refine_labels

~/anaconda3/envs/dlc2/lib/python3.6/site-packages/deeplabcut/gui/__init__.py in <module>
     20 from deeplabcut.gui.refine_labels import *
     21 from deeplabcut.gui.train_network import *
---> 22 from deeplabcut.gui.welcome import *
     23 from deeplabcut.gui.media import *

~/anaconda3/envs/dlc2/lib/python3.6/site-packages/deeplabcut/gui/welcome.py in <module>
     11 
     12 import wx
---> 13 import wx.adv
     14 import os
     15 import deeplabcut

~/anaconda3/envs/dlc2/lib/python3.6/site-packages/wx/adv.py in <module>
     11 """
     12 
---> 13 from ._adv import *
     14 
     15 import wx

ImportError: libSDL-1.2.so.0: cannot open shared object file: No such file or directory

Any suggestions?

Many thanks,
Dimitris

This error solved by installing the following

sudo apt-get install libsdl1.2debian

Thanks,
D

2 Likes

Hi Dimitris,
I have had a similar problem in Ubuntu. But I got this error:
ImportError: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

sudo apt-get install libpython3.6
in the terminal did not work:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libpython3.6
E: Couldn’t find any package by glob ‘libpython3.6’
E: Couldn’t find any package by regex ‘libpython3.6’

Any idea what could be wrong?
Thanks
Ravi