dotnet / spark

.NET for Apache® Spark™ makes Apache Spark™ easily accessible to .NET developers.
https://dot.net/spark
MIT License
2.01k stars 313 forks source link

Error when installing package Microsoft.Spark --version 1.0.0 #1024

Open rolevin opened 2 years ago

rolevin commented 2 years ago

Problem encountered on https://dotnet.microsoft.com/en-us/learn/data/spark-tutorial/create Operating System: windows

Hi,

I followed the tutorial carefully. I even retried from the beginning multiple times.

Still, whenever I run this command: dotnet add package Microsoft.Spark --version 1.0.0

I get the following error:

C:\Users\rolevin\Repositories\RemoteGit\Development\Workspaces\Dynamics365\CRM.OnlineServices.EmailInsights-abWkW_synapse_branch\src\WhoKnowsWhom\PysparkProjects\sparkApp>dotnet add package Microsoft.Spark --version 1.0.0 Determining projects to restore... Writing C:\Users\rolevin\AppData\Local\Temp\tmp9B9F.tmp info : Adding PackageReference for package 'Microsoft.Spark' into project 'C:\Users\rolevin\Repositories\RemoteGit\Development\Workspaces\Dynamics365\CRM.OnlineServices.EmailInsights-abWkW_synapse_branch\src\WhoKnowsWhom\PysparkProjects\sparkApp\sparkApp.csproj'. info : Restoring packages for C:\Users\rolevin\Repositories\RemoteGit\Development\Workspaces\Dynamics365\CRM.OnlineServices.EmailInsights-abWkW_synapse_branch\src\WhoKnowsWhom\PysparkProjects\sparkApp\sparkApp.csproj... error: Unable to load the service index for source https://dynamicscrm.pkgs.visualstudio.com/_packaging/SalesInsights/nuget/v3/index.json. error: Only the 'http', 'socks4', 'socks4a' and 'socks5' schemes are allowed for proxies.

Usage: NuGet.CommandLine.XPlat.dll package add [options]

Options: -h|--help Show help information --force-english-output Forces the application to run using an invariant, English-based culture. --package Id of the package to be added. --version Version of the package to be added. -d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check. -p|--project Path to the project file. -f|--framework Frameworks for which the package reference should be added. -n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional. -s|--source Specifies NuGet package sources to use during the restore. --package-directory Directory to restore packages in. --interactive Allow the command to block and require manual action for operations like authentication. --prerelease Allows prerelease packages to be installed.

suhsteve commented 2 years ago

@rolevin I suspect there may be something fishy in your Nuget.config ? The error message seems to suggest issues connecting to https://dynamicscrm.pkgs.visualstudio.com/_packaging/SalesInsights/nuget/v3/index.json

rolevin commented 2 years ago

Perhaps ... thanks.

From: Steve Suh @.> Sent: Friday, February 11, 2022 11:12 PM To: dotnet/spark @.> Cc: Roy Levin @.>; Mention @.> Subject: Re: [dotnet/spark] Error when installing package Microsoft.Spark --version 1.0.0 (Issue #1024)

@rolevinhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frolevin&data=04%7C01%7Crolevin%40microsoft.com%7Ccd2f68fc94a34cf4d75708d9eda32db0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637802107405008265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=s8tOFTBsvwJCvKA8t4wQMEPhbYn1yQl9LzAIdaMOHeg%3D&reserved=0 I suspect there may be something fishy in your Nuget.config ? The error message seems to suggest issues connecting to https://dynamicscrm.pkgs.visualstudio.com/_packaging/SalesInsights/nuget/v3/index.jsonhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdynamicscrm.pkgs.visualstudio.com%2F_packaging%2FSalesInsights%2Fnuget%2Fv3%2Findex.json&data=04%7C01%7Crolevin%40microsoft.com%7Ccd2f68fc94a34cf4d75708d9eda32db0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637802107405008265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=TYoVC0DbUm%2FyG%2FQPd56Rxo8JI2DVDoxeW4h3c9A7SIo%3D&reserved=0

- Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fspark%2Fissues%2F1024%23issuecomment-1036626943&data=04%7C01%7Crolevin%40microsoft.com%7Ccd2f68fc94a34cf4d75708d9eda32db0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637802107405057761%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=0YdbfTy3%2FZP7xSIrd3azVV%2FG%2FDSh8ZbtQoGNAilmIws%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEUCF3KCOZNKW226MII2KITU2V3S5ANCNFSM5N3ISVVA&data=04%7C01%7Crolevin%40microsoft.com%7Ccd2f68fc94a34cf4d75708d9eda32db0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637802107405057761%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=dcmTQXoCaL47OE18UClmpQ8n4H%2FAm%2BsRGel29SfHVLg%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Crolevin%40microsoft.com%7Ccd2f68fc94a34cf4d75708d9eda32db0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637802107405057761%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=fEMs%2F2ehQ3nhznBGLXbcNVJOg3eiUQ4ePxnK9yOh3rU%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Crolevin%40microsoft.com%7Ccd2f68fc94a34cf4d75708d9eda32db0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637802107405057761%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=WKDEC27f86Ta8ff7uhXakJH%2BZ4i11VXS7jz4npoRYBo%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>