Solved_errors Index Page 6
[SOLVED] Could not find main GSSAPI shared library
If you have the error " Exception: Could not find main GSSAPI shared library. Please try setting GSSAPI_MAIN_LIB yourself or setting ENABLE_SUPPORT_DETECTION to 'false'", you can fix it by installing sudo apt-get install python-pip libkrb5-dev. check here for more details on the solution.
Webpack: CommonsChunkPlugin Removed Error
If you upgrade to webpack 4 and got the error "Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead.", try to add the new config section called optimization since on webpack 4 CommonsChunkPlugin was removed and it was replaced by optimization.splitChunks.
Flask-Security: NoneType has no attribute send
Check here the solution of the flask-security error AttributeError: 'NoneType' object has no attribute 'send'. You need to configure flask-mail.
python3 create new empty file
With python3 the best way to touch a file is by using the Path class from pathlib. Once you have an instance of Path (from pathlib import Path) you can use the touch method(): Path('empty_file').touch()
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'
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
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.
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.
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
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.