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

Exception: AttributeError: module 'names_dataset' has no attribute 'NameDataset' while importingin Azure cloud #37

Open
jimmyzeb opened this issue Mar 14, 2024 · 0 comments

Comments

@jimmyzeb
Copy link

jimmyzeb commented Mar 14, 2024

Exception while executing function: Functions.V1BlobTrigger Result: Failure Exception: AttributeError: module 'names_dataset' has no attribute 'NameDataset' Stack: File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/dispatcher.py", line 505, in _handle__invocation_request call_result = await self._loop.run_in_executor( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/dispatcher.py", line 778, in _run_sync_func return ExtensionManager.get_sync_invocation_wrapper(context, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/azure-functions-host/workers/python/3.11/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper result = function(**args) ^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/V1BlobTrigger/__init__.py", line 16, in main merged_df, manual_review = utils.process_data(df) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/utils/__init__.py", line 6, in process_data df = filter_individuals(df) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/site/wwwroot/utils/pipeline.py", line 53, in filter_individuals nd = names_dataset.NameDataset() ^^^^^^^^^^^^^^^^^^^^^^^^^
Unable to import NameDataset function from names_dataset package although import names_dataset works fine. The code works fine in local environment. getting this issue in Azure cloud. what could be the reason for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant