Solved_errors Index Page 1

Gitlab-CI Runner: sudo: no tty present and no askpass program specified

When you execute sudo on a gitlab-ci job you can get the folllowing error: "sudo: no tty present and no askpass program specified", the solution is to add gitlab-runner user in the sudoers file with NOPASSWD. Check this article for more information.

Python 3: ValueError: bad marshal data (unknown type code)

If you try to execute python project using python 2 and then switched to python 3, it's common to see the error ValueError: bad marshal data (unknown type code). Delete pycs recursively, check here for the command.

Raspberry pi and Python 3.7 : zipimport.ZipImportError: can't decompress data; zlib not available

Install the package zlib1g-dev using the command: sudo apt-get install zlib1g-dev to fix the error zipimport.ZipImportError: while installing python 3.7 from sources

Hugo How to ignore watch files on the server

You can use watchIgnoreFiles = [ "\\.foo$", "\\.boo$" ] to ignore watch files when using hugo. Add the ignore list to the config.toml.

Docker: how to delete all containers or images

Check here how to remove all containes with one line command :docker rm $(docker ps -aq). This is useful when you use docker in dev environments and you forgot to delete non-used containers.

Apt-get install prompts for restart services when installing packages (SOLVED)

When you update with "apt-get upgrade" or install packages that require libssl1.0.0 you will be prompted if you wan to restart services without asking. Since the prompt is interactive this will break some automatic deploys or continous integration. You can set the environment variable DEBIAN_FRONTEND=noninteractive to disable any prompt.

SOLUTION: ValueError: bad marshal data (unknown type code)

If while doing a python setup.py install you got the error "ValueError: bad marshal data (unknown type code)", delete all the pycs files. Check our solution to bad marshal data here.

error: Not a recognized archive type: Twisted tar.bz2

The error "error: Not a recognized archive type: Twisted tar.bz2" means that your python is missing the bz2 module. Here we explain why this error happens and how to solve it.

Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib (LoadError)

If you got the error libreadline.7.dylib (LoadError), try to create a symbolic link: ln -s /usr/local/opt/readline/lib/libreadline.8.0.dylib /usr/local/opt/readline/lib/libreadline.7.dylib. Check here for more information.

Library not loaded: libgfortran.3.dylib

If you got the error: "Library not loaded: /usr/local/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib" try to do a force-reintall using pip for numpy and scipy: pip install --upgrade --force-reinstall numpy and pip install --upgrade --force-reinstall scipy.