Comments (48)
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.
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.
from causalimpact.
I tried
library(Boom)
library(CausalImpact)```
still getting the same error...
from causalimpact.
from causalimpact.
Just tried that - still getting the same error (???)
I have the latest version of Rstudio as well - just double checked that.
from causalimpact.
I double checked that I have the latest version of Boom as well - it is 0.8
from causalimpact.
from causalimpact.
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.
from causalimpact.
Thanks much for checking !
from causalimpact.
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.
from causalimpact.
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.
from causalimpact.
from causalimpact.
Ah - thanks much for the update!!! - yeah let me check out and I will report.
from causalimpact.
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.
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.
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.
from causalimpact.
Thanks for helping, but I still face a few issues similar to this thread about missing header files.
from causalimpact.
@steve-the-bayesian After I run brew uninstall binutils
, everything seems to work again :-)
from causalimpact.
from causalimpact.
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.
from causalimpact.
from causalimpact.
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.
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.
from causalimpact.
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.
from causalimpact.
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.
from causalimpact.
from causalimpact.
from causalimpact.
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.
from causalimpact.
Thank you, Steve!
from causalimpact.
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.
from causalimpact.
@steve-the-bayesian It worked like a charm. Thank you once again
from causalimpact.
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.
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.
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.
from causalimpact.
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.
from causalimpact.
Assuming this is resolved with current bsts versions.
from causalimpact.
Related Issues (20)
- Burn-in iterations: is there any way to change the proportion of burn-in iterations of MCMC sampling? HOT 2
- Choose the predictor time series as the shifted series
- Several questions about the codes
- Different families of distributions - custom bsts HOT 1
- Statistically Testing the post-period two series or testing the Difference equals zero HOT 1
- `Plot` function cause R to crash for no particular error message HOT 3
- CausalImpact is masking the 'select' function from dplyr HOT 1
- BoomSpikeSlab installation failed | -DNDEBUG does not search in the correct /Boom/include directory HOT 1
- how to input control time series in causal impact
- multiple caampaign effects
- CausalImpact Simulation data HOT 1
- Error during installation - fails to install bsts HOT 4
- Effect of an intervention that took place during separate periods
- Error installing BoomSpikeSlab HOT 1
- Adding Gformula Function to Package HOT 3
- I can't get summury from date indexing data: 'NoneType' object has no attribute 'loc' HOT 1
- Testing for the Presence of Autocorrelation?
- Power Analysis for Geo experiments
- Is it possible for support on multivariate analysis (MBSTS)? HOT 1
- Error with Relative effect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from causalimpact.