I have a package containing some helper functions in a repository in Artifact Registry on GCP in project a. I prepped the package by following this guide, only changing the name of the package from quickstart to my own custom name and then pushing my custom code rather than their samples. When I follow the steps to see the package name and version I get the expected results, that of version 0.0.1 and the package name of data-analysis-toolbox.
There are cloud functions in project b that require this package. I am able to deploy the cloud functions successfully as I have added a role to the cloud build SA along with giving it access to the Artifact Registry following this answer.
I then added the --extra-index-url line to the requirements.txt file and was able to deploy the function. However, when actually running the function I get an error stating
ModuleNotFoundError: No module named 'data_analysis_toolbox'
where 'data_analysis_toolbox' is the name of the package from my Artifact Registry.
This occurs whether I do the import as
from data-analysis-toolbox import <file>
or even with a simple
import data-analysis-toolbox
Any thoughts on what may be occurring here?