Solved_errors Index Page 3

Error while installing bettercap: pcap.h: No such file or directory

When you do: go get github.com/bettercap/bettercap and get the error: fatal error: pcap.h: No such file or directory try to execute ->

pymssql error: src/_mssql.c:568:22: fatal error: sqlfront.h: No such file or directory

When you install pymssql and you get the error: src/_mssql.c:568:22: fatal error: sqlfront.h: No such file or directory. try to install freetds-dev with apt (sudo apt install freetds-dev)

Python: pip is broken. _internal module cannot be imported

The error is common after you execute "pip install pip -U" and you will see the error "ImportError: No module named _internal" everytime you execute "pip". One solution is to change the import on the pip file: **from pip import main**, change that line with **from pip._internal import main**. Check here for alternative solutions to this error.

python pip: AttributeError: 'module' object has no attribute 'main'

If you are using pip and get the following import error: AttributeError: 'module' object has no attribute 'main' you can import main from pip._internal. Check here for the complete solution

SiaCoin Wallet error: Spawn EACCES error

If when you start wallet GUI you get the error "spawn EACCES" try to execute: sudo chmod -R a+rwx FOLDER

Fix Wine installation on Ubuntu Linux 64bit: E: Unable to correct problems, you have held broken packages.

If you get "E: Unable to correct problems, you have held broken packages." error while you install wine via apt, you need to enable i386 architecture. See here how to install wine in a few steps...

gpg: signing failed: Inappropriate ioctl for device

If you got the error "Inappropriate ioctl for device", try to execute export GPG_TTY=$(tty). See here for more details on the solution

Angular: ng serve --open return the error "SyntaxError: Use of const in strict mode."

If when running ng serve --open you got the error SyntaxError: Use of const in strict mode. Make sure you are using node 6.9.0 at least.

How to show seconds/minutes or years ago using javascript

Sometimes you want to show the user dates in a better way like " a few seconds ago", " two minutes ago", etc. In this brief solution we explain how to use momemnt.js to convert a date or string to this format.

Solved! Fiona 1.7.1 missing GeoPackage & FileGDB

If you are missing GeoPackages or ESRI FileGDB as suuported drivers, execute: pip install -I fiona --no-binary fiona. This will compile the source of Fiona and link to your installed libraries. Check here for full description of the problem.