## Description of the issue
When packing `matplotlib`, I first get a message th…at says `TypeError: expected str, bytes or os.PathLike object, not WindowsPath` and then at the end of the build, `PermissionError: [WinError 5] Access is denied: 'C:\\Users\\fletcher.chapin\\Documents\\Git\\microscope_automation\\dist\\microscope_automation\\matplotlib\\mpl-data\\.git\\objects\\00\\10476755445d1f74bcf25d23a9dfbfbca5559a'`
## Context information (for bug reports)
* Output of `pyinstaller --version`: `4.2`
* Version of Python: `3.8.5`
* Platform: Windows 10 Enterprise
* Did you also try this on another platform? Does it work there?: I haven't tried but this software is exclusive to Windows (since it is dependent on dlls and batch scripts).
### Make sure [everything is packaged correctly](https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs#make-sure-everything-is-packaged-correctly)
* [x] start with clean installation
* [ ] use the latest development version
* In order to connect to PyPi via SSL I need to use my company's VPN, but that means I can only connect to PyPi directly and running the command gives me the error: `WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001DC8DFE6130>, 'Connection to github.com timed out. (connect timeout=15)')': /pyinstaller/pyinstaller/archive/develop.zip`.
* If I don't use the VPN I get the error: `WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)'))': /pyinstaller/pyinstaller/archive/develop.zip`
* [ ] Run your frozen program **from a command window (shell)** — instead of double-clicking on it
* This issue is about packing `matplotlib` and the build-time `TypeError` and `PermissionError` so I never ran the program.
* [x] Package your program in **--onedir mode**
* [x] Package **without UPX**, say: use the option `--noupx` or set `upx=False` in your .spec-file
* [x] Repackage you application in **verbose/debug mode**. For this, pass the option `--debug` to `pyi-makespec` or `pyinstaller` or use `EXE(..., debug=1, ...)` in your .spec file.
### A minimal example program which shows the error
To recreate this with just `matplotlib` and not the rest of my dependencies, I created a simple Python file, `test.py` which just imports `matplotlib` and nothing else:
```
import matplotlib
```
I then ended all active tasks besides the command prompt and ran `pyinstaller --debug all --noupx --onedir test.py`, and got this stack trace:
```
pyinstaller --debug all --noupx --onedir test.py
1689 INFO: PyInstaller: 4.2
1689 INFO: Python: 3.8.5 (conda)
1691 INFO: Platform: Windows-10-10.0.18362-SP0
1698 INFO: wrote C:\Users\fletcher.chapin\Documents\Git\test.spec
1702 INFO: UPX is not available.
1704 INFO: Extending PYTHONPATH with paths
['C:\\Users\\fletcher.chapin\\Documents\\Git',
'C:\\Users\\fletcher.chapin\\Documents\\Git']
1752 INFO: checking Analysis
4331 INFO: Building because test.spec changed
4331 INFO: Initializing module dependency graph...
4338 INFO: Caching module graph hooks...
4350 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
4359 INFO: Analyzing base_library.zip ...
9563 INFO: Processing pre-find module path hook distutils from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
9565 INFO: distutils: retargeting to non-venv dir 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib'
16378 INFO: Caching module dependency graph...
16669 INFO: running Analysis Analysis-00.toc
16691 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\python.exe
17012 INFO: Analyzing C:\Users\fletcher.chapin\Documents\Git\test.py
21579 INFO: Processing pre-find module path hook site from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
21579 INFO: site: retargeting to fake-dir 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\fake-modules'
50594 INFO: Processing pre-safe import module hook six.moves from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
66057 INFO: Processing pre-safe import module hook win32com from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
82388 INFO: Processing module hooks...
82388 INFO: Loading module hook 'hook-appdirs.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
82396 INFO: Excluding import of win32com.shell.shellcon from module appdirs
82396 INFO: Excluding import of win32com.shell from module appdirs
82396 INFO: Excluding import of win32com.shell.shell from module appdirs
82399 INFO: Loading module hook 'hook-certifi.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
82415 INFO: Loading module hook 'hook-IPython.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
83697 INFO: Excluding import of PySide from module IPython.external.qt_loaders
83705 INFO: Excluding import of PyQt5.QtWidgets from module IPython.external.qt_loaders
83705 INFO: Excluding import of PyQt5 from module IPython.external.qt_loaders
83705 INFO: Excluding import of PyQt5.QtSvg from module IPython.external.qt_loaders
83708 INFO: Excluding import of PyQt5.QtCore from module IPython.external.qt_loaders
83708 INFO: Excluding import of PyQt5.QtGui from module IPython.external.qt_loaders
83718 INFO: Excluding import of matplotlib.figure from module IPython.core.pylabtools
83718 INFO: Excluding import of matplotlib.backend_bases from module IPython.core.pylabtools
83718 INFO: Excluding import of matplotlib._pylab_helpers from module IPython.core.pylabtools
83719 INFO: Excluding import of matplotlib from module IPython.core.pylabtools
83719 INFO: Excluding import of matplotlib.pyplot from module IPython.core.pylabtools
83736 INFO: Excluding import of PyQt4 from module IPython.external.qt_loaders
83740 INFO: Excluding import of tkinter from module IPython.lib.clipboard
83747 INFO: Loading module hook 'hook-jedi.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
87046 INFO: Loading module hook 'hook-pycparser.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
87046 INFO: Loading module hook 'hook-pytest.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
88662 INFO: Loading module hook 'hook-pythoncom.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
89587 INFO: Loading module hook 'hook-pywintypes.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
90452 INFO: Loading module hook 'hook-regex.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
90455 INFO: Loading module hook 'hook-win32com.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
91881 INFO: Loading module hook 'hook-win32ctypes.core.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
92369 INFO: Loading module hook 'hook-zmq.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
92913 INFO: Loading module hook 'hook-difflib.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
92921 INFO: Excluding import of doctest from module difflib
92921 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
92930 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
92947 INFO: Excluding import of lib2to3.refactor from module distutils.util
92947 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
93133 INFO: Loading module hook 'hook-heapq.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
93142 INFO: Excluding import of doctest from module heapq
93142 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
93243 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 913, in <module>
rcParamsDefault = _rc_params_in_file(
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 812, in _rc_params_in_file
with _open_file_or_url(fname) as fd:
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 786, in _open_file_or_url
fname = os.path.expanduser(fname)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\ntpath.py", line 293, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
93820 INFO: Loading module hook 'hook-matplotlib.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 913, in <module>
rcParamsDefault = _rc_params_in_file(
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 812, in _rc_params_in_file
with _open_file_or_url(fname) as fd:
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 786, in _open_file_or_url
fname = os.path.expanduser(fname)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\ntpath.py", line 293, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
104622 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
104635 INFO: Excluding import of test from module multiprocessing.util
104635 INFO: Excluding import of test.support from module multiprocessing.util
104642 INFO: Loading module hook 'hook-numpy.core.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
104835 INFO: MKL libraries found when importing numpy. Adding MKL to binaries
104837 INFO: Loading module hook 'hook-numpy.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
104844 INFO: Loading module hook 'hook-numpy._pytesttester.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
104851 INFO: Excluding import of pytest from module numpy._pytesttester
104851 INFO: Loading module hook 'hook-packaging.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
104856 INFO: Loading module hook 'hook-pickle.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
104868 INFO: Excluding import of argparse from module pickle
104868 INFO: Loading module hook 'hook-PIL.Image.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
105848 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
105863 INFO: Excluding import of numpy from module PIL.ImageFilter
105867 INFO: Loading module hook 'hook-PIL.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
105882 INFO: Excluding import of PyQt5.QtCore from module PIL.ImageQt
105882 INFO: Excluding import of PyQt5.QtGui from module PIL.ImageQt
105897 INFO: Import to be excluded not found: 'FixTk'
105901 INFO: Excluding import of tkinter from module PIL.ImageTk
105907 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
105912 INFO: Import to be excluded not found: 'FixTk'
105917 INFO: Loading module hook 'hook-pkg_resources.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
107575 WARNING: Hidden import "pkg_resources.py2_warn" not found!
107618 WARNING: Hidden import "pkg_resources.markers" not found!
107619 INFO: Excluding import of __main__ from module pkg_resources
107628 INFO: Loading module hook 'hook-pygments.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
111448 INFO: Loading module hook 'hook-PyQt5.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
111761 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
111979 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
112394 INFO: Loading module hook 'hook-PyQt5.QtSvg.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
113081 INFO: Loading module hook 'hook-PyQt5.QtWidgets.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
113770 INFO: Loading module hook 'hook-scipy.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
113783 INFO: Loading module hook 'hook-setuptools.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
115617 INFO: Import to be excluded not found: 'setuptools.py33compat'
115617 INFO: Import to be excluded not found: 'setuptools.py27compat'
115621 INFO: Loading module hook 'hook-sqlite3.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
115803 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
115808 INFO: Loading module hook 'hook-wcwidth.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
115834 INFO: Loading module hook 'hook-xml.dom.domreg.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
115835 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
115839 INFO: Loading module hook 'hook-xml.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
115840 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
116266 INFO: checking Tree
116365 INFO: checking Tree
116627 INFO: checking Tree
116633 INFO: Loading module hook 'hook-setuptools.msvc.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
116650 INFO: Excluding import of numpy from module setuptools.msvc
117291 INFO: Looking for ctypes DLLs
117716 INFO: Analyzing run-time hooks ...
117750 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
117752 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_mplconfig.py'
117759 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
117762 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32api.py'
117766 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32comgenpy.py'
117772 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_certifi.py'
117775 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_traitlets.py'
117778 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
117833 INFO: Looking for dynamic libraries
118532 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_mpich2_lp64.dll
118939 WARNING: lib not found: msmpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_msmpi_ilp64.dll
119345 WARNING: lib not found: pgf90.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_pgi_thread.dll
119350 WARNING: lib not found: pgf90rtl.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_pgi_thread.dll
119354 WARNING: lib not found: pgc14.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_pgi_thread.dll
119497 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_mpich2_ilp64.dll
119973 WARNING: lib not found: msmpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_msmpi_lp64.dll
120019 WARNING: lib not found: impi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_intelmpi_ilp64.dll
120325 WARNING: lib not found: impi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_intelmpi_lp64.dll
121083 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_device.cp38-win_amd64.pyd
121100 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\utils.cp38-win_amd64.pyd
121117 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\error.cp38-win_amd64.pyd
121119 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\message.cp38-win_amd64.pyd
121133 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_version.cp38-win_amd64.pyd
121155 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_poll.cp38-win_amd64.pyd
121183 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\context.cp38-win_amd64.pyd
121199 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_proxy_steerable.cp38-win_amd64.pyd
121201 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\socket.cp38-win_amd64.pyd
121931 INFO: Looking for eggs
121931 INFO: Using Python library c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\python38.dll
121937 INFO: Found binding redirects:
[]
122806 INFO: Warnings written to C:\Users\fletcher.chapin\Documents\Git\build\test\warn-test.txt
123452 INFO: Graph cross-reference written to C:\Users\fletcher.chapin\Documents\Git\build\test\xref-test.html
128063 INFO: checking PYZ
128067 INFO: checking PKG
128076 INFO: Building because C:\Users\fletcher.chapin\Documents\Git\build\test\test.exe.manifest changed
128076 INFO: Building PKG (CArchive) PKG-00.pkg
128113 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
128126 INFO: Bootloader c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run_d.exe
128126 INFO: checking EXE
128129 INFO: Building because icon changed
128130 INFO: Building EXE from EXE-00.toc
128137 INFO: Copying icons from ['c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-console.ico']
128141 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
128141 INFO: Writing RT_ICON 1 resource with 3752 bytes
128141 INFO: Writing RT_ICON 2 resource with 2216 bytes
128141 INFO: Writing RT_ICON 3 resource with 1384 bytes
128141 INFO: Writing RT_ICON 4 resource with 37019 bytes
128143 INFO: Writing RT_ICON 5 resource with 9640 bytes
128143 INFO: Writing RT_ICON 6 resource with 4264 bytes
128144 INFO: Writing RT_ICON 7 resource with 1128 bytes
128150 INFO: Appending archive to EXE C:\Users\fletcher.chapin\Documents\Git\build\test\test.exe
128155 INFO: Building EXE from EXE-00.toc completed successfully.
128298 INFO: checking COLLECT
WARNING: The output directory "C:\Users\fletcher.chapin\Documents\Git\dist\test" and ALL ITS CONTENTS will be REMOVED! Continue? (y/N)y
On your own risk, you can use the option `--noconfirm` to get rid of this question.
162445 INFO: Removing dir C:\Users\fletcher.chapin\Documents\Git\dist\test
Traceback (most recent call last):
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\utils.py", line 410, in _make_clean_directory
os.remove(path)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\fletcher.chapin\\Documents\\Git\\dist\\test'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fletcher.chapin\AppData\Local\Continuum\anaconda2\envs\pipeline3\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\build_main.py", line 725, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\build_main.py", line 672, in build
exec(code, spec_namespace)
File "C:\Users\fletcher.chapin\Documents\Git\test.spec", line 30, in <module>
coll = COLLECT(exe,
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\api.py", line 709, in __init__
self.__postinit__()
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
self.assemble()
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\api.py", line 722, in assemble
_make_clean_directory(self.name)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\utils.py", line 412, in _make_clean_directory
_rmtree(path)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\utils.py", line 438, in _rmtree
shutil.rmtree(path)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 737, in rmtree
return _rmtree_unsafe(path, onerror)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 610, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 610, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 610, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
[Previous line repeated 3 more times]
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 615, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 613, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\fletcher.chapin\\Documents\\Git\\dist\\test\\matplotlib\\mpl-data\\aics_tf_registration\\.git\\objects\\pack\\pack-2e736fb26c89a5509a43e833f554aee46958e4dc.idx'
```
### Stacktrace / full error message
This was the stack trace from trying to package my full program, but I think the example above will be much more helpful.
```
pyinstaller --log-level=INFO --noconfirm microscope_automation.spec
603 INFO: PyInstaller: 4.2
603 INFO: Python: 3.8.5 (conda)
604 INFO: Platform: Windows-10-10.0.18362-SP0
605 INFO: UPX is not available.
606 INFO: Extending PYTHONPATH with paths
['C:\\Users\\fletcher.chapin\\Documents\\Git\\microscope_automation']
624 INFO: checking Analysis
763 INFO: Building because C:\Users\fletcher.chapin\Documents\Git\microscope_automation\microscope_automation\microscope_automation.py changed
763 INFO: Initializing module dependency graph...
772 INFO: Caching module graph hooks...
774 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
782 INFO: Analyzing base_library.zip ...
2850 INFO: Processing pre-find module path hook distutils from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
2852 INFO: distutils: retargeting to non-venv dir 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib'
6345 INFO: Caching module dependency graph...
6502 INFO: running Analysis Analysis-00.toc
6533 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\python.exe
6912 INFO: Analyzing microscope_automation\microscope_automation.py
8411 INFO: Processing pre-find module path hook site from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
8417 INFO: site: retargeting to fake-dir 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\fake-modules'
18972 INFO: Processing pre-safe import module hook six.moves from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
24805 INFO: Processing pre-safe import module hook win32com from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
52918 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-urllib3.packages.six.moves.py'.
57374 INFO: Processing pre-find module path hook PyQt5.uic.port_v2 from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-PyQt5.uic.port_v2.py'.
60094 INFO: Processing module hooks...
60094 INFO: Loading module hook 'hook-appdirs.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
60103 INFO: Excluding import of win32com.shell.shell from module appdirs
60103 INFO: Excluding import of win32com.shell from module appdirs
60112 INFO: Excluding import of win32com.shell.shellcon from module appdirs
60112 INFO: Loading module hook 'hook-certifi.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
60118 INFO: Loading module hook 'hook-cryptography.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
60494 INFO: Loading module hook 'hook-dask.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
60603 INFO: Loading module hook 'hook-imageio.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
60620 INFO: Loading module hook 'hook-IPython.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
61534 INFO: Excluding import of PySide from module IPython.external.qt_loaders
61550 INFO: Excluding import of matplotlib from module IPython.core.pylabtools
61551 INFO: Excluding import of matplotlib.backend_bases from module IPython.core.pylabtools
61551 INFO: Excluding import of matplotlib._pylab_helpers from module IPython.core.pylabtools
61551 INFO: Excluding import of matplotlib.figure from module IPython.core.pylabtools
61551 INFO: Excluding import of matplotlib.pyplot from module IPython.core.pylabtools
61552 INFO: Excluding import of tkinter from module IPython.lib.clipboard
61552 INFO: Excluding import of PyQt4 from module IPython.external.qt_loaders
61552 INFO: Excluding import of PyQt5.QtGui from module IPython.external.qt_loaders
61552 INFO: Excluding import of PyQt5.QtSvg from module IPython.external.qt_loaders
61565 INFO: Excluding import of PyQt5.QtWidgets from module IPython.external.qt_loaders
61565 INFO: Excluding import of PyQt5.QtCore from module IPython.external.qt_loaders
61566 INFO: Excluding import of PyQt5 from module IPython.external.qt_loaders
61567 INFO: Loading module hook 'hook-jedi.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
62827 INFO: Loading module hook 'hook-jinja2.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
62837 INFO: Loading module hook 'hook-lxml.etree.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
62843 INFO: Loading module hook 'hook-lxml.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
63215 INFO: Loading module hook 'hook-pycparser.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
63217 INFO: Loading module hook 'hook-pytest.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64012 INFO: Loading module hook 'hook-pythoncom.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64356 INFO: Loading module hook 'hook-pywintypes.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64706 INFO: Loading module hook 'hook-pywt.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64707 INFO: Loading module hook 'hook-regex.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64707 INFO: Loading module hook 'hook-skimage.feature.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64717 INFO: Loading module hook 'hook-skimage.io.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
66234 INFO: Loading module hook 'hook-skimage.transform.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
66604 INFO: Loading module hook 'hook-win32com.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
66728 INFO: Loading module hook 'hook-win32ctypes.core.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
66930 INFO: Loading module hook 'hook-zmq.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
67210 INFO: Loading module hook 'hook-difflib.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
67233 INFO: Excluding import of doctest from module difflib
67233 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
67238 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
67251 INFO: Excluding import of lib2to3.refactor from module distutils.util
67252 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
67330 INFO: Loading module hook 'hook-heapq.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
67337 INFO: Excluding import of doctest from module heapq
67337 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
67399 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 913, in <module>
rcParamsDefault = _rc_params_in_file(
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 812, in _rc_params_in_file
with _open_file_or_url(fname) as fd:
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 786, in _open_file_or_url
fname = os.path.expanduser(fname)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\ntpath.py", line 293, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
67631 INFO: Loading module hook 'hook-matplotlib.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 913, in <module>
rcParamsDefault = _rc_params_in_file(
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 812, in _rc_params_in_file
with _open_file_or_url(fname) as fd:
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\matplotlib\__init__.py", line 786, in _open_file_or_url
fname = os.path.expanduser(fname)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\ntpath.py", line 293, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
69520 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
69533 INFO: Excluding import of test from module multiprocessing.util
69537 INFO: Excluding import of test.support from module multiprocessing.util
69537 INFO: Loading module hook 'hook-numpy.core.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
69541 INFO: MKL libraries found when importing numpy. Adding MKL to binaries
69544 INFO: Loading module hook 'hook-numpy.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
69546 INFO: Loading module hook 'hook-numpy._pytesttester.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
69556 INFO: Excluding import of pytest from module numpy._pytesttester
69556 INFO: Loading module hook 'hook-packaging.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
69557 INFO: Loading module hook 'hook-pandas.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
70715 INFO: Loading module hook 'hook-pickle.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
70727 INFO: Excluding import of argparse from module pickle
70727 INFO: Loading module hook 'hook-PIL.Image.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
71161 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
71182 INFO: Excluding import of numpy from module PIL.ImageFilter
71182 INFO: Loading module hook 'hook-PIL.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
71186 INFO: Import to be excluded not found: 'FixTk'
71191 INFO: Excluding import of tkinter from module PIL.ImageTk
71195 INFO: Excluding import of PyQt5.QtGui from module PIL.ImageQt
71195 INFO: Excluding import of PyQt5.QtCore from module PIL.ImageQt
71206 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
71207 INFO: Import to be excluded not found: 'FixTk'
71215 INFO: Loading module hook 'hook-pkg_resources.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
72006 WARNING: Hidden import "pkg_resources.py2_warn" not found!
72017 WARNING: Hidden import "pkg_resources.markers" not found!
72033 INFO: Excluding import of __main__ from module pkg_resources
72039 INFO: Loading module hook 'hook-pygments.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
73951 INFO: Loading module hook 'hook-PyQt5.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
74272 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
74358 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
74491 INFO: Loading module hook 'hook-PyQt5.QtOpenGL.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
74735 INFO: Loading module hook 'hook-PyQt5.QtSvg.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
74967 INFO: Loading module hook 'hook-PyQt5.QtTest.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75208 INFO: Loading module hook 'hook-PyQt5.QtWidgets.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75431 INFO: Loading module hook 'hook-PyQt5.uic.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75448 INFO: Loading module hook 'hook-pytz.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75718 INFO: Loading module hook 'hook-scipy.linalg.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75732 INFO: Loading module hook 'hook-scipy.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75735 INFO: Loading module hook 'hook-scipy.sparse.csgraph.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75739 INFO: Loading module hook 'hook-scipy.spatial.transform.rotation.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75747 INFO: Loading module hook 'hook-scipy.special._ellip_harm_2.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75748 INFO: Loading module hook 'hook-scipy.special._ufuncs.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75750 INFO: Loading module hook 'hook-scipy.stats._stats.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
75752 INFO: Loading module hook 'hook-setuptools.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76640 INFO: Import to be excluded not found: 'setuptools.py33compat'
76640 INFO: Import to be excluded not found: 'setuptools.py27compat'
76644 INFO: Loading module hook 'hook-sqlite3.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76749 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76750 INFO: Loading module hook 'hook-wcwidth.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76752 INFO: Loading module hook 'hook-xml.dom.domreg.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76760 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76760 INFO: Loading module hook 'hook-xml.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76761 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
76996 INFO: checking Tree
77111 INFO: checking Tree
77211 INFO: checking Tree
77216 INFO: Loading module hook 'hook-lxml.isoschematron.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
77220 INFO: Loading module hook 'hook-lxml.objectify.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
77228 INFO: Loading module hook 'hook-setuptools.msvc.py' from 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks'...
77237 INFO: Excluding import of numpy from module setuptools.msvc
77474 INFO: Looking for ctypes DLLs
77797 INFO: Analyzing run-time hooks ...
77826 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
77835 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_mplconfig.py'
77837 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32api.py'
77838 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
77844 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32comgenpy.py'
77847 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_traitlets.py'
77849 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_certifi.py'
77852 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
77854 INFO: Including run-time hook 'c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pyqt5.py'
77914 INFO: Looking for dynamic libraries
78308 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_mpich2_lp64.dll
78364 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_mpich2_ilp64.dll
78662 WARNING: lib not found: impi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_intelmpi_lp64.dll
78763 WARNING: lib not found: pgf90rtl.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_pgi_thread.dll
78769 WARNING: lib not found: pgc14.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_pgi_thread.dll
78770 WARNING: lib not found: pgf90.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_pgi_thread.dll
79401 WARNING: lib not found: impi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_intelmpi_ilp64.dll
79407 WARNING: lib not found: msmpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_msmpi_ilp64.dll
79757 WARNING: lib not found: msmpi.dll dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\Library\bin\mkl_blacs_msmpi_lp64.dll
80548 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_version.cp38-win_amd64.pyd
80553 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_device.cp38-win_amd64.pyd
80570 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\utils.cp38-win_amd64.pyd
80588 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\error.cp38-win_amd64.pyd
80593 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\socket.cp38-win_amd64.pyd
80600 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_poll.cp38-win_amd64.pyd
80607 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\_proxy_steerable.cp38-win_amd64.pyd
80614 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\message.cp38-win_amd64.pyd
80633 WARNING: lib not found: libzmq.cp38-win_amd64.pyd dependency of c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\zmq\backend\cython\context.cp38-win_amd64.pyd
82642 INFO: Looking for eggs
82642 INFO: Using Python library c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\python38.dll
82653 INFO: Found binding redirects:
[]
82697 INFO: Warnings written to C:\Users\fletcher.chapin\Documents\Git\microscope_automation\build\microscope_automation\warn-microscope_automation.txt
83169 INFO: Graph cross-reference written to C:\Users\fletcher.chapin\Documents\Git\microscope_automation\build\microscope_automation\xref-microscope_automation.html
83581 INFO: checking PYZ
83606 INFO: Building because toc changed
83606 INFO: Building PYZ (ZlibArchive) C:\Users\fletcher.chapin\Documents\Git\microscope_automation\build\microscope_automation\PYZ-00.pyz
88777 INFO: Building PYZ (ZlibArchive) C:\Users\fletcher.chapin\Documents\Git\microscope_automation\build\microscope_automation\PYZ-00.pyz completed successfully.
88868 INFO: checking PKG
88875 INFO: Building because C:\Users\fletcher.chapin\Documents\Git\microscope_automation\build\microscope_automation\PYZ-00.pyz changed
88877 INFO: Building PKG (CArchive) PKG-00.pkg
88965 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
88973 INFO: Bootloader c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run_d.exe
88974 INFO: checking EXE
88982 INFO: Building because icon changed
88983 INFO: Building EXE from EXE-00.toc
88987 INFO: Copying icons from ['c:\\users\\fletcher.chapin\\appdata\\local\\continuum\\anaconda2\\envs\\pipeline3\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-console.ico']
88990 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
88990 INFO: Writing RT_ICON 1 resource with 3752 bytes
88990 INFO: Writing RT_ICON 2 resource with 2216 bytes
88991 INFO: Writing RT_ICON 3 resource with 1384 bytes
88991 INFO: Writing RT_ICON 4 resource with 37019 bytes
88992 INFO: Writing RT_ICON 5 resource with 9640 bytes
88992 INFO: Writing RT_ICON 6 resource with 4264 bytes
88992 INFO: Writing RT_ICON 7 resource with 1128 bytes
88996 ERROR: resource type and/or name not specified
88997 INFO: Appending archive to EXE C:\Users\fletcher.chapin\Documents\Git\microscope_automation\build\microscope_automation\microscope_automation.exe
88999 INFO: Building EXE from EXE-00.toc completed successfully.
89018 INFO: checking COLLECT
89080 INFO: Removing dir C:\Users\fletcher.chapin\Documents\Git\microscope_automation\dist\microscope_automation
Traceback (most recent call last):
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\utils.py", line 410, in _make_clean_directory
os.remove(path)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\fletcher.chapin\\Documents\\Git\\microscope_automation\\dist\\microscope_automation'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fletcher.chapin\AppData\Local\Continuum\anaconda2\envs\pipeline3\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\build_main.py", line 725, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\build_main.py", line 672, in build
exec(code, spec_namespace)
File "microscope_automation.spec", line 30, in <module>
coll = COLLECT(exe,
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\api.py", line 709, in __init__
self.__postinit__()
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
self.assemble()
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\api.py", line 722, in assemble
_make_clean_directory(self.name)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\utils.py", line 412, in _make_clean_directory
_rmtree(path)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\site-packages\PyInstaller\building\utils.py", line 438, in _rmtree
shutil.rmtree(path)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 737, in rmtree
return _rmtree_unsafe(path, onerror)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 610, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 610, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 610, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
[Previous line repeated 2 more times]
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 615, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "c:\users\fletcher.chapin\appdata\local\continuum\anaconda2\envs\pipeline3\lib\shutil.py", line 613, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\fletcher.chapin\\Documents\\Git\\microscope_automation\\dist\\microscope_automation\\matplotlib\\mpl-data\\.git\\objects\\00\\10476755445d1f74bcf25d23a9dfbfbca5559a'
```