title: Pyinstaller fails on skimage standard demo script
body: <p>I am trying to create an executable from a standard skimage demo script listed <a href="http://scikit-image.org/docs/stable/auto_examples/filters/plot_rank_mean.html#sphx-glr-auto-examples-filters-plot-rank-mean-py" rel="nofollow noreferrer">here</a>:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  from skimage import data
  from skimage.morphology import disk
  from skimage.filters import rank
  
  
  image = data.coins()
  selem = disk(20)
  
  percentile_result = rank.mean_percentile(image, selem=selem, p0=.1, p1=.9)
  bilateral_result = rank.mean_bilateral(image, selem=selem, s0=500, s1=500)
  normal_result = rank.mean(image, selem=selem)
  
  fig, axes = plt.subplots(nrows=2, ncols=2, figsize=(10, 10),
                           sharex=True, sharey=True)
  ax = axes.ravel()
  
  titles = ['Original', 'Percentile mean', 'Bilateral mean', 'Local mean']
  imgs = [image, percentile_result, bilateral_result, normal_result]
  for n in range(0, len(imgs)):
      ax[n].imshow(imgs[n], cmap=plt.cm.gray)
      ax[n].set_title(titles[n])
      ax[n].set_adjustable('box-forced')
      ax[n].axis('off')
  
  plt.tight_layout()
  plt.show()
  </code></pre>
  
  <p>The command would be <code>pyinstaller -F test.py</code></p>
  
  <p>The first problem, reaching the recursion depth limit, can be solved by increasing the recursion depth limit as described <a href="https://stackoverflow.com/a/43393583/4352930">here</a>.</p>
  
  <p>After doing so, I get a valid *.exe file, but the warning file contains 80 kb of missing modules, and aborts on execution with "No module named _cwt". </p>
  
  <p>Including _cwt in hiddenimports as described <a href="https://stackoverflow.com/a/41862192/4352930">here</a> does not work.</p>
  
  <p>Any ideas what to try next?</p>
  
  <p><strong>[Edit]</strong></p>
  
  <ul>
  <li>I have tried both Win7 and Win 10 environments, am working with python 2.7 and pyinstaller 3.3</li>
  <li><p>some warning messages from warnBVLibrary.txt </p>
  
  <p>missing module named fcntl - imported by tempfile, subprocess, tornado.platform.posix, paramiko.agent, zmq.eventloop.minitornado.platform.posix, backports.shutil_get_terminal_size.get_terminal_size, IPython.utils._get_terminal_size, prompt_toolkit.terminal.vt100_output, prompt_toolkit.eventloop.posix, gevent.os, gevent.fileobject, gevent.subprocess, py._io.terminalwriter
  missing module named org - imported by copy
  missing module named startup - imported by pyreadline.keysyms.common, pyreadline.keysyms.keysyms
  missing module named System - imported by pyreadline.console.ironpython_console, pyreadline.keysyms.ironpython_keysyms, pyreadline.rlmain, traitlets.traitlets, IPython.utils._process_cli
  missing module named pwd - imported by posixpath, getpass, pathlib, shutil, tarfile, distutils.util, pathlib2, netrc, webbrowser, distutils.archive_util, py._path.local
  missing module named _scproxy - imported by urllib, future.backports.urllib.request
  missing module named EasyDialogs - imported by getpass
  missing module named termios - imported by getpass, tty, backports.shutil_get_terminal_size.get_terminal_size, IPython.utils._get_terminal_size, prompt_toolkit.terminal.vt100_output, prompt_toolkit.terminal.vt100_input, IPython.core.page, py._io.terminalwriter
  missing module named SOCKS - imported by ftplib
  missing module named rourl2path - imported by urllib
  missing module named IronPythonConsole - imported by pyreadline.console.ironpython_console
  missing module named clr - imported by pyreadline.console.ironpython_console, pyreadline.clipboard.ironpython_clipboard, nose.suite, IPython.utils._process_cli
  missing module named 'System.Windows' - imported by pyreadline.clipboard.ironpython_clipboard
  missing module named vms_lib - imported by platform
  missing module named 'org.python' - imported by pickle, xml.sax, setuptools.sandbox
  missing module named 'java.lang' - imported by platform, xml.sax._exceptions
  missing module named java - imported by platform, mock
  missing module named _xmlplus - imported by xml
  missing module named 'Carbon.File' - imported by plistlib
  missing module named 'Carbon.Files' - imported by plistlib
  missing module named Carbon - imported by plistlib
  missing module named MacOS - imported by platform
  missing module named macresource - imported by MacOS
  missing module named gestalt - imported by platform</p></li>
  </ul>