Flake8 – how to ignore warning

Some warnings are really annoyed. So to ignore them, just create a file ‘~/.config/flake8‘ with settings, for example:

ignore = D101,D102,D105
max-line-length = 100
max-complexity = 10

That’s it!

VMware Fusion fails – File Not Found

When you launch VMware Fusion, it fails with this error:

vmware Fusion fails

This issue occurs if:

  • The virtual machine files are deleted manually from the Finder utility in Mac OS X and not from the VMware Fusion UI.
  • Migration assistant was used to transfer files from old Mac to a New Mac under different username.
  • Folder containing the Virtual Machine files is either renamed or removed.

VMware Fusion displays a File Not Found error message, as it is unable to find the virtual machine registered in the Virtual Machine Library.

To resolve the issue, remove the missing virtual machine entry from the Virtual Machine Library.

To remove the missing virtual machine entry from the Virtual Machine Library:

  1. Click OK to dismiss the File Not Found error.
  2. Click the Window menu.
  3. Select Virtual Machine Library.
  4. Right-click the the missing virtual machine entry and click Delete

Avoid Python creating .pyc files

Edit the ‘site-packages/usercustomize.py‘ and add this code:

import sys
sys.dont_write_bytecode = True

to make this apply to all your scripts.

For me this directory was


but I had to create ‘usercustomize.py‘ because it didn’t exist.

Scrolling inside Vim in OS X Terminal

I use Vim most of my time for coding. I like to have mouse support (scrolling and clicking) inside Vim in OS X Terminal, just like when I use it inside other applications.

To enable these features, you need MouseTerm. Just make sure to install SIMBL first!

If you get the error when launching an installer “{installer-name} is damaged and can’t be opened. You should eject the disk image.” like below.

MouseTerm Install Error

You can workaround this issue by temporarily changing the System Preferences as follows:

  1. Choose System Preferences from the Apple Menu
  2. Click Security & Privacy
  3. Click the Lock (lower left) and enter your admin password to unlock it
  4. In the General tab, set Allow applications downloaded from to Anywhere

    Allow apps

Now try the installer again.

After the installation you can set it back to Mac App Store and Identified Developers.

To enable the mouse for all modes add the following to your ~/.vimrc file:

if has("mouse")
    set mouse=a

That’s it!