Xamarin.Android.Crashlytics Download failed - firebase

When I add Xamarin.Android.Crashlytics nuget packages, these errors appear:
Download failed. Please download
https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/11.4.2/play-services-basement-11.4.2.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\playservices-11.4.2/playservicesbasement.aar.
Download failed. Please download
https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-tasks/11.4.2/play-services-tasks-11.4.2.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\playservices-11.4.2/playservicestasks.aar.
Download failed. Please download
https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-analytics-impl/11.4.2/firebase-analytics-impl-11.4.2.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\firebase-11.4.2/firebaseanalyticsimpl.aar.
Download failed. Please download
https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-analytics/11.4.2/firebase-analytics-11.4.2.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\firebase-11.4.2/firebaseanalytics.aar.
Download failed. Please download
https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-common/11.4.2/firebase-common-11.4.2.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\firebase-11.4.2/firebasecommon.aar.
Download failed. Please download
https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-iid/11.4.2/firebase-iid-11.4.2.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\firebase-11.4.2/firebaseiid.aar.
Download failed. Please download
https://maven.google.com/com/crashlytics/sdk/android/answers/1.4.2/answers-1.4.2.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\crashlyticsanswers-1.4.2.aar.
Download failed. Please download
https://maven.google.com/com/crashlytics/sdk/android/beta/1.2.9/beta-1.2.9.aar
to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\crashlyticsbeta-1.2.9.aar.
Download failed. Please download " crashlyticscore link " to a file
called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\crashlyticscore-2.6.3.aar.
Download failed. Please download " crashlytics link " to a file
called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\crashlytics-2.9.4.aar.
Download failed. Please download "fabric link" to a file called
C:\Users\myPc\AppData\Local\XamarinBuildDownloadCache\fabric-1.4.3.aar.

Related

ReadError: file could not be opened successfully. But I am not sure where the tar file is stored to resolve this

I am using biobert-embeddings==0.1.2 and torch==1.2.0 versions to embed some documents. But, I get the following error when I try to load the model by
from biobert_embedding.embedding import BiobertEmbedding
biobert = BiobertEmbedding()
Output/Error I get is -
Extracting biobert model tar.gz
ReadError: file could not be opened successfully
I was also having the same issue. Please follow the below steps to run the model:
Download the model from the link https://www.dropbox.com/s/hvsemunmv0htmdk/biobert_v1.1_pubmed_pytorch_model.tar.gz?dl=0
Extract all the files from the downloaded tar.gz file.
Use code:
biobert = BiobertEmbedding(model_path = "location_you_installed")
Note: Please make sure "location_you_installed" has config.json, pytorch_model.bin, and vocab.text files. These files are obtained after step 2.

Downloading a pdf using R generates corrupted file

I'd like to download the pdf file from this website using R. The file is being downloaded but I can't open it as it says the pdf is corrupted. Here is my code:
url <- "https://www.bchousing.org/research-centre/housing-data/new-homes-data"
download.file(url, 'New Homes Registry Report - June 2020.pdf', mode="wb")
Can you please let me know the issue?

Uploading release asset to Github is corrupting file

I am trying to automate our Github release process, and as part of it I am uploading release artifacts to Github release. Artifact I am uploading is a tar.gz file. I am using following python3.7 code to upload the artifact:
with open(filepath, 'rb') as file:
response = self._request_session.post(endpoint,
params={'name': local_artifact.filename},
files={local_artifact.filename: file})
Response status code I am getting is 201, which is expected as per Github upload release asset api documentation.
However, when I am downloading artifacts from Github, I am neither able to validate sha256 of the file, nor I am able open the tarball. On running tar -zxvf test.tar.gz I am getting following error:
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
I have already tested the file on local which I am uploading and that is working fine.
Can anyone please help me in identifying the problem here?
Here is response text I get after uploading file:
{
"url":"https://api.github.com/repos/c2tarun/upload_test_repo/releases/assets/17244134",
"id":17244134,
"node_id":"MDEyOlJlbGVhc2VBc3NldDE3MjQ0MTM0",
"name":"test.tar.gz",
"label":"",
"uploader":{
"login":"c2tarun",
"id":1129670,
...truncating for readability.
"type":"User",
"site_admin":false
},
"content_type":"multipart/form-data; boundary=1a13638ee5f5f57d303508eea4e64211",
"state":"uploaded",
"size":11969682,
"download_count":0,
"created_at":"2020-01-09T23:49:54Z",
"updated_at":"2020-01-09T23:50:18Z",
"browser_download_url":"https://github.com/c2tarun/upload_test_repo/releases/download/untagged-1baa5c7dd7f5a8d506cc/test.tar.gz"
}
Interesting update: Uploading same file multiple times, gives me different sha on downloading.
More Update: I thought that may be I am providing wrong Content-Type header for tar.gz file, so I created a zip file and used Content-Type as application/zip. I am still seeing same issue. Here are my request headers for zip file:
{
'User-Agent':'python-requests/2.22.0',
'Accept-Encoding':'gzip, deflate',
'Accept':'*/*',
'Connection':'keep-alive',
'Content-Type':'application/zip',
'Content-Length':'332',
'Authorization':'Basic xxxxxxxxx'
}
Thanks
You should set the Content-Type is 'application/tar+gzip' or debug with
file --mime-type -b test.tar.gz
command.

Download NASA satellite data using RCurl in R

I am trying to download a ncdf file using rCurl. Can anyone provide any advice on why this is not working?
require(RCurl)
require(ncdf4)
url <- "https://oceandata.sci.gsfc.nasa.gov/MODIS-Aqua/Mapped/Seasonal_Climatology/4km/sst/"
filename <-"A20021722014263.L3m_SCSU_NSST_sst_4km.nc"
download.file(paste0(url, filename),destfile = paste0("~/Desktop/", filename), method="curl")
setwd("~/Desktop/")
files<-dir(pattern="*.nc")
f<-nc_open(files[1])
Error in R_nc4_open: NetCDF: Unknown file format
Error in nc_open(files[1]) :
Error in nc_open trying to open file A20021722014263.L3m_SCSU_NSST_sst_4km.nc
It appears that the file downloaded is an error file in XML format? If you open it in Notepad, you'll see it contains stuff like
Sorry, an error has occurred. Use the back button to return to the previous page or go to the Ocean Color Home Page
Are you sure that the filename you're wanting to download actually exists in that URL?

r unable to download file from server

I am trying to download a pdf file that is stored in an internal server.
The url for this file is like this below
file_location <- "file://dory.lisa.org/research/data/test.pdf"
I tried downloading this file using the download.file option
download.file(file_location, "test.pdf",method='curl')
and i am getting an error.
curl: (37) Couldn't open file /research/data/test.pdf
Warning message:
In download.file(file_location, "test.pdf", method = "curl") :
download had nonzero exit status
I tried
url <- ('http://cran.r-project.org/doc/manuals/R-intro.pdf')
download.file(url, 'introductionToR.pdf')
And i have no problem downloading this file, but somehow it shows an error when I try to use the same approach to download a file on my server.
I'm guessing that the file does not exist at that location on your local drive. When I executed the couple of lines that downloaded from CRAN I get a pdf file in my User directory/folder. I then get success with this code:
url <- ('file://~/introductionToR.pdf')
download.file(url, 'NewintroductionToR.pdf')

Resources