Getting the following error -> ImportError: DLL load failed while importing _arpack: The specified procedure could not be found - streamlit

Below are the SS of the error I got when running a python app on Streamlit.
Tried re-installing scipy but didn't work.

Related

Error while running R from commandlne ubuntu : error while loading shared libraries: libpcre.so.1: cannot open shared object file

Hi I am running R on Ubuntu : Getting this error:
/home/user/anaconda3/lib/R/bin/exec/R: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
I have installed anaconda recently, I have tried
$echo $LD_LIBRARY_PATH
It shows nothing. I also tried
$sudo find / lib | grep libpcre.so.1
I want to run R on Ubuntu. It was running fine before; any hints?

Fail to install RCall - Julia package

Following RCall's documentation, I ran Pkg.add("RCall") which looked to be working. Then, running using RCall gave:
WARNING: could not import StatsModels.Formula into RCall
ERROR: LoadError: RCall not properly installed. Please run Pkg.build("RCall")
#... few lines later
ERROR: Failed to precompile RCall [6f49c342-dc21-5d91-9882-a32aef131414] to C:\Users\jke4\.julia\compiled\v1.1\RCall\8GFyb.ji.
That's why I ran Pkg.build("RCall"):
┌ Error: Error building `RCall`:
│ ERROR: LoadError: R cannot be found. Set the "R_HOME" environment variable to re-run Pkg.build("RCall").
I believe, accordingly to RCall's documentation that I have to do a custom installation, but why can't am I able to simply install by Pkg.add("RCall") like it's suppose to be done?
RCall.jl can simply be installed with
Pkg.add("RCall")
Note:
Julia version is 1.1.0.
using Conda does work.
There is no R version installed in my Windows computer
I do understand what is my error message and how I can deal with it. My question is why do I have it whereas I wasn't suppose to, quoting RCall's documentation:
RCall.jl will automatically install R for you using Conda if it doesn't detect that you have R 3.4.0 or later installed already.
Update
Alright, I've done what #Cameron Bieganek suggests: pkg> pin StatsModels#0.5
And it seems to work for a moment. However, after doing ] up, accordingly with the issue I had in this question.
using RCall now gives:
ERROR: LoadError: RCall not properly installed. Please run Pkg.build("RCall")
and Pkg.build("RCall"):
┌ Error: Error building `RCall`:
│ ERROR: LoadError: IOError: stat: invalid argument (EINVAL)
This time I can't get what's the error.
GitHub
Please note that this question is also referenced on GitHub RCall.jl.

tfestimators error every time I call feature_columns()

I have a fresh Windows 10 install of R, RStudio, Python 3.6.8, TensorFlow, and the tfestimators library. However, whenever I execute the feature_columns() function, for example:
feature_cols <- feature_columns(column_numeric("test_column_name"))
...I get this error message:
Error in py_get_attr_impl(x, name, silent) :
AttributeError: module 'tensorflow.python.feature_column.feature_column' has no attribute 'numeric_column'
Any idea how to solve this?
I've restarted RStudio and Windows several times, reinstalled Python (This error occurs using both versions I've tried, 3.7 and 3.6.8), reinstalled the tfestimators package, and reinstalled TensorFlow. Same error always occurs.

Tensorflow works in R command line but not Rstudio

I have installed the tensorflow package.
The following commands work fine in R command line
library(tensorflow)
sess = tf$Session
However when I run the same 2 linesin Rstudio I get the following error
Error: Python module tensorflow was not found
Detected Python configuration:
...
numpy: [NOT FOUND]
I suspect its numpy related but I have no idea.
This is my Rstudio information
rstudio::versionInfo()
$version
[1] ‘0.98.1103’
$mode
[1] "desktop"
Do I need to use a different version of Rstudio or is there more setup required to get tensorflow to work?
A bit more details after reading
https://github.com/rstudio/tensorflow/issues/87
import('numpy')
Error in py_module_import(module, convert = convert) : ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: DLL load failed: The specified path is invalid.
**************** FINAL EDIT *********************
I got this to work. But I have no idea why or how.
During install_tensorflow() in Rstudio, you are prompted to add the following to your PATH so I did
usr\appdata\local\programs\python\python36\Scripts
I removed it from my PATH and successfully ran tensorflow in Rstudio.
However, I added it back subsequently and could not replicate the error.
In the end I still don't know what is broken in Rstudio or what fixed it
Please use the following command to reload dynamic library paths
sudo ldconfig

Building error with IJulia

I used to use Julia in Jupyter notebook. I uninstalled yesterday the .julia directory because of other issues and after Pkg.add(IJulia) Im getting a building error related to ZMQ. the full error is below.
julia> Pkg.build("ZMQ")
INFO: Building Homebrew
Already up-to-date.
INFO: Building ZMQ
Warning: staticfloat/juliatranslated/zeromq32-3.2.5 already installed, it's just not linked.
Error: Formulae found in multiple taps:
* staticfloat/juliadeps/zeromq32
* staticfloat/juliatranslated/zeromq32
Please use the fully-qualified name e.g. staticfloat/juliadeps/zeromq32 to refer the formula.
=================================[ ERROR: ZMQ ]=================================
LoadError: failed process: Process(`/Users/pacagal/.julia/v0.5/Homebrew/deps/usr/bin/brew link staticfloat/juliatranslated/zeromq32 --force`, ProcessExited(1)) [1]
while loading /Users/pacagal/.julia/v0.5/ZMQ/deps/build.jl, in expression starting on line 35
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: ZMQ had build errors.
- packages with build errors remain installed in /Users/pacagal/.julia/v0.5
- build the package(s) and all dependencies with `Pkg.build("ZMQ")`
- build a single package by running its `deps/build.jl` script
================================================================================
I have also run the build.jl file but I am getting an error too.
I was having the same issue this morning. In the terminal I ran brew install zmq and that resolved the issue.
I still had to run julia>Pkg.build("Nettle") after installing zmq and after that IJulia is running fine.

Resources