Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in compiling New Matplotlib V3.4.1 release #5690

Closed
xo-HADES-xo opened this issue Apr 1, 2021 · 2 comments
Closed

Error in compiling New Matplotlib V3.4.1 release #5690

xo-HADES-xo opened this issue Apr 1, 2021 · 2 comments

Comments

@xo-HADES-xo
Copy link

Description of the issue

  • Prior versions of Matplotlib (e.g. 3.3.4) compiled correctly with no issues
  • With new release (3.4.1); there is an issues where Pyinstaller does not create the correct data in "myProgram\matplotlib\mpl-data" folder
  • Instead, Pyinstaller copies the whole directory where source code is located + the all the source code to the "mpl-data" folder

Context information (for bug reports)

  • Output of pyinstaller --version: 4.2
  • Version of Python: 3.8.8
  • Platform: Windows 10 (English)
  • Did you also try this on another platform? Does it work there? Only tried on W10

This is SPEC file used:

# -*- mode: python -*-

block_cipher = None


a = Analysis(['src\\myProg.pyw'],
             pathex=[r'C:\\Users\\xxx1',
                     r'C:\\Users\\xxx2',
                     ],
             binaries=[(r'C:\Python38-32\Lib\site-packages\numpy\DLLs', '.')],
             datas=[],
             hiddenimports=['tkinter',
                            'tkinter.filedialog',
                            'pandas',
                            'scipy',
                            'scipy._lib.messagestream',
                            'scipy.special.cython_special',
                            'scipy.spatial.transform._rotation_groups',
                            'numpy',
                            'numpy.core._multiarray_umath',
                            'matplotlib',
                            'pkg_resources.py2_warn',
                            ],
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=True,
          name='myProg',
          debug=False,
          strip=False,
          upx=True,
          console=False,
          icon='curve03.ico')
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
               name='myProg')
@rokm
Copy link
Member

rokm commented Apr 1, 2021

Can you try using develop branch? This looks like a duplicate of #5567, and should already be fixed by #5568.

@xo-HADES-xo
Copy link
Author

Yes, thanks.
switching to public get_data_path in matplotlib hook worked. Did not see previous message

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants