New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error for install on windows 10 #111

Closed
sandyplus opened this Issue Jun 3, 2018 · 6 comments

Comments

Projects
None yet
2 participants
@sandyplus

sandyplus commented Jun 3, 2018

Dear Dan,
I tried to install ENMTools on windows 10, but got this error:
Error : object 'descendants' is not exported by 'namespace:phyloclim'
I also tried reinstalled phyloclim, but still got this error.
How can I install ENMTools on windows? Would you mind give me some suggestions?
Best regards,
sandy

PS:

install_github("danlwarren/ENMTools")
Downloading GitHub repo danlwarren/ENMTools@master
from URL https://api.github.com/repos/danlwarren/ENMTools/zipball/master
Installing ENMTools
"D:/Program Files/R-3.5.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/BNF-02/AppData/Local/Temp/RtmpaSDa7k/devtools354c3b254ca2/danlwarren-ENMTools-c1205e0"  \
  --library="D:/Program Files/R-3.5.0/library" --install-tests 

* installing *source* package 'ENMTools' ...
** R
** data
*** moving datasets to lazyload DB
** tests
** byte-compile and prepare package for lazy loading
Error : object 'descendants' is not exported by 'namespace:phyloclim'
ERROR: lazy loading failed for package 'ENMTools'
* removing 'D:/Program Files/R-3.5.0/library/ENMTools'
In R CMD INSTALL
Installation failed: Command failed (1)
@danlwarren

This comment has been minimized.

Owner

danlwarren commented Jun 4, 2018

Well the good news is that it isn't on your end. It seems as though phyloclim was updated recently, and the new version doesn't export the descendants function. I'll do something about that immediately.

@danlwarren

This comment has been minimized.

Owner

danlwarren commented Jun 4, 2018

Okay, I've got something up on the develop branch that may fix it. Feel free to give it a shot if you have a chance; it's going through checks on Travis CI right now.

@sandyplus

This comment has been minimized.

sandyplus commented Jun 4, 2018

Dear Dan,
I finally figured out how to install the "develop" branch.
However, I still can not install this due to rJava error.
I searched all over the world (I installed the x64 version of R and JRE, set up the JAVA_HOME, reinstalled rJava), but still cannot find out the solution.
Would you mind give me some suggestions?
Best regards,
Sandy
PS:

* installing *source* package 'ENMTools' ...
** R
** data
*** moving datasets to lazyload DB
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'ENMTools'
    finding HTML links ... 好了
    add.env                                 html  
    background.points.buffer                html  
    background.raster.buffer                html  
    background.shape.buffer                 html  
    background.test                         html  
    calc.B1                                 html  
    calc.B2                                 html  
    check.bg                                html  
    check.clade                             html  
    check.species                           html  
    combine.species                         html  
    drop.species                            html  
    enmtools.aoc                            html  
    enmtools.bc                             html  
    enmtools.clade                          html  
    enmtools.dm                             html  
    enmtools.ecospat.bg                     html  
    enmtools.ecospat.id                     html  
    enmtools.gam                            html  
    enmtools.glm                            html  
    enmtools.maxent                         html  
    enmtools.ppmlasso                       html  
    enmtools.rf                             html  
    enmtools.rf.ranger                      html  
    enmtools.species                        html  
    env.breadth                             html  
    env.evaluate                            html  
    env.overlap                             html  
    euro.worldclim                          html  
    geog.range.overlap                      html  
    iberolacerta.clade                      html  
    identity.test                           html  
    interactive.plot.enmtools.model         html  
    finding level-2 HTML links ... done

    interactive.plot.enmtools.species       html  
    marginal.plots                          html  
    moses.list                              html  
    node.overlap                            html  
    point.overlap                           html  
    rangebreak.blob                         html  
    rangebreak.linear                       html  
    rangebreak.ribbon                       html  
    raster.breadth                          html  
    raster.cor                              html  
    raster.cor.matrix                       html  
    raster.cor.plot                         html  
    raster.overlap                          html  
    raster.pca                              html  
    raster.resid                            html  
    raster.standardize                      html  
    species.from.file                       html  
    trim.dupes.by.raster                    html  
    visualize.enm                           html  
    visualize.overlap                       html  
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error: package or namespace load failed for 'ENMTools':
 .onLoad failed in loadNamespace() for 'rJava', details:
  call: inDL(x, as.logical(local), as.logical(now), ...)
  error:  unable to load shared object ‘D:/Program Files/R-3.5.0/library/rJava/libs/i386/rJava.dll’::
  LoadLibrary failure:  %1 is not a valid Win32 application.

error: LOAD failed
停止执行
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'D:/Program Files/R-3.5.0/library/ENMTools'
* restoring previous 'D:/Program Files/R-3.5.0/library/ENMTools'
In R CMD INSTALL
Installation failed: Command failed (1)
@danlwarren

This comment has been minimized.

Owner

danlwarren commented Jun 4, 2018

Did you see this blog post?

http://enmtools.blogspot.com/2018/05/issues-with-installing-enmtools-under.html

The error message is slightly different, but it might still help.

@sandyplus

This comment has been minimized.

sandyplus commented Jun 5, 2018

Thanks Dan.
Finally, I fixed the error.
I removed all PATH related to "java", then Add jvm.dll to PATH (adding "%JAVA_HOME%\jre\bin\server;" to PATH).
After that, I set up the JAVA_HOME in R:
Sys.setenv(JAVA_HOME="C:\\Program Files\\Java\\jdk1.8.0_171\\").

It works for me perfectly.
Would you mind add this post to your blog, I think it is useful for your readers who are using windows.
Best regards.
sandy

@danlwarren

This comment has been minimized.

Owner

danlwarren commented Jun 7, 2018

Good to hear! I'll add your fix to the discussion on the blog.

@danlwarren danlwarren closed this Jun 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment