yizhuo-wang / CASi

3 stars 0 forks source link

Error Running Tutorial #1

Closed osmanmerdan closed 3 months ago

osmanmerdan commented 3 months ago

Hi, Thank you for this fantastic tool. I wanted to use it for one of my projects. I tried to install and use it on two different systems and encountered the same error. The first system was Ubuntu 22.04, and the second was MacOS M1 Sanoma 14.5. I assume this error is related to the TensorFlow package. Unfortunately, the error is not very informative. And I also want to ask if you plan to create a docker image for the package.

When I run the <l1 <- CrossTimeAnnotation(l1)> code in the tutorial, I get the following error.

Error in (function (x, num_classes = NULL) : unused arguments (y = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,

Session info: R version 4.4.0 (2024-04-24) Platform: aarch64-apple-darwin20 Running under: macOS Sonoma 14.5

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Berlin tzcode source: internal

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] Matrix_1.7-0 CASi_0.1.0

loaded via a namespace (and not attached): [1] vctrs_0.6.5 cli_3.6.2 rlang_1.1.4
[4] zeallot_0.1.0 png_0.1-8 generics_0.1.3
[7] jsonlite_1.8.8 glue_1.7.0 keras_2.15.0
[10] fansi_1.0.6 grid_4.4.0 tfruns_1.5.3
[13] tibble_3.2.1 base64enc_0.1-3 lifecycle_1.0.4
[16] whisker_0.4.1 compiler_4.4.0 dplyr_1.1.4
[19] Rcpp_1.0.12 pkgconfig_2.0.3 rstudioapi_0.16.0
[22] lattice_0.22-6 R6_2.5.1 reticulate_1.37.0
[25] tidyselect_1.2.1 utf8_1.2.4 pillar_1.9.0
[28] tensorflow_2.16.0.9000 magrittr_2.0.3 tools_4.4.0
[31] withr_3.0.0

elegantmedstu commented 3 months ago

Yes, I also encountered the same problem. Can I specify the TensorFlow version

elegantmedstu commented 3 months ago

you can use this:install_tensorflow(version = "2.14")

osmanmerdan commented 3 months ago

you can use this:install_tensorflow(version = "2.14")

you can use this:install_tensorflow(version = "2.14")

@elegantmedstu Thank you; it worked!