Plugin cannot be installed with pip

Hi,

I followed the tutorial listed here

However, when trying to install the build plugin I get:

ValueError: (‘Invalid group name’, ‘dash-hooks’)

When I remove the “-” from the group name in setup.py, it successfully installs but is then not recognized by my dash app.

Edit
The issue is in pkg_resources which checks for a valid group name with the below line. So having an entry point “dash-hooks” will not work.
MODULE = re.compile(r"\w+(\.\w+)*$").match

So my best guess is, that I need to install another package version.
Name: setuptools
Version: 76.0.0
Name: pip
Version: 25.0.1
Name: dash
Version: 3.0.0rc4

I ran into the same thing and I created an issue in the dash github repo to track it [BUG] "dash-hooks" is an invalid group name in python and so plugins using it don't install · Issue #3272 · plotly/dash · GitHub

1 Like

What plugin are you writing?

Nice catch! This issue has been fixed and is released in dash>=3.0.3. Make sure to change the dash-hooks entry point to dash_hooks.

Here are the release notes: Release Dash v3.0.3 · plotly/dash · GitHub

Enjoy building with hooks :hugs: