elbamos / largeVis

An implementation of the largeVis algorithm for visualizing large, high-dimensional datasets, for R
340 stars 63 forks source link

Error when installing largeVis on Ubunutu #61

Closed jsaintvanne closed 3 years ago

jsaintvanne commented 3 years ago

Hi, I have this error when I try to install your package like this install_github("elbamos/largeVis") :

** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘largeVis’:
 .onAttach failed in attachNamespace() for 'largeVis', details:
  call: checkBits()
  error: la fonction 'enterRNGScope' n'existe pas dans le package 'Rcpp'
Erreur : le chargement a échoué
Exécution arrêtée
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/largeVis’
Erreur : Failed to install 'largeVis' from GitHub:
  (converti depuis l'avis) installation of package ‘/tmp/RtmpptvoQp/file40d3768bc12b/largeVis_0.2.2.tar.gz’ had non-zero exit status
elbamos commented 3 years ago

Thanks, Julien. I’m working on a new version. Can you try installing from the develop branch and see if you still have the problem? Thanks.

On Mar 8, 2021, at 7:47 AM, Julien Saint-Vanne notifications@github.com wrote:

 Hi, I have this error when I try to install your package like this install_github("elbamos/largeVis") :

R inst byte-compile and prepare package for lazy loading help * installing help indices building package indices installing vignettes testing if installed package can be loaded from temporary location Error: package or namespace load failed for ‘largeVis’: .onAttach failed in attachNamespace() for 'largeVis', details: call: checkBits() error: la fonction 'enterRNGScope' n'existe pas dans le package 'Rcpp' Erreur : le chargement a échoué Exécution arrêtée ERROR: loading failed

  • removing ‘/usr/local/lib/R/site-library/largeVis’ Erreur : Failed to install 'largeVis' from GitHub: (converti depuis l'avis) installation of package ‘/tmp/RtmpptvoQp/file40d3768bc12b/largeVis_0.2.2.tar.gz’ had non-zero exit status — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
jsaintvanne commented 3 years ago

It may be a bad question but how can I install from an other branch if you know that pliz ? I found something to install from a release but not from a specific branch. I will test it immediatly when I have the right commandline.

Thanks for your fast answer and good luck for your work

jsaintvanne commented 3 years ago

Ho just find the following command install_github("elbamos/largeVis@develop")

jsaintvanne commented 3 years ago

I obtain this error with develop branch

  mutex mutex;
        ^~~~~
In file included from /usr/include/c++/8/mutex:43,
                 from /usr/local/lib/R/site-library/RcppArmadillo/include/armadillo:49,
                 from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadilloForward.h:49,
                 from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:31,
                 from largeVis.h:12,
                 from largeVis.cpp:1:
/usr/include/c++/8/bits/std_mutex.h:86:9: error: changes meaning of ‘mutex’ from ‘class std::mutex’ [-fpermissive]
   class mutex : private __mutex_base
         ^~~~~
make: *** [/usr/lib/R/etc/Makeconf:176: largeVis.o] Error 1
ERROR: compilation failed for package ‘largeVis’
* removing ‘/usr/local/lib/R/site-library/largeVis’
Erreur : Failed to install 'largeVis' from GitHub:
  (converti depuis l'avis) installation of package ‘/tmp/Rtmpwtcwc2/file483a37f1d0b5/largeVis_0.3.tar.gz’ had non-zero exit status

Thanks for your help

EDIT

It works when I install it from backoncran branch... Can I use it ?

elbamos commented 3 years ago

Hmm.... that’s really unexpected. What compiler are you using? Can you try reinstalling Rccp, RccpArmadillo, and RccpParallel and then try largevis?

On Mar 8, 2021, at 8:31 AM, Julien Saint-Vanne notifications@github.com wrote:

 I obtain this error with develop branch

mutex mutex; ^~~~~ In file included from /usr/include/c++/8/mutex:43, from /usr/local/lib/R/site-library/RcppArmadillo/include/armadillo:49, from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadilloForward.h:49, from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:31, from largeVis.h:12, from largeVis.cpp:1: /usr/include/c++/8/bits/std_mutex.h:86:9: error: changes meaning of ‘mutex’ from ‘class std::mutex’ [-fpermissive] class mutex : private __mutex_base ^~~~~ make: *** [/usr/lib/R/etc/Makeconf:176: largeVis.o] Error 1 ERROR: compilation failed for package ‘largeVis’

  • removing ‘/usr/local/lib/R/site-library/largeVis’ Erreur : Failed to install 'largeVis' from GitHub: (converti depuis l'avis) installation of package ‘/tmp/Rtmpwtcwc2/file483a37f1d0b5/largeVis_0.3.tar.gz’ had non-zero exit status Thanks for your help

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

elbamos commented 3 years ago

You can definitely use the backoncran branch.

I was also able to reproduce the issue you're seeing in the develop branch, which should have a fix later this week if not tonight.

elbamos commented 3 years ago

@jsaintvanne Can you try the version I have currently on the develop branch? It should resolve your issue.

elbamos commented 3 years ago

@jsaintvanne Just following-up about this... I've made some significant improvements recently, and would appreciate if you could let me know if your issue isn't resolved by what's currently up in develop. I'm going to close this in a few days if I don't hear from you.

jsaintvanne commented 3 years ago

Hello ! Sorry I can't answered before ! I think I now know why I had this issue : I'm on Ubuntu 18.10 and it is no longer maintain so I have a lot of problems with all packages...

elbamos commented 3 years ago

Ok. Please give the version in the develop branch a try and open a new issue if you still have trouble.