openml / openml-r

R package to interface with OpenML
http://openml.github.io/openml-r/
Other
96 stars 37 forks source link

uploadOMLDataSet fails (Error 135) #203

Closed HeidiSeibold closed 8 years ago

HeidiSeibold commented 8 years ago

I tried uploading a data set

data(CHFLS, package = "HSAUR3")
dsc <- "The Chinese Health and Family Life Survey sampled $60$ villages and urban 
neighborhoods chosen in such a way as to represent the full geographical and 
socioeconomic range of contemporary China.
This data set is taken from R package HSAUR3 (version 1.0-5)"
cit <- "William L. Parish, Edward O. Laumann, Myron S. Cohen, Suiming Pan, Heyi Zheng, 
Irving Hoffman, Tianfu Wang, and Kwai Hang Ng. (2003), Population-Based Study of 
Chlamydial Infection in China: A Hidden Epidemic. Journal of the American Medican 
Association, 289(10), 1265–1273."
desc_chfls <- makeOMLDataSetDescription(name = "CHFLS", 
                                        description = dsc, 
                                        creator = "Chinese Health and Family Life Survey",
                                        contributor = "Torsten Hothorn and Brian S. Everitt",
                                        collection.date = as.POSIXct("2015-07-28"),
                                        language = "English",
                                        licence = "GPL-2", 
                                        url = "https://cran.r-project.org/web/packages/HSAUR3/",
                                        default.target.attribute = NA_character_,
                                        citation = cit, 
                                        original.data.url = "http://www.spc.uchicago.edu/prc/chfls.php",
                                        tags = "R")

chfls_oml <- makeOMLDataSet(desc = desc_chfls, 
                            data = CHFLS, 
                            colnames.old = colnames(CHFLS), 
                            colnames.new = colnames(CHFLS),
                            target.features = c("R_income", "R_happy", "A_income"))
uploadOMLDataSet(chfls_oml, 
                 description = desc_chfls)

but it fails

> uploadOMLDataSet(chfls_oml, 
+                  description = desc_chfls)
Do you really want to upload the dataset? (yes|no)
yes
Uploading data set to server.
Uploading to 'http://api_new.openml.org/v1/data' to '<mem>'
Error in parseXMLResponse(response, "Uploading dataset", c("upload_data_set",  : 
  Error (code = 135) in server / XML response for: Uploading dataset
        Please provide description xml.

> traceback()
5: stop(obj)
4: stopf("Error (code = %i) in server / XML response for: %s\n\t\t%s.\n\t\t%s", 
       code, msg, xmlRValS(doc, "/oml:error/oml:message"), ifelse(is.null(extra), 
           "", extra))
3: parseXMLResponse(response, "Uploading dataset", c("upload_data_set", 
       "response"), as.text = TRUE)
2: uploadOMLDataSet.OMLDataSet(chfls_oml, description = desc_chfls)
1: uploadOMLDataSet(chfls_oml, description = desc_chfls)

The same happened with the tutorial example. Is this a problem on the R or on the server side?

HeidiSeibold commented 8 years ago

Maybe connected to openml/OpenML#263 ?

jakobbossek commented 8 years ago

I cannot reproduce this. I get

Loading OpenML
Uploading data set to server.
Uploading to 'http://www.openml.org/api/v1/data' to '<mem>'
Data set successfully uploaded. Data set ID: 6210

Which branch are you working on?

jakobbossek commented 8 years ago

By the way error 135 indicates a missing dataset description XML file (see the API docs).

janvanrijn commented 8 years ago

I think it is fixed by now? Server had a full SDD, I resolved this.

2016-03-21 12:26 GMT+01:00 Jakob Bossek notifications@github.com:

By the way error 135 indicates a missing dataset description XML file (see the API docs http://www.openml.org/api_docs/#!/data/post_data).

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/openml/openml-r/issues/203#issuecomment-199232923

jakobbossek commented 8 years ago

Thx for the info @janvanrijn. Closing. Reopen if you still encounter an error.