microsoft / Templates-For-Dynamics-365-Supply-Chain-Management-Demand-Forecasting-With-Azure-Machine-Learning

Samples, templates and setup guides in order to run demand forecasting in Azure Machine Learning Service and integrate with Dynamics 365 SCM
MIT License
13 stars 16 forks source link

Getting AttributeError: '_OfflineRun' object has no attribute 'experiment' Error when running Run.py in AML Studio notebook #9

Open ruba9 opened 1 year ago

ruba9 commented 1 year ago

Hello Team,

I was trying to follow this repo, inside my AML WS and when I added the files and tried to run them, I got multiple errors:

When I run the run.py file I get: AttributeError: '_OfflineRun' object has no attribute 'experiment'

When I run the api_trigger.py file I get:

azureuser@ruaburub3:~/cloudfiles/code/Users/ruaburub$ python api_trigger.py Pipeline does not exists, creating new: TriggerDemandForecastGeneration Traceback (most recent call last): File "api_trigger.py", line 48, in pipelineEndpoint = PipelineEndpoint.publish(workspace = workspace, name = pipelineName, pipeline=pipeline, description="Initiate demand forecast generation.") File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/pipeline_endpoint.py", line 323, in publish pipeline = pipeline.publish(name=pipeline_name, description="Description for " + pipeline_name) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/pipeline.py", line 309, in publish return self.graph._save(name=name, description=description, version=version, File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/graph.py", line 3844, in _save self._validate_and_finalize(pipeline_parameters=None, regenerate_outputs=regenerate_outputs) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/graph.py", line 3863, in _validate_and_finalize self.finalize(dry_run=False, regenerate_outputs=regenerate_outputs) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/graph.py", line 3609, in finalize Graph._check_threadpool_exceptions(done, not_done) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/graph.py", line 3734, in _check_threadpool_exceptions raise ex File "/anaconda/envs/azureml_py38/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/graph.py", line 3596, in get_or_create_module_for_fingerprint raise ex File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/graph.py", line 3594, in get_or_create_module_for_fingerprint module_id = node._module_builder.build() File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/_module_builder.py", line 62, in build module_id = self._module_provider.create_module( File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/_aeva_provider.py", line 327, in create_module module_entity = _AevaModuleProvider.module_creation(module_def, content_path, File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/_aeva_provider.py", line 293, in module_creation storage_id = module_uploader.upload(directory=content_path) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/_aeva_provider.py", line 81, in upload storage_id = snapshots_client.create_snapshot(directory) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/_restclient/snapshots_client.py", line 110, in create_snapshot self._validate_snapshot_file_count(file_or_folder_path, len(entries_to_send), raise_on_validation_failure) File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/_restclient/snapshots_client.py", line 79, in _validate_snapshot_file_count raise SnapshotException(error_message) azureml.exceptions._azureml_exception.SnapshotException: SnapshotException: Message: ====================================================================

While attempting to take snapshot of /mnt/batch/tasks/shared/LS_root/mounts/clusters/ruaburub3/code/Users/ruaburub Your project exceeds the file limit of 2000.

====================================================================

    InnerException None
    ErrorResponse 

{ "error": { "message": "====================================================================\n\nWhile attempting to take snapshot of /mnt/batch/tasks/shared/LS_root/mounts/clusters/ruaburub3/code/Users/ruaburub\nYour project exceeds the file limit of 2000.\n\n====================================================================\n\n" } }

And When I run the forecast.r I get: azureuser@ruaburub3:~/cloudfiles/code/Users/ruaburub/REntryScript$ Rscript forecast.r /bin/bash: /anaconda/envs/azureml_py38/lib/libtinfo.so.6: no version information available (required by /bin/bash) Error in library(forecast) : there is no package called ‘forecast’ Execution halted

This is how my files look like: image