Comments (7)
Hi,
please follow our troubleshooting instructions, this usually solves this problem:
https://github.com/PMBio/scLVM/wiki/Troubleshooting
Thanks
from sclvm.
Hi,
I am having the same issue. I followed the installation instructions (https://github.com/PMBio/scLVM/wiki/Installation) to the point of installing rPython (the current homebrew version that downloaded is 2.7.12 as of this writing) and downloaded the scLVM tarball (which is now scLVM_0.99.2.tar.gz). However, when I run:
$ R CMD INSTALL scLVM_0.99.2.tar.gz
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: loading failed
Execution halted
ERROR: loading failed
Following the suggestion above I ran the troubleshooting to make sure I was running the homebrew version of python and found that R sees only the Mac OSX default:
2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]
but by terminal: python --version
returns Python 2.7.12
Both are 2.7, but not exactly the same could this be the problem? I've reinstalled both after running $export RPYTHON_PYTHON_VERSION=2.7.12, but nothing changed. Do I have to set the environmental variable somewhere specific? In the bash.rc?
(>python.exec("import limix; limix.version") runs on R fine.)
$ which python | xargs ls -l
lrwxr-xr-x 1 lrodda admin 34 Aug 26 11:42 /usr/local/bin/python -> ../Cellar/python/2.7.12/bin/python
I also tried installing scLVM via Rstudio and:
library("scLVM", lib.loc="/Library/Frameworks/R.framework/Versions/3.3/Resources/library")
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: package or namespace load failed for ‘scLVM’
I've updated and reinstalled numpy with no change.
Any help would be greatly appreciated.
Thank you!
from sclvm.
HI Lauren,
hm, yes, the is caused by the 2 python versions - it’s an rPython issue, the author of that package outlined a possible solution here: https://cran.r-project.org/web/packages/rPython/INSTALL https://cran.r-project.org/web/packages/rPython/INSTALL
But I’m not sure if it works with only differences in the minor version of python..there is no need to set the environmental variable anywhere specific, but I’ll have think again.
florian
Am 06.09.2016 um 23:22 schrieb lrodda [email protected]:
Hi,
I am having the same issue. I followed the installation instructions (https://github.com/PMBio/scLVM/wiki/Installation https://github.com/PMBio/scLVM/wiki/Installation) to the point of installing rPython (the current homebrew version that downloaded is 2.7.12 as of this writing) and downloaded the scLVM tarball (which is now scLVM_0.99.2.tar.gz). However, when I run:$ R CMD INSTALL scLVM_0.99.2.tar.gz
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: loading failed
Execution halted
ERROR: loading failedFollowing the suggestion above I ran the troubleshooting to make sure I was running the homebrew version of python and found that R sees only the Mac OSX default:
2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]but by terminal: python --version
returns Python 2.7.12Both are 2.7, but not exactly the same could this be the problem? I've reinstalled both after running $export RPYTHON_PYTHON_VERSION=2.7.12, but nothing changed. Do I have to set the environmental variable somewhere specific? In the bash.rc?
(>python.exec("import limix; limix.version") runs on R fine.)
$ which python | xargs ls -l
lrwxr-xr-x 1 lrodda admin 34 Aug 26 11:42 /usr/local/bin/python -> ../Cellar/python/2.7.12/bin/pythonI also tried installing scLVM via Rstudio and:
library("scLVM", lib.loc="/Library/Frameworks/R.framework/Versions/3.3/Resources/library")
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: package or namespace load failed for ‘scLVM’I've updated and reinstalled numpy with no change.
Any help would be greatly appreciated.
Thank you!—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub #6 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AGOwvj9MScbICcX2j2Vz5Ci1ZcYdMZMbks5qneepgaJpZM4G-3PD.
from sclvm.
Hi Florian,
I fixed it! The key was uninstalling rPython AND scLVM (even though it never technically installed it was available as a package in RStudio) and then setting the environmental variable and reinstalling. Obvious in retrospect. Thank you for the other fix you just posted for this error:
Error in python.exec(paste(objName, " = scLVM(Y,geneID=geneID,tech_noise=tech_noise)", :
name 'scLVM' is not definedpython.load(system.file("pysrc","init_data.py",package = "scLVM"))
fixed the issue.
Now to actually analyze my data!
Thank you for your help,
Lauren
From: flophys [[email protected]]
Sent: Tuesday, September 06, 2016 3:31 PM
To: PMBio/scLVM
Cc: Rodda, Lauren; Comment
Subject: Re: [PMBio/scLVM] error message when loading scLVM package (#6)
HI Lauren,
hm, yes, the is caused by the 2 python versions - it’s an rPython issue, the author of that package outlined a possible solution here: https://cran.r-project.org/web/packages/rPython/INSTALL https://cran.r-project.org/web/packages/rPython/INSTALL
But I’m not sure if it works with only differences in the minor version of python..there is no need to set the environmental variable anywhere specific, but I’ll have think again.
florian
Am 06.09.2016 um 23:22 schrieb lrodda [email protected]:
Hi,
I am having the same issue. I followed the installation instructions (https://github.com/PMBio/scLVM/wiki/Installation https://github.com/PMBio/scLVM/wiki/Installation) to the point of installing rPython (the current homebrew version that downloaded is 2.7.12 as of this writing) and downloaded the scLVM tarball (which is now scLVM_0.99.2.tar.gz). However, when I run:$ R CMD INSTALL scLVM_0.99.2.tar.gz
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: loading failed
Execution halted
ERROR: loading failedFollowing the suggestion above I ran the troubleshooting to make sure I was running the homebrew version of python and found that R sees only the Mac OSX default:
2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]but by terminal: python --version
returns Python 2.7.12Both are 2.7, but not exactly the same could this be the problem? I've reinstalled both after running $export RPYTHON_PYTHON_VERSION=2.7.12, but nothing changed. Do I have to set the environmental variable somewhere specific? In the bash.rc?
(>python.exec("import limix; limix.version") runs on R fine.)
$ which python | xargs ls -l
lrwxr-xr-x 1 lrodda admin 34 Aug 26 11:42 /usr/local/bin/python -> ../Cellar/python/2.7.12/bin/pythonI also tried installing scLVM via Rstudio and:
library("scLVM", lib.loc="/Library/Frameworks/R.framework/Versions/3.3/Resources/library")
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: package or namespace load failed for ‘scLVM’I've updated and reinstalled numpy with no change.
Any help would be greatly appreciated.
Thank you!—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub #6 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AGOwvj9MScbICcX2j2Vz5Ci1ZcYdMZMbks5qneepgaJpZM4G-3PD.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/6#issuecomment-245116643, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVBDoA8D44JY3Pm_0xLvWmfqYFZdf2Kfks5qnemvgaJpZM4G-3PD.
from sclvm.
@lrodda I got the same problem (two versions of python on OSX), and I tried to follow your suggestion but failed. Could you please take a look at mine steps and point out my mistakes?
export RPYTHON_PYTHON_VERSION=2.7.12
R
remove.packages("rPython")
remove.packages("scLVM")
Sys.setenv(PATH = paste("/Users/arthur/Desktop/Dev/Anaconda/anaconda/bin", Sys.getenv("PATH"),sep=":"))
system("python --version")
Python 2.7.12 :: Anaconda 4.0.0 (x86_64)
Sys.setenv(RPYTHON_PYTHON_VERSION = "2.7.12")
install.packages("rPython")
install.packages("/Users/arthur/Desktop/Dev/scLVM/R/scLVM_0.99.2.tar.gz")
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: loading failed
Execution halted
ERROR: loading failed
It seems that R is still calling the "wrong" version of python:
library(rPython)
python.exec("import sys; print sys.version")
2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]
system("python --version")
Python 2.7.12 :: Anaconda 4.0.0 (x86_64)
Do you have any ideas?
Thanks,
Arthur
from sclvm.
@arthuryxt Did you make sure to restart your R after removing packages? Remove packages, export your 2.7.12 version and reopen R.
install.packages("rPython", type = "source")
check that right version installed
library(rPython)
python.exec("import sys; print sys.version")
should say 2.7.12
If you are using Rstudio make sure that sclvm is not just unchecked but completely uninstalled.
Then run in terminal
$ R CMD INSTALL scLVM_0.99.2.tar.gz
I hope this helps.
From: arthuryxt [[email protected]]
Sent: Thursday, September 15, 2016 3:11 AM
To: PMBio/scLVM
Cc: Rodda, Lauren; Mention
Subject: Re: [PMBio/scLVM] error message when loading scLVM package (#6)
@lroddahttps://github.com/lrodda I got the same problem (two versions of python on OSX), and I tried to follow your suggestion but failed. Could you please take a look at mine steps and point out my mistakes?
export RPYTHON_PYTHON_VERSION=2.7.12
R
remove.packages("rPython")
remove.packages("scLVM")
Sys.setenv(PATH = paste("/Users/arthur/Desktop/Dev/Anaconda/anaconda/bin", Sys.getenv("PATH"),sep=":"))
system("python --version")
Python 2.7.12 :: Anaconda 4.0.0 (x86_64)
Sys.setenv(RPYTHON_PYTHON_VERSION = "2.7.12")
install.packages("rPython")
install.packages("/Users/arthur/Desktop/Dev/scLVM/R/scLVM_0.99.2.tar.gz")
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: loading failed
Execution halted
ERROR: loading failed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/6#issuecomment-247289414, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVBDoJgawDBSVJQ_bjfHJQfrE2TdWTZeks5qqRnfgaJpZM4G-3PD.
From: arthuryxt [[email protected]]
Sent: Thursday, September 15, 2016 3:11 AM
To: PMBio/scLVM
Cc: Rodda, Lauren; Mention
Subject: Re: [PMBio/scLVM] error message when loading scLVM package (#6)
@lroddahttps://github.com/lrodda I got the same problem (two versions of python on OSX), and I tried to follow your suggestion but failed. Could you please take a look at mine steps and point out my mistakes?
export RPYTHON_PYTHON_VERSION=2.7.12
R
remove.packages("rPython")
remove.packages("scLVM")
Sys.setenv(PATH = paste("/Users/arthur/Desktop/Dev/Anaconda/anaconda/bin", Sys.getenv("PATH"),sep=":"))
system("python --version")
Python 2.7.12 :: Anaconda 4.0.0 (x86_64)
Sys.setenv(RPYTHON_PYTHON_VERSION = "2.7.12")
install.packages("rPython")
install.packages("/Users/arthur/Desktop/Dev/scLVM/R/scLVM_0.99.2.tar.gz")
Error : .onAttach failed in attachNamespace() for 'scLVM', details:
call: if (pmatch("No module named ", e[[1]]) == 1) {
error: missing value where TRUE/FALSE needed
Error: loading failed
Execution halted
ERROR: loading failed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/6#issuecomment-247289414, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVBDoJgawDBSVJQ_bjfHJQfrE2TdWTZeks5qqRnfgaJpZM4G-3PD.
from sclvm.
@lrodda Thank you very much! Yet I still couldn't get it installed:
my commands are:
R
remove.packages("rPython")
Removing package from ‘/Users/arthur/Library/R/3.3/library’
Error in find.package(pkgs, lib) : there is no package called ‘rPython’
Sys.setenv(RPYTHON_PYTHON_VERSION = "2.7.12")
q()
export RPYTHON_PYTHON_VERSION=2.7.12
R
Sys.setenv(PATH = paste("/Users/arthur/Desktop/Dev/Anaconda/anaconda/bin", Sys.getenv("PATH"),sep=":"))
system("python --version")
Python 2.7.12 :: Anaconda 4.0.0 (x86_64)
Sys.setenv(RPYTHON_PYTHON_VERSION = "2.7.12")
install.packages("rPython", type = "source")
could not locate python2.7.12-config
ERROR: configuration failed for package ‘rPython’
*removing ‘/Users/arthur/Library/R/3.3/library/rPython’
Any suggestions please?
Best,
Arthur
from sclvm.
Related Issues (20)
- issue with plot getVariableGenes
- Useful __all__ and no * import HOT 1
- proper naming HOT 1
- Error when running init(sclvm,Y=Y,tech_noise = tech_noise) HOT 10
- IndexError: index XX is out of bounds for axis 0 with size XX of scLVM/core.py HOT 1
- 'module' object has no attribute 'CFixedCF' HOT 3
- negative expression after cell cycle correction HOT 1
- Uninitialized dataCB reference in "transform_counts_demo_no_spikeins.Rmd" HOT 1
- Error running vignette
- python commands to get tech_noise
- nlopt failed!
- core.py limix version check triggers automatic failure state, attempts to load nonexistent package HOT 3
- Error in running scLVM_vignette.Rmd
- Error running init(sclvm,Y=Y,tech_noise = tech_noise) HOT 3
- ERROR running: sclvm = init(sclvm,Y=Y,tech_noise = tech_noise) HOT 4
- Use of scLVM for single cell data under multiple conditions HOT 1
- fitLMM dies with AttributeError
- Issue in creating scLVM object (Python execution error)
- Issue with general use of the package via pip, R and github installation
- Feature request: more parameters to function getVariableGenes()
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 sclvm.