Skip to content
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

Installation error ‘multiprocess’ is not exported by 'namespace:future' #3

Open
luddeluddis opened this issue Aug 14, 2023 · 3 comments

Comments

@luddeluddis
Copy link

luddeluddis commented Aug 14, 2023

Thanks for the work with this package! Unfortunately I've encountered an error during installation when following the recommended procedure on a Linux environment using the latest version of R (4.3.1). The specific error I receive is:
"Error: object ‘multiprocess’ is not exported by 'namespace:future'".

Upon searching for this error, I came across this StackOverflow post which mentions that the "multiprocess" function from the "future" package was deprecated for some time, and as of March 2023, it was officially removed. According to this GitHub page you can achieve the same thing by calling "multicore" or "multisession". Is there a way to modify the causeSims package to no longer depend on the "multiprocess" function?

I circumvent the error by first installing an earlier version of the future package:

remotes::install_version('future', '1.28.0',repos = 'http://cran.us.r-project.org')

and then installing the causeSims package adding the upgrade variable "never" to the installation process:

devtools::install_github('jean997/causeSims', upgrade = 'never')
@jean997
Copy link
Owner

jean997 commented Aug 25, 2023

Thanks for pointing this out! I wanted to let you know that I actually have a new package that is an extension of the causeSims package that you might find useful. You can find it here

https://jean997.github.io/simGWAS/

Just as a heads up - we are planning to change the package name soon as simGWAS is already taken on CRAN. If you would like to know when this happens, feel free to send me an email and I will add you to the announcement. My email is jvmorr at umich dot edu.

@GAUSS66-well
Copy link

Dr jean997,Thanks for the work with this package! Is there any other way to install the package of causeSims under version of R 4.3.1? This package is so important for me, because the loading of another R package requires the use of this package.However an error occurred when I installed on a Window environment.

The code:

install.packages("C:/Users/91267/Downloads/jean997-causeSims-1997e0a.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/91267/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers

  • installing source package 'causeSims' ...
    ** using staged installation
    ** R
    ** byte-compile and prepare package for lazy loading
    Error: object 'multiprocess' is not exported by 'namespace:future'
    Execution halted
    ERROR: lazy loading failed for package 'causeSims'
  • removing 'C:/Users/91267/AppData/Local/R/win-library/4.3/causeSims'
  • restoring previous 'C:/Users/91267/AppData/Local/R/win-library/4.3/causeSims'
    Warning in install.packages :
    installation of package ‘C:/Users/91267/Downloads/jean997-causeSims-1997e0a.tar.gz’ had non-zero exit status

#------------------------------------------------------------------------------------------------------------------------------------------

easyMRhelp::install_package_MR('causeSims')
Using github PAT from envvar GITHUB_TOKEN
Downloading GitHub repo jean997/causeSims@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/jean997/causeSims/tarball/HEAD' failed
Using github PAT from envvar GITHUB_TOKEN
Downloading GitHub repo jean997/causeSims@HEAD
Downloading package from url: http://cnsgenomics.com/software/gsmr/static/gsmr_1.0.9.tar.gz
── R CMD build ───────────────────────────────────────────────────────────────────────────────
✔ checking for file 'C:\Users\91267\AppData\Local\Temp\RtmpoBF95y\remotese7c5f821c26\gsmr/DESCRIPTION'
─ preparing 'gsmr':
✔ checking DESCRIPTION meta-information ...
✔ checking vignette meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a 'data/datalist' file should be added
─ building 'gsmr_1.0.9.tar.gz'

Installing package into ‘C:/Users/91267/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)

  • installing source package 'gsmr' ...
    ** using staged installation
    ** R
    ** data
    ** 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
    ** testing if installed package can be loaded from final location
    ** testing if installed package keeps a record of temporary installation path
  • DONE (gsmr)
    Downloading package from url: http://cnsgenomics.com/software/gsmr/static/gsmr_1.0.9.tar.gz
    Skipping gsmr, it is already being installed
    ── R CMD build ───────────────────────────────────────────────────────────────────────────────
    ✔ checking for file 'C:\Users\91267\AppData\Local\Temp\RtmpoBF95y\remotese7c2f177daa\jean997-causeSims-1997e0a/DESCRIPTION' ...
    ─ preparing 'causeSims':
    ✔ checking DESCRIPTION meta-information ...
    ─ checking for LF line-endings in source and make files and shell scripts
    ─ checking for empty or unneeded directories
    Omitted 'LazyData' from DESCRIPTION
    NB: this package now depends on R (>= 3.5.0)
    WARNING: Added dependency on R >= 3.5.0 because serialized objects in
    serialize/load version 3 cannot be read in older versions of R.
    File(s) containing such objects:
    'causeSims/results/res_fp.RDS' 'causeSims/results/res_mix1.RDS'
    'causeSims/results/res_pwr.RDS' 'causeSims/results/res_rev.RDS'
    ─ building 'causeSims_0.1.0.tar.gz'

Installing package into ‘C:/Users/91267/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)

  • installing source package 'causeSims' ...
    ** using staged installation
    ** R
    ** byte-compile and prepare package for lazy loading
    Error: object 'multiprocess' is not exported by 'namespace:future'
    Execution halted
    ERROR: lazy loading failed for package 'causeSims'
  • removing 'C:/Users/91267/AppData/Local/R/win-library/4.3/causeSims'
  • restoring previous 'C:/Users/91267/AppData/Local/R/win-library/4.3/causeSims'
    Warning message:
    In i.p(...) :
    installation of package ‘C:/Users/91267/AppData/Local/Temp/RtmpoBF95y/filee7c4bf83b88/causeSims_0.1.0.tar.gz’ had non-zero exit status

@jean997
Copy link
Owner

jean997 commented Oct 26, 2023

Can I ask what the dependent package is? The best solution is to switch over to the simGWAS package which has better functionality and is actively supported. Perhaps I can recommend this to the maintainer of the package you require.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants