-
Notifications
You must be signed in to change notification settings - Fork 16
Troubleshooting
One possible error one might encounter when trying to run SMILER in WSL is an issue with the line endings of the files when trying to run Windows files in Linux.
If you encounter the following error when trying to run SMILER you likely have a line ending issue:
/usr/bin/env: ‘python\r’: No such file or directory
To fix this, sudo install dos2unix using
sudo apt install dos2unix
Then run the following command to convert your file endings to Linux endings
dos2unix **
When running SMILER from the CLI, it seems that it is picky about what type of quotation marks you use. So if your computer defaults to using “”, make sure to use "" to wrap your model names instead.
MATLAB Engine API for Python can only be installed for specific versions of Python, thus, if your default Python path is not compatible with the Engine API you must install the Engine for a different Python version. To do this, follow the general installation instructions but with a slight modification to your python setup.py install line. The modification is as follows
sudo 'desired Python version path' setup.py install
Build the DGII dockerfile with a command similar to the following
docker build -f dockerfiles/Dockerfile.DGII -t tsotsoslab/smiler_dgii:1.3.0 ./
If you receive the error ending with
#5 12.25 You should consider upgrading via the 'pip install --upgrade pip' command.
add the following line to Dockerfile.DGII before the line RUN pip3 install opencv-python
RUN pip install --upgrade pip