error installing TSA package for R on RStudio - linux

so I've been struggling with this issue for a while now, and I cannot seem to find this issue anywhere else on the internet.
I am running:
Linux Mint 12(based on Ubuntu 11.10)
The latest version of R(2.15.1)
RStudio(0.96.331)
Both R and RStudio are the latest versions, so my issues with installing TSA are not based on an outdated version of R.
Here is the error message I am getting when I try to install TSA through RStudio(I installed PerformanceAnalytics and xts without any issues):
installing source package ‘TSA’ ...
** Creating default NAMESPACE file
** R
** data
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'Matrix', details:
call: assignInNamespace("..Old..as.matrix", base::as.matrix, ns = "base")
error: locked binding of ‘..Old..as.matrix’ cannot be changed
Error : package ‘mgcv’ could not be loaded
ERROR: lazy loading failed for package ‘TSA’
removing ‘/home/client/R/i686-pc-linux-gnu-library/2.15/TSA’
Warning in install.packages :
installation of package ‘TSA’ had non-zero exit status
I have checked my version of mgcv and it is the latest(I checked on my Software Manager and it is installed as well as the latest version).
I really have no idea of what to do now. I contemplated installing TSA manually onto my system itself, but I couldn't find a reliable website that explains how to install packages directly to R itself.
All assistance with this issue will be greatly appreciated.

Per the (clear) error message Error : .onLoad failed in loadNamespace() for 'Matrix', details:, you need a new Matrix package.
You could try http://cran.r-project.org/bin/linux/ubuntu if your Mint system mixes with Ubuntu. Else compile Matrix from source.

Related

Installing rjags on Fedora 33

I'm trying to install rjags on a Fedora 33 system running R 4.0.3. I've installed JAGS 4.3.0 from source and can run the software from the command line, but when I try to install the package in R, I get this error:
checking version of JAGS library... link error
configure: error: Runtime link error: See the INSTALL file for help
ERROR: configuration failed for package ‘rjags’
I've followed this tutorial for building an installing on Fedora, and have all the expected directories under /usr/local/lib64, but get the same errors.
I've also followed this tutorial which specifies the various file locations - also get the same errors.
Finally, I found this which gives some options under section 3, but none of those worked.
I stumbled across a solution here that seems to work:
https://github.com/cran/rjags/blob/master/INSTALL
Installing rjags with the argument below seems to have worked:
> install.packages("rjags", configure.args="--enable-rpath")

Coral Edge TPU USB Accelerator driver fails to install

I'm trying to install and test my Coral Edge TPU. I'm following the instructions here: https://coral.ai/docs/accelerator/get-started/
The first step is to install drivers from the coral website, but I'm getting the following errors. I've tried running with and without admin, and uninstalling and installing again, but I get the same errors.
Has anyone else run into this issue? I'm on Windows 10.
Installing UsbDk
Installing Windows drivers
Microsoft PnP Utility
Adding driver package: coral.inf
Driver package added successfully.
Published Name: oem69.inf
Adding driver package: Coral_USB_Accelerator.inf
Failed to add driver package: The hash for the file is not present in the specified catalog file. The file is likely corrupt or the victim of tampering.
Adding driver package: Coral_USB_Accelerator_(DFU).inf
Failed to add driver package: The hash for the file is not present in the specified catalog file. The file is likely corrupt or the victim of tampering.
Total driver packages: 3
Added driver packages: 1
Installing performance counters
Info: Provider {aaa5bf9e-c44b-4177-af65-d3a06ba45fe7} defined in
C:\Users\User\Downloads\edgetpu_runtime_20201204\edgetpu_runtime\third_party\coral_accelerator_windows\coral.man is already installed in system repository. Info: Successfully installed performance counters in
C:\Users\User\Downloads\edgetpu_runtime_20201204\edgetpu_runtime\third_party\coral_accelerator_windows\coral.manCopying edgetpu and libusb to System32 1 file(s) copied.
1 file(s) copied.
Install complete
Press any key to continue . . .
This is a bug in the coral software. According to this thread https://github.com/google-coral/edgetpu/issues/260 they messed up a few things in the newest version (at the time 2.5.0). Starting with a fresh virtual environment and using the release 2.1.0 and corresponding driver for Python 3.7 (3.8, 3.9 not supported as of 2.1.0) fixed the issue.
From that thread:
For now, I suggest rolling back to the older driver:
https://dl.google.com/coral/edgetpu_api/edgetpu_runtime_20200728.zip
And you also need to remove your current tflite_runtime and downgrade
it to an older version (make sure to change to the right python
version):
pip3 install
https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp36-cp36m-win_amd64.whl
pip3 install
https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-win_amd64.whl
Apologies, we are working to get this fixed ASAP
we recently uploaded a new package this should fix this:
https://dl.google.com/coral/edgetpu_api/edgetpu_runtime_20210119.zip
source: coral.ai/software
You need to disable driver signature enforcement using the advanced boot menu. After that you can install it. You can do that by going to going to the Settings app >> go to the “Update and Security -> Recovery” page. Click on the “Restart now” button under the “Advanced Startup” section.

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-qrebbk1j\cffi\

Please read before marking as duplicate:
I am trying to install scrapy with pip but it gives me following error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-qrebbk1j\cffi\
I have tried every solution available on stackoverflow and nothing solves my error.
Yes,my pip is updated and setup_tools is also updated.
Everything was working fine and I did install other packages today itself but when I tried to install scrapy it gave this error and I have no idea what else i can do I tried everything I could do.
I followed every step on this answer
However, nothing works, please help.
I have finally resolved the issue, as it happens the package I was trying to install needs windows sdk 8.1 which got installed after installing the sdk.
However now this also installs a package called twisted for dependency I guess, which has some components written in C thus it needs a C compiler. which gave me this error
error: Setup script exited with error: command 'cl.exe' failed: No such file or directory
Hence, I could download a vs c++ compiler and it would solve the error. But a simpler solution would be downloading an already compiled version of the required packages which are mostly available on this site for windows. Although this is not official distribution so use it at your own risk.

Clearcase client installation issue- Linux RHEL5

I am not sure if it is the right place to ask this question. I have been trying to install clearcase client 8015 on a new machine with RHEL5u8 image. Tried googling a lot but could not resolve the issue as per suggestions on other forums.
It gets installed successfully. (As per the prompt)
listing of the views is done properly. (cleartool lsview)
When I do cleartool mount -all,
cleartool: Error: The MVFS file system is not installed or not loaded,
or the 'viewroot' is not mounted or is inaccessible: not a ClearCase
object.
logging in as root then starting clearcase, executing "/opt/rational/clearcase/etc/clearcase start"
OUTPUT:-
ClearCase is stopped Starting ClearCase ClearCase daemons: albd_server
FATAL: Error inserting mvfs
(/lib/modules/2.6.18-308.4.1.0.1.el5/kernel/fs/mvfs/mvfs.ko): Unknown
symbol in module, or unknown parameter (see dmesg) Loading the MVFS
was unsuccessful(8:1) /opt/rational/clearcase/etc/clearcase: Loading
MVFS failed
---- Please review /var/log/messages for information on the problem.
---- You may need to rebuild your kernel, rebuild your mvfs module,
---- and reboot your system. Information on how to do this can be found in
---- your Release Notes and file /var/adm/rational/clearcase/mvfs/mvfs_src/README.txt.
I have followed all the steps in /var/adm/rational/clearcase/mvfs/mvfs_src/README.txt but still cannot achieve anything.
Uninstallation also fails as:-
./linux_8015_uninstall
ERROR: Installation data has incompatible version 1.8.0; expected
1.7.0. Newer version of the Installation Manager was used on this system.
java.io.IOException: Installation data has incompatible version 1.8.0;
expected 1.7.0. Newer version of the Installation Manager was used on
this system.
00:01.33 ERROR [main]
com.ibm.cic.agent.core.application.HeadlessApplication run
Installation data has incompatible version 1.8.0; expected 1.7.0.
Newer version of the Installation Manager was used on this system.
java.io.IOException: Installation data has incompatible version 1.8.0;
expected 1.7.0. Newer version of the Installation Manager was used on
this system. java.io.IOException: Installation data has incompatible
version 1.8.0; expected 1.7.0. Newer version of the Installation
Manager was used on this system.
at com.ibm.cic.agent.internal.core.InstallRegistryParser.parse(InstallRegistryParser.java:160)
at com.ibm.cic.agent.internal.core.InstallRegistry.load(InstallRegistry.java:679)
at com.ibm.cic.agent.internal.core.InstallRegistry.openFile(InstallRegistry.java:485)
at com.ibm.cic.agent.internal.core.InstallRegistry.open(InstallRegistry.java:429)
Cannot proceed with installation, cannot uninstall either to try another version of clearcase, tried googling for the version mismatch of IBM installation manager but could not find anything addressing the issue properly for Linux.
Any suggestions on how to proceed? I am new to clearcase tool.
Usually, when I see only snapshot views are supported, and MVFS (for dynamic views) hasn't installed properly, I uninstall everything and try the all process from the start again.
In your case, that means installing or downgrading the IBM IM Installation Manager to the right version (similar to this issue).
It can be an IM update issue, as seen in this technote.
Further to #VonC's comment re: incompatible IM install,
review the following doc: MVFS not loading after kernel upgrade or is missing after installation on Linux.
I encountered a similar problem after an incompatible kernel path / ClearCase version. In my case, the error was similar to what is documented here in the post MVFS not installed - RHEL6 and I had to edit the kernel source to the same as the patch and rebuild. Then things stared up fine.
Review also the link How to manually restore a pre-built MVFS on Linux.
If the corresponding kerenl level is not provided it will not start and you will have to patch and make your own.

Installing bigalgebra package for R 3.0

I keep getting an error when I try to install the bigalgebra package.
'bigalgebra' is not available (for R version 3.0.1)
I already have the bigmemory package installed (I had the same problem for this one, and I can't remember how I resolved it) . I tried to get the bigalgebra_0.8.1.tar.gz but I can't find it. Also, on R forge it isn't available (https://r-forge.r-project.org/R/?group_id=556) (failed to built). Did anyone have the same problem.
Should I just install an older R version? Any help is much appreciated, thank you.
Since it's currently not in Cran, Bioconductor, nor successfully building on R-Forge, you will have to build it yourself from source.
The source of the big memory project can be checked out via SVN via the following command I obtained from the group page on R-forge:
svn checkout svn://svn.r-forge.r-project.org/svnroot/bigmemory/
This will create a directory called bigmemory. The bigalgebra package is found in bigmemory/pkg/bigalgebra.
Before going any further, you will need both the BLAS and Boost libraries installed on your OS, otherwise installation will fail.
From R you can then directly install the package from the directory:
install.packages("bigmemory/pkg/bigalgebra/", repos=NULL, type="source")
I was successfully able to build and install it on R 3.0.0 on Mac OSX.

Resources