Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on installation: object ‘LayerData<-’ is not exported by 'namespace:SeuratObject' #236

Open
xiaodiYan opened this issue Apr 21, 2024 · 9 comments

Comments

@xiaodiYan
Copy link

Error: package or namespace load failed for ‘SCP’:
object ‘LayerData<-’ is not exported by 'namespace:SeuratObject'

@wangtanzhang612
Copy link

same issue

@Sawakotx
Copy link

Sawakotx commented Jun 3, 2024

Same issue here. If you have any advice I would not be more grateful ! @zhanghao-njmu

When I install packages using 'devtools::install_github("zhanghao-njmu/SCP")', it occured the error below:
Error: object 'LayerData<-' is not exported by 'namespace:SeuratObject'
Execution halted
ERROR: lazy loading failed for package 'SCP'

  • removing 'D:/Program Files/R/R-4.2.2/library/SCP'
    Warning message:
    In i.p(...) :
    安装程序包‘C:/Users/PKU/AppData/Local/Temp/RtmpWSPHhW/file7d245ad528e4/SCP_0.5.6.tar.gz’时退出狀態的值不是0

@zonzero
Copy link

zonzero commented Jun 6, 2024

I meet the same issue. My friend install successed in his Mac use SCP v5.1.0, and his Suerat is v4.3.0 and SeuratObject is v4.1.3. I try same ver packages in my windows but get error:Error: package or namespace load failed for ‘SCP’:
object ‘LayerData<-’ is not exported by 'namespace:SeuratObject'.
I try to found where use 'LarerData<-' in package, but I can't.
It's very streng. I can't found the reason why it happen.
@zhanghao-njmu I really need some help, thank you !

@XiaolongYang-HZAU
Copy link

这似乎是因为scp默认安装了seuratobj5,手动降级到4后再加载就可能会出现这个错误,但是我不知道如何解决

@zonzero
Copy link

zonzero commented Jun 18, 2024

这似乎是因为scp默认安装了seuratobj5,手动降级到4后再加载就可能会出现这个错误,但是我不知道如何解决

The "LayerData<-" is the special matter in SeuratObj5, I try to find what function using it in the SCP, but I can't. It‘s very odd.

@mengxu98
Copy link

mengxu98 commented Jun 20, 2024

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan
经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。
After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out.
remove.packages(c("Seurat", "SeuratObject"))
install.packages('Seurat', repos = c('https://satijalab.r-universe.dev'))
install.packages('SeuratObject')

@zonzero
Copy link

zonzero commented Jun 20, 2024

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan 经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。 After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out. remove.packages(c("Seurat", "SeuratObject")) install.packages('Seurat', repos = c('https://satijalab.r-universe.dev')) install.packages('SeuratObject')

Thank you for your suggestion. However, it seems that Seuratobj 5 has undergone significant changes compared to version 4. Have you tested the compatibility between Seurat 4 and Seuratobj 5? I am concerned that conflicts between them might cause the existing analysis pipeline to fail.

@mengxu98
Copy link

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan 经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。 After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out. remove.packages(c("Seurat", "SeuratObject")) install.packages('Seurat', repos = c('https://satijalab.r-universe.dev')) install.packages('SeuratObject')

Thank you for your suggestion. However, it seems that Seuratobj 5 has undergone significant changes compared to version 4. Have you tested the compatibility between Seurat 4 and Seuratobj 5? I am concerned that conflicts between them might cause the existing analysis pipeline to fail.

After modifying the Seurat version based on my description, I tested it on a dataset and all analysis and drawing processes worked properly.
Please refer to the following figure:
image

@zonzero
Copy link

zonzero commented Jun 21, 2024

@zonzero @XiaolongYang-HZAU @Sawakotx @wangtanzhang612 @xiaodiYan 经过测试,通过下面的命令可以解决这个问题,其实就是使用Seurat 4,以及SeuratObject 5就可以了,你们可以尝试一下。 After testing, the following command can solve this problem, which is actually using Seurat 4 and SeuratObject 5, You can try it out. remove.packages(c("Seurat", "SeuratObject")) install.packages('Seurat', repos = c('https://satijalab.r-universe.dev')) install.packages('SeuratObject')

Thank you for your suggestion. However, it seems that Seuratobj 5 has undergone significant changes compared to version 4. Have you tested the compatibility between Seurat 4 and Seuratobj 5? I am concerned that conflicts between them might cause the existing analysis pipeline to fail.

After modifying the Seurat version based on my description, I tested it on a dataset and all analysis and drawing processes worked properly. Please refer to the following figure: image

Thank you very much! I will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants