Git Product home page Git Product logo

Comments (48)

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024 3

The CRAN maintainers don't have the latest version of BOOM published for linux on x64. The workaround is to download the package source and
MAKEFLAGS="-j 24" R CMD INSTALL Boom_0.8.tar.gz

from causalimpact.

timandrews335 avatar timandrews335 commented on May 4, 2024 1

The CRAN maintainers don't have the latest version of BOOM published for linux on x64. The workaround is to download the package source and
MAKEFLAGS="-j 24" R CMD INSTALL Boom_0.8.tar.gz

Thank you

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

I tried

library(Boom) 
library(CausalImpact)```

still getting the same error...

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

Just tried that - still getting the same error (???)
I have the latest version of Rstudio as well - just double checked that.

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

I double checked that I have the latest version of Boom as well - it is 0.8

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

I think my initial problem is that BoomSpikeSlab is not the latest version

There are binary versions available but the source versions are later:
binary source needs_compilation
BoomSpikeSlab 0.9.0 1.0.0 TRUE
bsts 0.7.1 0.8.0 TRUE

But reinstalling "BoomSpikeSlab" fails with this error:

logit_spike_slab_wrapper.cc:7:10: fatal error: 'cpputil/Ptr.hpp' file not found
#include "cpputil/Ptr.hpp"

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

Thanks much for checking !

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

For now, I reinstalled R.3.3 and am using those libraries... I look forward to getting news on this though since I know now that the problem is that I can't update my BoomSpikeSlab package

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

Sorry for late reply: Boom upgrades to latest version successfully, but after that BoomSpikeSlab does not upgrade, it fails. And i believe after that, both btst and Causal Impact failed to upgrade..

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

merveakbas avatar merveakbas commented on May 4, 2024

Ah - thanks much for the update!!! - yeah let me check out and I will report.

from causalimpact.

timandrews335 avatar timandrews335 commented on May 4, 2024

I'm getting the same error with Ptr.hpp, but on Ubuntu 18.04 and a first installation of CausalImpact. I see the issue both on R 3.4 (in the bionic repo) and after adding the official R repo and upgrading to 3.5.

On Windows 10 and R 3.4, CausalImpact installed fine.

from causalimpact.

acorso522md avatar acorso522md commented on May 4, 2024

Where do I get the relevant package source for linux? Your naming convention here lines up with the R version on CRAN but I can't reuse that one it would seem.

from causalimpact.

xbeta avatar xbeta commented on May 4, 2024

I am not sure who owns BoomSpikeSlab. The Github repo is a mirror.

But I face similar problem when installing on my macOS


Error: package or namespace load failed for ‘BoomSpikeSlab’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/r_libs/BoomSpikeSlab/libs/BoomSpikeSlab.so':
  dlopen(/r_libs/BoomSpikeSlab/libs/BoomSpikeSlab.so, 6): Symbol not found: __ZN4BOOM9GlobalRng3rngE
  Referenced from: /r_libs/BoomSpikeSlab/libs/BoomSpikeSlab.so
  Expected in: flat namespace
 in /r_libs/BoomSpikeSlab/libs/BoomSpikeSlab.so

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

xbeta avatar xbeta commented on May 4, 2024

@steve-the-bayesian

Thanks for helping, but I still face a few issues similar to this thread about missing header files.

from causalimpact.

xbeta avatar xbeta commented on May 4, 2024

@steve-the-bayesian After I run brew uninstall binutils, everything seems to work again :-)

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

juliamnh avatar juliamnh commented on May 4, 2024

Hi @steve-the-bayesian,

I also have the issue that CausalImpact won't install Unfortunately the "brew uninstall binutils" doesn't work for me. I get "Error: No such keg:/usr/local/Cellar/binutils"

Do you know how I should go about resolving this issue?

Thanks!

Screenshot 1: trying to install CausalImpact
Screenshot 2: trying to install BoomSpikeLab separately

Note that the package Boom is loaded in my library, but then still these packages won't install.

Screenshot 1:
image 1

Screenshot 2:
image 2

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

juliamnh avatar juliamnh commented on May 4, 2024

Thank you Steve! I don't think I installed it as a standalone. Yesterday, restarting the Rsession didn't help, for some reason, a couple more attempts today did the trick. No idea why, but it seems to work now! I'm gonna remember your suggestions if I run into this again (or my coworkers..). Cheers!

from causalimpact.

keniatw avatar keniatw commented on May 4, 2024

Coming very late in the discussion, but I am facing the same errors. I successfully installed Boom, but bsts seems to fail every time, so CausalImpact doesn't install. Get the same messages as juliamnh above. Any suggestions so far? Running R and RStudion on Linux Ubuntu 18.04... Ugh!

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

keniatw avatar keniatw commented on May 4, 2024

Thank you, steve-the-bayesian!
I have a workshop soon and folks are supposed to install CausalImpact for it (I am a participant, not the instructor), so I will keep my fingers crossed and check from time to time. :)

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

keniatw avatar keniatw commented on May 4, 2024

Yay! I'd love to have it. I tried with the 0.8.0 tar.gz but didn't work either. Do you have an updated version I could try?

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

keniatw avatar keniatw commented on May 4, 2024

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

abelborges avatar abelborges commented on May 4, 2024

Hi, guys. With the current state of affairs, I was able to install Boom from CRAN but I'm still having trouble with bsts. The error message is similar to @keniatw's:

make: *** [/usr/lib64/R/etc/Makeconf:170: create_shared_state_model.o] Error 1
ERROR: compilation failed for package ‘bsts’

I'm running Fedora 30. Any ideas?

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

abelborges avatar abelborges commented on May 4, 2024

Thank you, Steve!

from causalimpact.

yxk4525 avatar yxk4525 commented on May 4, 2024

Hi @steve-the-bayesian : I'm also facing the same issue

make: *** [/usr/lib64/R/etc/Makeconf:170: create_shared_state_model.o] Error 1
ERROR: compilation failed for package ‘bsts’

Can you e-mail me the right set of packages?

Thanks,
Yash
[email protected]

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

abelborges avatar abelborges commented on May 4, 2024

@steve-the-bayesian It worked like a charm. Thank you once again

from causalimpact.

DeFilippis avatar DeFilippis commented on May 4, 2024

Hey guys, I'm on Mac OS, and I'm getting the error:

#include "cpputil/Ptr.hpp"
         ^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [logit_spike_slab_wrapper.o] Error 1
ERROR: compilation failed for package ‘BoomSpikeSlab’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/BoomSpikeSlab’**```

Did we ever figure out the solution? 

from causalimpact.

DeFilippis avatar DeFilippis commented on May 4, 2024

It works now if I install the packages from source from Steve's Google Drive, but surely that isn't how everybody has to resolve the issue? For future people installing from source, here's the code:

install.packages("Boom_0.9.4.tar.gz", repos = NULL, type="source")
install.packages("BoomSpikeSlab_1.2.2.tar.gz", repos = NULL, type="source")
install.packages("bsts_0.9.3.tar.gz", repos = NULL, type="source")

It appears you need to install the packages in that order due to dependencies.

from causalimpact.

DavideMagno avatar DavideMagno commented on May 4, 2024

Hi, I have tried to install Boom 0.9.5 both on a mac locally and on an Ubuntu 18.04 server as a pre-requisite for CasualImpact.

The Mac installation through CRAN was super smooth and took 5 seconds. On Ubuntu, I managed to install version 0.8 but I get errors for any 0.9.x version.

I report below the latest codes before breaking:
../inst/include/Eigen/src/Core/DenseCoeffsBase.h:650:34: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type {aka __vector(2) double}’ [-Wignored-attributes] return internal::first_aligned<int(unpacket_traits<DefaultPacketType>::alignment),Derived>(m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ERROR: compilation failed for package ‘Boom’

I have the latest g++ (v 7.5) hence nothing to be done on that side?
Thank you in advance

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

DavideMagno avatar DavideMagno commented on May 4, 2024

Hi Steve, after running the installation in the terminal, I found the following errors:

virtual memory exhausted: Cannot allocate memory cc1plus: out of memory allocating 488 bytes after a total of 4653056 bytes /usr/lib/R/etc/Makeconf:176: recipe for target 'LinAlg/VectorView.o' failed make: *** [LinAlg/VectorView.o] Error 1 make: *** Waiting for unfinished jobs....

Then

/usr/lib/R/etc/Makeconf:176: recipe for target 'Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_3.o' failed make: *** [Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_3.o] Error 1

And finally

/usr/lib/R/etc/Makeconf:176: recipe for target 'Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_2.o' failed make: *** [Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_2.o] Error 1

I checked the RAM availability and seems like I have 3.3GB, is that not enough?

                  total        used        free      shared  buff/cache   available
    Mem:           3.9G        320M        3.4G        628K        173M        3.3G
   Swap:            0B          0B          0B

from causalimpact.

steve-the-bayesian avatar steve-the-bayesian commented on May 4, 2024

from causalimpact.

alhauser avatar alhauser commented on May 4, 2024

Assuming this is resolved with current bsts versions.

from causalimpact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.