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

user-provided matplotlib backend names list causes TypeError: unhashable type: 'list' #7091

Closed
timpol opened this issue Sep 17, 2022 · 0 comments · Fixed by #7092
Closed
Labels

Comments

@timpol
Copy link

timpol commented Sep 17, 2022

Description of the issue

  • Output of pyinstaller --version: 5.4.1
  • Version of Python: 3.7.9
  • Platform: Windows 10

When implementing the matplotliib backend hook configuration example in the docs:

a = Analysis(
    ["my-matplotlib-app.py"],
    ...,
    hooksconfig={
        "matplotlib": {
            #"backends": "auto",  # auto-detect; the default behavior
            # "backends": "all",  # collect all backends
            # "backends": "TkAgg",  # collect a specific backend
            "backends": ["TkAgg", "Qt5Agg"],  # collect multiple backends
        },
    },
    ...,
)

I get the following exception:

  File "C:\Users\...\lib\site-packages\PyInstaller\hooks\hook-matplotlib.backends.py", line 192, in hook
    logger.info("Matplotlib backend selection method: %s", _method_names.get(backends_method, 'user-provided name(s)'))
TypeError: unhashable type: 'list'

I think perhaps this is just an issue with the logger.info call?

I'm very inexperienced with GitHub sorry, otherwise I would try to submit a PR.

@timpol timpol added the triage Please triage and relabel this issue label Sep 17, 2022
@timpol timpol changed the title user-provided backend names list causes TypeError: unhashable type: 'list' user-provided matplotlib backend names list causes TypeError: unhashable type: 'list' Sep 17, 2022
@rokm rokm added bug and removed triage Please triage and relabel this issue labels Sep 17, 2022
@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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants