}

Solved errors

Direct solutions to common programming errors and system issues.

Page 7 of 17

4 min readIntermediate

PIP: Connection Reset by Peer Error Fix

If you are using the MEO gateway and you get the error "PIP: 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))", we found that the solution is to disable ipv6 temporary with the command: sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6'

1 min read

Nginx static files return 403 even with correct permission

If you have the correct owner and permission on your statis directory and you still get an error 403 with nginx, check if selinux is not allowing nginx to server the files. use the command chcon -Rt httpd_sys_content_t /var/www... to allow http to be served from that directory. Check this solution for full details

1 min read

gohugo: How to exclude content from sitemap.xml

When you use hugo there is no built in way to exclude pages from the sitemap. In this short solution we explain how to exclude 404 page from the sitemap when using gohugo. Our solution is to use a custom sitemap template, check here for a gohugo example sitemap template.

1 min readIntermediate

Install pip Dependency from GitHub in setup.py

Steps to install a python dependency from git in the setup.py using dependency_links. Make sure the user is using this format: git+https://github.com/user/repo.git#egg=project_name . Check here for more details.

2 min readBeginner

Pillow: --enable-jpeg Requested but Not Found

Check here how to solve the error "ValueError: --enable-jpeg requested but jpeg not found, aborting." while installing Pillow with Python3

1 min readBeginner

Android: Disable 2G/3G or Change Network Type

On the phone dialer type in *#*#4636#*#* and you will be able to change settings. See our article for more details.

1 min readIntermediate

Pip: No Matching Distribution for Twisted/Pillow

When you try to install Twisted you could get the error: "No matching distribution found for Twisted". One couse could be that you python is missing some extension, like bz2. You will need to change your pytohn interpreter or recompile it.

4 min readIntermediate

Python Cryptography: No module setuptools_ext

When you install cryptography with the command `pip install cryptography --upgrade`, the following error is raised: ImportError: No module named setuptools_ext. Try to upgrade cffi with: pip install -U cffi. Check here for all steps to solve this issue.

1 min readIntermediate

Scrapy: libxml/xmlversion.h Not Found

If you have the error Python cryptography: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 while installing python cryptography, try the following SOLUTION: sudo apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip. Check here for full details

1 min read

UniFi VoIP: No Sound on Phone Call

If you have problems with no sound with UniFI VoIP. Make sure you have the option PBX delivers audio enabled. Check here for full solution.