dyplr error in q2-Breakaway

Hi @Amy_Willis and possibly others,

I'm having an issue with q2-breakaway in QIIME 2019.10.0. Specifically, Im getting errors with dyplr (see below). Im not sure if this is a complier problem, or something in conflict since hte last breakaway version I can find was for 2018.8. Any advice would be appreciated.

Best,
Justine

Verbose output below:

Running external command line application(s). This may print messages to stdout and/or stderr.
The command(s) being run are below. These commands cannot be manually re-run as they will depend on temporary files that no longer exist.

Command: run_new_richness.R /var/folders/bw/q064ds0d2795_6mxnrssf0l1gkw0rj/T/tmp79usq_in/table.tsv /var/folders/bw/q064ds0d2795_6mxnrssf0l1gkw0rj/T/q2-AlphaDiversityFormat-ne3fy66f

R version 3.5.1 (2018-07-02) 
  1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1012 1013 1014  1015
1    0   14   10    0  198  635   14   11    0   14 2052  176   27 5044 11727
2    0    0    0    0  411  360   24  114  200  208    0  447  191    0    87
3  137  497   38  227  510  262   22  324  107  464  411  972  133  209   654
4    0    0    0   39  684  489    0 2516 1071 4334    0  369   27  189   612
5  254  302  950 1378  899  475 1219  167    0    0    0 1083   33   65   128
6    0    0   39  149   65   87    0  115  152  187  259 3922  157    0     0
  1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030
1    0   38   57    5   10   16   13    9   44   52   67   31  431  761  110
2   80   96    0    0    0    0   99  152    0    0  101  159  369  387   42
3  100   71   14    0  384 1344   71  131  175   96  331  406   74  190  628
4    0    0    0   20   26   39   52  104   67  110   34   49  642  910  244
5    0    0   24    7    0    0    0    0  861  143 2326 2787  171  165    0
6   64  141    0    7  791 2554  581  840  601  502    0    0  349  479    0
  1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045
1  304    4   10  891  969   42   11  185  768   62  401    7   20 1632 2364
2  680  344 1783 1056  963  425  558    0    0    0    0    0    0 4928 5214
3  914  228  362  342  339   83   94   48  161  136  993    0  166  208   90
4 1068  131  301  374  337  456  341   29  111   51  329    0  120  107   16
5   86  294  283 1922 1866  489  332  225   82    0    0    0  334    7    0
6  189    0    0    0    0  262  342    0    0    0  156    0 1180    0    0
  1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1057 1058 1059 1060 1061
1  902 2220  764 1544 1574  127   19   17 5230 1169  145 1556 2503   17   51
2 2280 6492    0    0    0    0 3247 3286   39  310  257    0    9    0    0
3   65   15   47   95   41    0  610  841   61  396  288    0    0  429  389
4   35   14  534  793   38    0   81    0    0    0  138    0    9 1220 2029
5    0    0    0    0    0    0  528  446    0    0  315 1170 1431    0   26
6    0    0    0    0  405  376    0    0    0  151  229    0    0    0   33
  1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
1 1050  211 3046 2046 3894 3830 1467 2890    0    0  469  103    6    0    7
2    0    0   37   43  613  394  316  467   76   58    0    0    0    0  176
3 4685 3928  714  607   41   31  255  772 1861 2088  535  301    0    0 1014
4 1409 1239 1158  931   32    0   77  173   43   67  172  137 1115  637  219
5    0    8  113   71   58   31 1214  436    0    0  561  142    0    0  687
6  231  140  114   95   40   16    0    0    0    0  305  201  268  137    0
  1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091
1    9    0    5 1346  718    0    3   19   97   18 1261  127  551  150   34
2  327    0    0  301  106    0    0 1277 1031    0    0    0   68    0    0
3 1739   43    0   55   23  198  110 1132  888   34   46   52  226 1855 2378
4  432  725  857    0    0  348  181  465  177    0    0   51  371  701  898
5   76  110   33   38   27  569  183   46   34  538  292 3385 1002 1667  209
6    0  259  184    0    0 2244  885    0    0    0    0   79  286  235  135
   1092  1093 1094 1095  1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106
1 28267 16016  168 1131 16322 2537 1577 2722   10    3   36   44    0   32   18
2     0     0    0    0   251  487   42   70  139   70  271  312    0    0   40
3     0     0   78  569   146  113    0    0    0    0    0    0   26  152  734
4     0     0  287 1973     0    0   30   35    0    0 1204 1016    0   35  935
5     0     0 2572 1142   189  230    0    0    0    0 1318  166    0    0  270
6     3     0  350 2481     0    0   48   41    0    0    0    0    0   42  490
  1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121
1    7 1521 1693    8   27  192  171    5    0   48   35  234  271   33    4
2   72    0    0    0    0    0   18    0    0    0    0  178  234 3116 1069
3 1539 3389 2795  186  293 2980 1174 1006  504   90  114   15    0 1388 1174
4 1488  108   91 1622 2398  999  327  208  116  444  398    0   14  130  117
5    0  527  626  110    0    0   14    0    0   82   54  140  103 1132  260
6  523 4372 4172  332   18   32    0  250  117  908  721    0   27    0    0
  1122 1123 1124 1125 1126 1127 1128 1129 1130  1132  1133 1134 1135 1136 1137
1 1432  918   58   58   49   37  603  300 5014    27    69   33  100  262  193
2 1288  957  206  231  286  344  936  821   32 11707 20594    0  156    0    0
3  141   90  361  419  389  594  541  290   73     0     0  775  603    0    0
4   90   38    0   27  194  288  569  278   15     0     0  292  365  129   66
5  597  446  174  221  221  284    0    0   29     2    13 2153 4625 6468 3310
6    0    0  637  533  147  215  224  149   27     0     0    0  192    0   54
  1138 1139 1140 1141 1142 1143 1144  1145 1146 1147 1148 1149 1150 1151 1152
1 2499   67   41   42   17   64  297   196 1958  306  441  269    0    0    5
2    0    0    0    0    0    0 1832  1556 1596  857    0    0  202  346   80
3 1999 1347   84  149   24   71 1018  1191 2210  910  248  287  569  558   86
4  968  574 1729 3306   18  106 9746 10937 2220 1584  141  104  500  593   20
5    0    0  805  617    0    0    0     0 1740  534    0    0  188   76    0
6  135   96    0    0    0    0    0     0  724  403   80  110  500  927   40
  1153 1154 1155 1156 1157 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
1   11  249   37   22   42    6 5564 3698 1731  131   10   15  125   15    0
2  145    0    0   32  125  323 6088 3502  502  636  101  444    0    0    0
3  233   64    0   93  252  101  275  311  815 1076   93  405  105  219 1788
4   49    0    0  117  347   35  537  427    0    0   16   41   65   95  536
5    0    0    0    0    0  204   11    4    0    0    0    0    0    0   71
6   89 6357 1733   94  253  487    0    0  332  513  221  832  330 2276  481
  1169 1170 1171 1172 1173 1175 1176 1177 1178 1179 1180 1181 1182 1183 1185
1    0    0   12 1936 1999    3   30   52  415  355  538  226  164   30  410
2    0 1912 1164    0    0    0 1226 1418    0    0    0    0  299  125    0
3 2341 1187  880  270  354  197  638  716 1053  957    0    0  355  759  329
4  706  398  250   16   19    0    0    0  930  823    0    0  122  264   83
5   81  439  273  160  163    0    0   32   55   55 1432  251    0   77 1192
6  706  309  227    0    0   89    0    0    0    0 1608 1494  121  219  387
   1186 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1202
1 12471   67    9  328  475  937  314   71   84  247   55    0    0    8  604
2   356  571  338    0    0    0    0  499  225  268  139  558  272  136  217
3     0   95   74  188  419  118   26 3584 1745  327  486  386  294  176  201
4   658    0    0   17   33  287  104  468  247   38   33  297  161   36  243
5     0    0    0  137   24    0    0    7    0    0    0    0    0 2920    0
6   973  172  116  215  323  229  116  243  262    0    0  648  350    0    0
  1203 1204 1205 1206 1207 1208 1209 1210 1211 1213 1214 1215 1216 1217 1219
1 1671    7    8   32   20    8    6   24   19   45 2273 1587   20    7  466
2  840   15    0  155  190    0    0  389  301  122    0    0   25  258  417
3  232  642  330  133   86    0    0  271  296 1218  229  239   55  213  276
4  421   57   41   36   33    0    0  104  106 1850  362  439    0   46  884
5    0    0    0    0    0   12    0  158  133    0  105   77  338  947    0
6    0    0    0    0    0  790  626   80   43   80  139  147   39  435 4015
  1220 1222 1223 1224 1225 1227 1228 1231 1232
1  204   10    8    6    0 5677   69   24  938
2  363    0    0   14    0    0  253    0   75
3    0  478  433    0    0   23  680   43    0
4   28  296  234   18   43    0  116   70    0
5    7    0    0  478 1306 9378    0  281    0
6    0  503  460    0    0   10  132    0    0
ade4 ape askpass assertthat backports base BH Biobase BiocGenerics BiocParallel biomformat Biostrings bitops brew callr cli clipr clisymbols cluster codetools colorspace commonmark compiler covr crayon crosstalk curl dada2 data.table datasets DelayedArray desc devtools digest dplyr DT ellipsis evaluate fansi farver foreach formatR fs futile.logger futile.options GenomeInfoDb GenomeInfoDbData GenomicAlignments GenomicRanges ggplot2 gh git2r glue graphics grDevices grid gtable htmltools htmlwidgets httr hwriter igraph ini IRanges isoband iterators jsonlite labeling lambda.r later lattice latticeExtra lazyeval lifecycle magrittr MASS Matrix matrixStats memoise methods mgcv mime multtest munsell nlme openssl parallel permute phyloseq pillar pixmap pkgbuild pkgconfig pkgload plogr plyr praise prettyunits processx promises ps purrr R.cache R.methodsS3 R.oo R.utils R6 rcmdcheck RColorBrewer Rcpp RcppParallel RCurl remotes reshape2 rex rhdf5 Rhdf5lib rlang roxygen2 rprojroot Rsamtools rstudioapi rversions S4Vectors scales sessioninfo ShortRead snow sp splines stats stats4 stringi stringr SummarizedExperiment survival sys tcltk testthat tibble tidyselect tools usethis utf8 utils vctrs vegan viridisLite whisker withr xml2 xopen XVector yaml zeallot zlibbiocYou have tibble installed!

You have magrittr installed!

Thank god! devtools is already available

Great! phyloseq is already available

Attempting to make phyloseq object...

[1] "otu_table"
attr(,"package")
[1] "phyloseq"
Downloading GitHub repo adw96/breakaway@master
dplyr   (0.8.3 -> 0.8.5 ) [CRAN]
ggplot2 (3.2.1 -> 3.3.0 ) [CRAN]
R.rsp   (NA    -> 0.43.2) [CRAN]
Skipping 1 packages not available: phyloseq
Installing 3 packages: dplyr, ggplot2, R.rsp
trying URL 'https://cloud.r-project.org/src/contrib/dplyr_0.8.5.tar.gz'
Content type 'application/x-gzip' length 1378766 bytes (1.3 MB)
==================================================
downloaded 1.3 MB

trying URL 'https://cloud.r-project.org/src/contrib/ggplot2_3.3.0.tar.gz'
Content type 'application/x-gzip' length 3031461 bytes (2.9 MB)
==================================================
downloaded 2.9 MB

trying URL 'https://cloud.r-project.org/src/contrib/R.rsp_0.43.2.tar.gz'
Content type 'application/x-gzip' length 839242 bytes (819 KB)
==================================================
downloaded 819 KB

* installing *source* package ‘dplyr’ ...
** package ‘dplyr’ successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang++  -I"/Users/jusdeb/miniconda3/envs/micc/lib/R/include" -DNDEBUG -I../inst/include -DRCPP_DEFAULT_INCLUDE_CALL=false -DCOMPILING_DPLYR -DRCPP_USING_UTF8_ERROR_STRING -DRCPP_USE_UNWIND_PROTECT -DBOOST_NO_AUTO_PTR  -I"/Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include" -I"/Users/jusdeb/miniconda3/envs/micc/lib/R/library/plogr/include" -I"/Users/jusdeb/miniconda3/envs/micc/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/jusdeb/miniconda3/envs/micc/include   -fPIC  -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden  -fmessage-length=0 -I/Users/jusdeb/miniconda3/envs/micc/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix  -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:658:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/gethostuuid.h:39:17: error: unknown type name 'uuid_t'
int gethostuuid(uuid_t, const struct timespec *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
                ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:665:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      getsgroups_np(int *, uuid_t);
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:667:27: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      getwgroups_np(int *, uuid_t);
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:730:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      setsgroups_np(int, const uuid_t);
                                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
In file included from RcppExports.cpp:4:
In file included from ./../inst/include/dplyr.h:4:
In file included from ../inst/include/dplyr/main.h:6:
In file included from ../inst/include/dplyr/workarounds/static_assert.h:17:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config.hpp:57:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/platform/macos.hpp:28:
In file included from /Users/jusdeb/miniconda3/envs/micc/lib/R/library/BH/include/boost/config/detail/posix_features.hpp:18:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:732:31: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
int      setwgroups_np(int, const uuid_t);
                                  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h:31:31: note: 'uid_t' declared here
typedef __darwin_uid_t        uid_t;
                              ^
5 errors generated.
make: *** [/Users/jusdeb/miniconda3/envs/micc/lib/R/etc/Makeconf:167: RcppExports.o] Error 1
ERROR: compilation failed for package ‘dplyr’
* removing ‘/Users/jusdeb/miniconda3/envs/micc/lib/R/library/dplyr’
* restoring previous ‘/Users/jusdeb/miniconda3/envs/micc/lib/R/library/dplyr’
Error: Failed to install 'breakaway' from GitHub:
  (converted from warning) installation of package ‘dplyr’ had non-zero exit status
Execution halted
Traceback (most recent call last):
  File "/Users/jusdeb/miniconda3/envs/micc/lib/python3.6/site-packages/q2cli/commands.py", line 328, in __call__
    results = action(**arguments)
  File "</Users/jusdeb/miniconda3/envs/micc/lib/python3.6/site-packages/decorator.py:decorator-gen-477>", line 2, in alpha
  File "/Users/jusdeb/miniconda3/envs/micc/lib/python3.6/site-packages/qiime2/sdk/action.py", line 240, in bound_callable
    output_types, provenance)
  File "/Users/jusdeb/miniconda3/envs/micc/lib/python3.6/site-packages/qiime2/sdk/action.py", line 383, in _callable_executor_
    output_views = self._callable(**view_args)
  File "/Users/jusdeb/miniconda3/envs/micc/lib/python3.6/site-packages/q2_breakaway/_alphas.py", line 54, in alpha
    run_commands([cmd])
  File "/Users/jusdeb/miniconda3/envs/micc/lib/python3.6/site-packages/q2_breakaway/_alphas.py", line 37, in run_commands
    subprocess.run(cmd, check=True)
  File "/Users/jusdeb/miniconda3/envs/micc/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run_new_richness.R', '/var/folders/bw/q064ds0d2795_6mxnrssf0l1gkw0rj/T/tmp79usq_in/table.tsv', '/var/folders/bw/q064ds0d2795_6mxnrssf0l1gkw0rj/T/q2-AlphaDiversityFormat-ne3fy66f']' returned non-zero exit status 1.

Plugin error from breakaway:

  Command '['run_new_richness.R', '/var/folders/bw/q064ds0d2795_6mxnrssf0l1gkw0rj/T/tmp79usq_in/table.tsv', '/var/folders/bw/q064ds0d2795_6mxnrssf0l1gkw0rj/T/q2-AlphaDiversityFormat-ne3fy66f']' returned non-zero exit status 1.

See above for debug info.
2 Likes

I think the core error is

error: unknown type name 'uuid_t'; did you mean 'uid_t'?

I found this same issue for dplyr: dplyr installation issues - #2 by technocrat - General - Posit Community
And this github comment: Unknown type name 'uuid_t' · Issue #256 · r-lib/fs · GitHub.

Do those help?

Does q2-Breakaway ship in a prebuilt conda package, because this looks like it's building from source?

Colin

1 Like

Hi @colinbrislawn,

Thanks! This is really helpful.

I've tried installing dyplr previously in a similar environment, and ran into a similar issue. It didnt work with the conda build or with the R build, for some reason. Ive been getting a lot of weird complier issues recently. :confused: So, Im not sure if a conda installation will work, but I'll try it and report back!

Best,
Justine

1 Like

I gave up on cran and checkpoint()/mran about 6 months ago.

conda config --add channels conda-forge
conda config --add channels defaults
conda config --add channels r
conda config --add channels bioconda
conda install rstudio
conda install r-tidyverse

It's changed my life!

But when build issues do crop up, I'm not much of an expert :crying_cat_face:

2 Likes