Unable to create package installer for notarized app

I developed an app using python and pyinstaller. I was able to sign it and have it notarized. I verified the app worked when I transferred the zip file to another computer.

Now I'm struggling to create a package installer as outlined in the directions at https://developer.apple.com/forums/thread/128166

At the command prompt I entered the following:

productbuild --sign 'My Name (######7RBW)' --component '/Users/myname/Desktop/dist/my_app.app' /Applications '/Users/myname/Desktop/dist/my_app.pkg'

where ###### is the first six entries of my developer ID.

The error message stated

(Could not find appropriate signing identity for “My Name (######7RBW)”.)

I'm sure this is a common error, but I'm not sure what I did incorrectly above. FWIW, I was able to follow the directions for creating a disk image of my app.

I see from https://developer.apple.com/forums/thread/665901 that my developer ID is for code signing and not for signing a package. I don't see a way for removing my question above; perhaps the moderator may wish to do so.

Unable to create package installer for notarized app
 
 
Q