Solved errors

Direct solutions to common programming errors and system issues.

Page 4 of 17

1 min readBeginner

Pygame blank screen with python3 and osx

Here is the solution when using pygame with OSX and you get a blank screen or not loading. You will need to uninstall and then install pygame from source code. In this article, we explain step by step how to fix pygame not loading in mac.

1 min readBeginner

OSX Solution: No package 'gobject-introspection-1.0' found

The error: PKG_CONFIG_PATH environment variable No package 'glib-2.0' found, could be easy solved when using brew by settings the PKG_CONFIG_PATH to the following value: export...

1 min readBeginner

OSX: No package glib-2.0 Found - PKG_CONFIG Fix

The error: PKG_CONFIG_PATH environment variable No package 'glib-2.0' found, could be easy solved when using brew by settings the PKG_CONFIG_PATH to the following value: export...

4 min readBeginner

Fix: AttributeError - Token Has No Attribute 'objects' [Django REST Framework]

Fix "AttributeError: type object 'Token' has no attribute 'objects'" in Django REST Framework. Add rest_framework.authtoken to INSTALLED_APPS.

2 min readBeginner

Django: TEST_DATABASE_PREFIX TypeError Fix

In this article we explain how to fix the error

1 min readBeginner

tar: Directory Renamed Before Extraction Error

If you get th error Directory renamed before its status could be extracted when using tar, execute: apt install -y bsdtar && ln -sf $(which bsdtar) $(which tar)

1 min readBeginner

OSX Catalina: ld: library not found for -lssl SOLUTION

When you compile something that requires ssl you need to set the export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/, check here for more details

1 min readBeginner

GitLab CI Runner: sudo no tty present Error

When you execute sudo on a gitlab-ci job you can get the folllowing error:

2 min readBeginner

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.

1 min readBeginner

Raspberry Pi Python: ZipImportError zlib Fix

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