Cannot bundle namespace package 'mpl_toolkits'

181 Views Asked by At

Good morning ! I am using pynsist to create a windows installer for a script written in python. I have listed all the packages the script needs in the [Include] section. When I run the python -m nsist installer.cfg command to generate the installer, the error below occurs. ImportError: Cannot bundle namespace package 'mpl_toolkits' How to fix this error? Here is the contents of the configuration file:

[Application]
name = AQuiData
version = 0.1
publisher =  Wahabo OUEDRAOGO
script  = AquiData.py
icon = Donnees/Logo_logiciel.ico
console = true

[Python]
version = 3.9.7

[Include]
packages = numpy  
    pandas 
    matplotlib 
    PyQt5
    scipy 
    pyqtgraph
    sympy 
    pyvisa
    ctypes 
    visa 
    openpyxl 
    pyvisa_py 
    keysight 
    xlsxwriter 
    serial 
    pytz
    dateutil
    six
    mpmath
    sklearn
    usb
    et_xmlfile
    PIL
    pyparsing
    pylab
    cycler
    kiwisolverenter code here
    mpl_toolkits
    picosdk
    AQ

[Build]
installer_name = AQuiData.exe
0

There are 0 best solutions below