packages

Error in dyn.load(file, DLLpath = DLLpath, …) : unable to load shared object '/software/R…', installing dplyr on LSF GNU/Linux server

余生颓废 提交于 2021-02-10 20:18:33
问题 I tried installing 'dplyr' on a Linux server using the following code in a script: install.packages('dplyr', dependencies = TRUE, lib = 'output/software/r/package/installation/', repos = 'http://cran.rstudio.com') but after running it with 'Rscript code.R' I got a long message followed by: ** package ‘dplyr’ successfully unpacked and MD5 sums checked ** libs ... g++ -I/software/R-3.4.0/lib/R/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -DBOOST_NO_INT64_T -DBOOST_NO_INTEGRAL_INT64_T

R version 3.4.0 rgdal will not load

[亡魂溺海] 提交于 2021-02-08 08:29:20
问题 I recently installed the latest version of R (3.4.0) and installed all of my packages, but for some reason rgdal will not load and I'm getting this message: library(rgdal) Error: package or namespace load failed for ‘rgdal’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so': dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so, 6): Library not loaded:

Why does sklearn package run in terminal but not in jupyter?

本秂侑毒 提交于 2021-01-29 03:00:44
问题 When importing sklearn in jupiter, the result is: >>> import sklearn ImportError: No module named 'sklearn' I've installed scikit-learn with pip, and pip list shows the sklearn is installed. Importing sklearn works fully in terminal, just not here in jupyter. My only thoughts are that they're running in different environments? In terminal: >>> sys.executable '/Users/Victoria/anaconda3/bin/python' However, in Jupyter: >>> sys.executable '/Users/Victoria/anaconda3/envs/py35/bin/python' Any help

Error converting module to a package

﹥>﹥吖頭↗ 提交于 2021-01-29 02:04:15
问题 I have a module with many simple helper functions, but it is getting large and tedious to maintain. I'd like to break it into a simple package. My package directory is defined on PYTHONPATH, and looks like this: test |--__init__.py <---this is empty |--a.py |--b.py This is imported in the usual way (import test) but upon inspection (dir(test)) the library does not contain the modules a or b, just some top level attributes. I could use a hint what is going wrong. thanks! Solution from below:

Error converting module to a package

不羁的心 提交于 2021-01-29 02:03:14
问题 I have a module with many simple helper functions, but it is getting large and tedious to maintain. I'd like to break it into a simple package. My package directory is defined on PYTHONPATH, and looks like this: test |--__init__.py <---this is empty |--a.py |--b.py This is imported in the usual way (import test) but upon inspection (dir(test)) the library does not contain the modules a or b, just some top level attributes. I could use a hint what is going wrong. thanks! Solution from below:

Cannot import module in same directory and package

一曲冷凌霜 提交于 2021-01-28 21:00:49
问题 I'm using a from . import module statement to do exactly that: import a local module to my script. The script and module reside in the same folder. # module.py def foo(): print('Foo!') # script.py from . import module module.foo() > ImportError: cannot import name 'module' This should be pretty easy, and doing just import module does work, but as this answer suggests one should, I modified the statements to the former form. The end goal is to have a package, from which I can use things, but

build R package with C code (without Rcpp)

亡梦爱人 提交于 2021-01-28 05:07:31
问题 environment: OS:Windows10 [10.0.14393] R:3.4.1 (2017-06-30) -- "Single Candle" 32-bit Rstudio:1.0.143 Rtools:3.4.0.1964 This is my first time to build R package (named testt ). I'm trying to build a package with some C code without using Rcpp . I have put all .c files (called lca.c , rlca_cond.c , rlca_prev.c and rlca_condprev.c ) and their header file in /src . And I have some C function defined in chanmat.c , declared in chanmat.h . chanmat.c and chanmat.h are also in /src . Both lca.h ,

Pip install from requirements file is failing, but installing one by one works

孤街醉人 提交于 2021-01-27 13:41:16
问题 I am trying to install a bunch of python dependencies using a requirements.txt file with the following command: pip install -r requirements.txt The requirements.txt file has the following packages: pep8 selenium paramiko soappy nose wmi mock python-keystoneclient python-novaclient python-cinderclient python-swiftclient python-glanceclient python-heatclient python-neutronclient But when running the pip install command I am getting this error: Downloading/unpacking PrettyTable>=0.7,<0.8 (from

R package with private github dependency

我怕爱的太早我们不能终老 提交于 2021-01-27 04:13:08
问题 I'm developing an internal R package which is going to be stored and installed from github, but it depends on another R package which is also in a private repo. I know how to specify remote dependencies with the devtools Remotes: tag (vignette) and I know how to install private repositories using install_github(source, PAT) . But how do I do both? The idea is to have a server just install the package, and also install all of the dependencies on github. 回答1: Just putting @jeroen's response in

Error:(3, 26) java: package javafx.application does not exist

二次信任 提交于 2021-01-26 03:08:28
问题 I have a new pc, I have installed inteliJ with JDK and JRE 9.0.1. I also installed SceneBuilder 9.0.1. I have copied the project that I had on old pc and when I run it I get this error: Error:(3, 26) java: package javafx.application does not exist. Do I need to install something else that contains this package? Thank you. 回答1: The JavaFX package is not included in JDK 9 and later. You need to install JDK 8, or you can add the JavaFX package separately, for example, from JDK 8 ( jfxrt.jar ).