I am trying to import csv file in Rstudio bu it is showing that Rcpp packege is not installed n when i tried it to install using install.packages("Rcpp") error getting as:In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
Related
I get this error when trying to run a PyQt5 Application, I keep getting it and I think it's when I use pyuic5 to export code from QT Designer and then try to run it.
from .shiboken2 import *
ImportError: DLL load failed: The specified procedure could not be found.
I have used pip freeze to find the versions of shiboken2 and pyside2 and they are both the same version.
I installed Python 3.7 + And it works.
I have a Python/OpenCV project and I am trying to use the xfeatures2d module from opencv-contrib. I am using a Mac and my IDE is PyCharm. I have installed the packages opencv-contrib-python and opencv-python through Preferences > Project Intepreter.
However, when I try to run the code below, I get a the following error:
import cv2
import numpy as np
img = cv2.imread("NotreDame.jpg", 0)
sift = cv2.xfeatures2d.SIFT_create()
line 6, in <module>
sift = cv2.xfeatures2d.SIFT_create()
cv2.error: OpenCV(4.1.0) /Users/travis/build/skvark/opencv-python/opencv_contrib/modules/xfeatures2d/src/sift.cpp:1207: error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'create'
I have installed opencv and opencv-contrib on my computer using:
$ pip install opencv-python==3.4.2.17
$ pip install opencv-contrib-python==3.4.2.17
I am not sure how I can resolve this error. Any insights are appreciated.
I've just updated R to R3.3.2 and RStudio to 1.0.136. When I attempted to install UsingR package via the Studio Install Packages menu, I got this message:
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/Rcpp’
Warning in install.packages :
installation of package ‘Rcpp’ had non-zero exit status
Trying to use library(UsingR) produces this message.
library(UsingR)
Loading required package: Hmisc
Loading required package: ggplot2
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘Rcpp’
Error: package ‘ggplot2’ could not be loaded
I found some stuff about this online, but far too complicated for me to understand. Anyone have a simple way of fixing this?
I strongly suspect is an error on your end. You are using R 3.2.3, which is outdated by almost one year as R 3.3.0 came out in April, we are now at R 3.3.2.
R stores all its binary packages under a patch with the major.minor. So the most recent OS X (binary) version of Rcpp at indexed at CRAN in a patch with 3.3 (see [here])https://cloud.r-project.org/bin/macosx/mavericks/contrib/3.3/Rcpp_0.12.8.tgz) -- but your version of R will read only at 3.2 so you will not see updated versions.
The easiest fix is to update to R 3.3.2.
Or install manually by downloading from the Rcpp source URL at CRAN and then pointing at the source -- or doing install.packages("Rcpp", type="source"). You may run into other OS X issues for which you will get help from other questions here -- but this gets you current Rcpp.
I am having difficulties with installing plyr in R (on Ubuntu). The very same problem has been posted in various forums before (in fact I just posted this myself a while ago), but none of the suggested solutions there worked for me.
To summarize, I am trying to install it using this command (output below):
install.packages("plyr")
Installing package into ‘/home/m2108/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
Warning message:
package ‘plyr’ is not available (for R version 3.0.2)
Then I have tried to manually download the package from the cran server and use this command instead and receive the same error:
install.packages("~/Downloads/plyr_1.8.2.tar.gz", repos = NULL, type = "source") Installing package into ‘/home/m2108/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) ERROR: this R is version 3.0.2, package 'plyr' requires R >= 3.1.0 Warning in install.packages : installation of package ‘/home/m2108/Downloads/plyr_1.8.2.tar.gz’ had non-zero exit status
I have also ensured that I have internet access from within R. I have also tried to run the installation from within RStudio and from the console.
Does anyone have an idea, what I might be doing wrong?
Getting the No module named 'matplotlib.pyplot'; matplotlib is not a package error when trying to run:
import matplotlib.pyplot
plt.plot([1,2,3,4],[4,7,8,12])
plt.show()
Im running python 3.3, and have installed the correct matplotlib, and six library. i have checked this by running pip list.
I have also tried running the file in terminal, and when i do this the error changes from matplotlib is not a module to no module named pyplot.