简体   繁体   English

无法安装柯南package本征

[英]Unable to install conan package eigen

I am trying to install some recipes but I am having some kind of authentication issue.我正在尝试安装一些食谱,但我遇到了某种身份验证问题。 when I do当我做

conan install eigen/3.3.7@conan/stable

I receive the following error我收到以下错误

Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

eigen/3.3.7@conan/stable: Not found in local cache, looking in remotes...
eigen/3.3.7@conan/stable: Trying with 'conan-local'...
eigen/3.3.7@conan/stable: Trying with 'bincrafters_remote'...
eigen/3.3.7@conan/stable: Trying with 'conan-community'...
Downloading conanmanifest.txt: 100%|##########| 165/165 [00:00<00:00, 345kB/s]
Downloading conanfile.py: 100%|##########| 2.43k/2.43k [00:00<00:00, 7.34MB/s]
Downloading conan_export.tgz: 100%|##########| 766/766 [00:00<00:00, 2.53MB/s]
Decompressing conan_export.tgz: 100%|##########| 766/766 [00:00<00:00, 358kB/s]
eigen/3.3.7@conan/stable: Downloaded recipe revision 0
Installing package: eigen/3.3.7@conan/stable
Requirements
    eigen/3.3.7@conan/stable from 'conan-community' - Downloaded
Packages
    eigen/3.3.7@conan/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download

eigen/3.3.7@conan/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-community'
Downloading conanmanifest.txt: 100%|##########| 42.3k/42.3k [00:00<00:00, 1.22MB/s]
Downloading conaninfo.txt: 100%|##########| 150/150 [00:00<00:00, 460kB/s]
eigen/3.3.7@conan/stable: ERROR: Exception while getting package: 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
eigen/3.3.7@conan/stable: ERROR: Exception: <class 'conans.errors.ForbiddenException'> Permission denied for user: 'jjcasmar'. [Remote: conan-community]
eigen/3.3.7@conan/stable: WARN: Trying to remove package folder: /home/jjcasmar/.conan/data/eigen/3.3.7/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
ERROR: Permission denied for user: 'jjcasmar'. [Remote: conan-community]

My remotes are the following:我的遥控器如下:

conan-local: some-private-url [Verify SSL: True]
bincrafters_remote: https://api.bintray.com/conan/bincrafters/public-conan [Verify SSL: True]
conan-community: https://api.bintray.com/conan/conan-community/conan [Verify SSL: True]
conan-center: https://api.bintray.com/conan/conan/conan-center [Verify SSL: True]

and the output of conan user is the following而柯南conan user的output如下

Current user of remote 'conan-local' set to: 'None' (anonymous)
Current user of remote 'bincrafters_remote' set to: 'None' (anonymous)
Current user of remote 'conan-community' set to: 'jjcasmar' [Authenticated]
Current user of remote 'conan-center' set to: 'None' (anonymous)

So, if I am correctly authenticated into conan-community, why am I getting a permission defnied error when trying to install the recipe.所以,如果我正确地通过了柯南社区的身份验证,为什么在尝试安装配方时会出现权限定义错误。 Also, I though that for installing recipes there was no need to authenticate so what is happening here?另外,我虽然安装食谱不需要进行身份验证,所以这里发生了什么?

EDIT: I have also tried to install the recipe without authentication, but in that case it just asks for a username/password.编辑:我也尝试在没有身份验证的情况下安装配方,但在这种情况下,它只要求输入用户名/密码。 If I try my bintray username and password, it rejects them.如果我尝试我的 bintray 用户名和密码,它会拒绝它们。

eigen/3.3.7@conan/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
Downloading conanmanifest.txt: 100%|##########| 42.3k/42.3k [00:00<00:00, 1.33MB/s]
Downloading conaninfo.txt: 100%|##########| 150/150 [00:00<00:00, 407kB/s]
Please log in to "conan-center" to perform this action. Execute "conan user" command.
If you don't have an account sign up here: https://bintray.com/signup/oss
Remote 'conan-center' username: jjcasmar
Please enter a password for "jjcasmar" account: 
ERROR: Wrong user or password
Remote 'conan-center' username: 

I experienced this issue in 2020 on Ubuntu 18.04, and was able to solve it by upgrading to Conan 1.20.2 via the following terminal commands:我在 2020 年在 Ubuntu 18.04 上遇到了这个问题,并且能够通过以下终端命令升级到柯南 1.20.2 来解决它:

sudo -H pip3 uninstall conan

sudo -H pip3 install conan==1.20.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM