aws-samples / amazon-forecast-samples

Notebooks and examples on how to onboard and use various features of Amazon Forecast.
MIT No Attribution
514 stars 369 forks source link

UnknownServiceError #11

Closed vipulsingh24 closed 5 years ago

vipulsingh24 commented 5 years ago

I am getting this 'UnknownServiceError' on creating a session client of service_name 'forecast'. What's the correct name for forecast?

UnknownServiceError: Unknown service: 'forecast'. Valid service names are: acm, acm-pca, alexaforbusiness, amplify, apigateway, apigatewaymanagementapi, apigatewayv2, application-autoscaling, appmesh, appstream, appsync, athena, autoscaling, autoscaling-plans, backup, batch, budgets, ce, chime, cloud9, clouddirectory, cloudformation, cloudfront, cloudhsm, cloudhsmv2, cloudsearch, cloudsearchdomain, cloudtrail, cloudwatch, codebuild, codecommit, codedeploy, codepipeline, codestar, cognito-identity, cognito-idp, cognito-sync, comprehend, comprehendmedical, config, connect, cur, datapipeline, datasync, dax, devicefarm, directconnect, discovery, dlm, dms, docdb, ds, dynamodb, dynamodbstreams, ec2, ecr, ecs, efs, eks, elasticache, elasticbeanstalk, elastictranscoder, elb, elbv2, emr, es, events, firehose, fms, fsx, gamelift, glacier, globalaccelerator, glue, greengrass, guardduty, health, iam, importexport, inspector, iot, iot-data, iot-jobs-data, iot1click-devices, iot1click-projects, iotanalytics, kafka, kinesis, kinesis-video-archived-media, kinesis-video-media, kinesisanalytics, kinesisanalyticsv2, kinesisvideo, kms, lambda, lex-models, lex-runtime, license-manager, lightsail, logs, machinelearning, macie, marketplace-entitlement, marketplacecommerceanalytics, mediaconnect, mediaconvert, medialive, mediapackage, mediastore, mediastore-data, mediatailor, meteringmarketplace, mgh, mobile, mq, mturk, neptune, opsworks, opsworkscm, organizations, pi, pinpoint, pinpoint-email, pinpoint-sms-voice, polly, pricing, quicksight, ram, rds, rds-data, redshift, rekognition, resource-groups, resourcegroupstaggingapi, robomaker, route53, route53domains, route53resolver, s3, s3control, sagemaker, sagemaker-runtime, sdb, secretsmanager, securityhub, serverlessrepo, servicecatalog, servicediscovery, ses, shield, signer, sms, sms-voice, snowball, sns, sqs, ssm, stepfunctions, storagegateway, sts, support, swf, transcribe, transfer, translate, waf, waf-regional, workdocs, worklink, workmail, workspaces, xray

chrisking commented 5 years ago

Has your account been whitelisted? And did you run the steps to patch your local AWS and Boto installations?

vipulsingh24 commented 5 years ago

I didn't run the steps to patch local AWS and Botot3 installations, what that step where I can find guide or doc for it?

chrisking commented 5 years ago

Take a look at the first few cells in the sample notebooks.

chrisking commented 5 years ago

@vipulsingh24 did this resolve your issue?

kana-mycin commented 5 years ago

@vipulsingh24 did this fix your issue? If so, I'll close this issue. Please note that the SDK was recently updated, so you will need to re-patch your local AWS installation for the latest changes.

cjolivier01 commented 5 years ago

Closing due to inactivity, assuming fixed. Please reopen if not.

mattc-eostar commented 5 years ago

Problem still present in us-west-2 region on AWS Forecast GA. Used CloudFormation in this region along with launching JupyterLab within that region. Any further help?

chrisking commented 5 years ago

So this will be fixed within time, but to address it within your Jupyter instance:

  1. Create a new cell above the imports
  2. Enter the following line then execute it, then continue on:
!pip install --upgrade boto3

That will alleviate your issue, you will need to do this until the latest release of Boto3 is propagated to SageMaker. This generally takes a week.

mattc-eostar commented 5 years ago

Thank you!