conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.26k stars 981 forks source link

"Please log in to "conan-center" to perform this action." for several packages #5780

Closed Talkless closed 5 years ago

Talkless commented 5 years ago

To help us debug your issue please explain:

Windows 10 amd64, Python 3.7.4, Conan 1.18.4 from pip within virtualenv

I am working within conan-libpq-stable-11.4 directory, which is extracted libpq/11.4 from https://github.com/bincrafters/conan-libpq.

My env:

>echo %CONAN%
C:\Users\Vincas\code\cpp\branches\upgrade\\3rdparty\Conan\_python_3.7.4_venv_conan_1.18.4\Scripts\conan.exe
>%CONAN% --version
Conan version 1.18.4

I have conan_profile_windows.txt like this (for building libpq on Windows using CMake):

include(default)
[build_requires]
cmake_installer/3.15.3@conan/stable

I run development flow commands:

>%CONAN% source . -sf src
>%CONAN% install . -if install -s "compiler=Visual Studio" -s compiler.version=14 -s arch=x86 -s arch_build=x86 --build=missing -p conan_profile_windows.txt

But since I've added conan_installer as build depends, I get this output:

>%CONAN% install . -if install -s "compiler=Visual Studio" -s compiler.version=14 -s arch=x86 -s arch_build=x86 --build=missing -p conan_profile_windows.txt
Configuration:
[settings]
arch=x86
arch_build=x86
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=14
os=Windows
os_build=Windows
[options]
[build_requires]
*: cmake_installer/3.15.3@conan/stable
[env]

cmake_installer/3.15.3@conan/stable: WARN: Package is corrupted, removing folder: C:\Users\Vincas\.conan\data\cmake_installer\3.15.3\conan\stable\package\60b04a80ac4dd5c23f1acffacc679e9902e636e5
conanfile.py (libpq/11.4): Installing package
Requirements
    zlib/1.2.11@conan/stable from 'conan-center' - Cache
Packages
    zlib/1.2.11@conan/stable:1299b26cefc5e04411a3481abe1c8b63227e2896 - Cache
Build requirements
    cmake_installer/3.15.3@conan/stable from 'conan-center' - Cache
Build requirements packages
    cmake_installer/3.15.3@conan/stable:60b04a80ac4dd5c23f1acffacc679e9902e636e5 - Download

cmake_installer/3.15.3@conan/stable: Retrieving package 60b04a80ac4dd5c23f1acffacc679e9902e636e5 from remote 'conan-center'
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:

I assume it should work without accounts for fetching recipes..?

mc-allen commented 5 years ago

@Thiesius what version of conan is working for you? I just tried with pip3 installed 1.18.4 and it doesn't work for me, on ubuntu 18.04.

Downloading conan_package.tgz
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: eigen/3.3.5@conan/stable: ERROR: Exception while getting package: 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
eigen/3.3.5@conan/stable: ERROR: Exception: <class 'conans.errors.ConanException'> EOF when reading a line. [Remote: conan-center]
eigen/3.3.5@conan/stable: WARN: Trying to remove package folder: /root/.conan/data/eigen/3.3.5/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
ERROR: EOF when reading a line. [Remote: conan-center]
CMake Error at cmake/conan.cmake:351 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/conan.cmake:429 (conan_cmake_install)
  CMakeLists.txt:60 (conan_cmake_run)

-- Configuring incomplete, errors occurred!
Thiesius commented 5 years ago

Conan version 1.18.4 Python 3.6.8 (default, Aug 20 2019, 17:12:48) pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) All default installed. Ubuntu 18 on WSL though.

Then by executing conan install /mnt/e/test/conanfile.txt -pr /mnt/e/test/conan_profiles/x86_64/GNU-7 -g=cmake --build=missing I got standard:

eigen/3.3.5@conan/stable: WARN: Package is corrupted, removing folder: /home/thiesius/.conan/data/eigen/3.3.5/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
conanfile.txt: Installing package
Requirements
    eigen/3.3.5@conan/stable from 'conan-center' - Cache
    gtest/1.8.0@bincrafters/stable from 'conan-center' - Cache
    msgpack/3.1.1@bincrafters/stable from 'conan-center' - Cache
Packages
    eigen/3.3.5@conan/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
    gtest/1.8.0@bincrafters/stable:a4062ec0208a59375ac653551e662b6cc469fe58 - Download
    msgpack/3.1.1@bincrafters/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

eigen/3.3.5@conan/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center'
Downloading conanmanifest.txt: 100%|##########| 42.5k/42.5k [00:00<00:00, 5.79MB/s]
Downloading conaninfo.txt: 100%|##########| 324/324 [00:00<00:00, 144kB/s]
Downloading conan_package.tgz: 100%|##########| 1.10M/1.10M [00:00<00:00, 11.5MB/s]
Decompressing conan_package.tgz: 100%|##########| 1.10M/1.10M [00:00<00:00, 2.59MB/s]

Maybe consider deleting conan cache completely? I didn't have to though.

mc-allen commented 5 years ago

I'm in docker, so there is no conan cache. Odd.

lasote commented 5 years ago

I've found the cause: https://github.com/urllib3/urllib3/blob/master/CHANGES.rst#1254-2019-09-19 Something has changed in urllib3 (transitive requirement of requests) at version 1.25.4 released on Thursday, if I upgrade my local installation I reproduce the error. ~We will keep investigating and opening an issue to urllib3~ See here but in the meantime, run:

lasote commented 5 years ago

Conan 1.18.5 has been released limiting urllib3 < 1.25.4

mduvanel commented 5 years ago

Awesome, thanks for the quick turnaround :)

GordonJess commented 5 years ago

(Redirected from 3046)

Updated to conan version 1.18.5 but getting ERROR: Wrong user or password. [Remote: conan-center]. Is this related?

Env:

Conan version 1.18.5
Python 3.5.1
urllib3  1.24.3

Artifactory plugin log:

{"_action": "COMMAND", "name": "get_remote_by_name", "parameters": {}, "time": 1569336077.8784244}
{"_action": "REST_API_CALL", "duration": 1.0339999198913574, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.18.5 (Python 3.5.1) python-requests/2.21.0", "X-Client-Anonymous-Id": "**********"}, "method": "GET", "time": 1569336078.9194243, "url": "https://conan.bintray.com/v1/users/authenticate"}
{"_action": "COMMAND", "name": "get_remote_by_name", "parameters": {}, "time": 1569336997.7774243}
{"_action": "REST_API_CALL", "duration": 1.1110000610351562, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.18.5 (Python 3.5.1) python-requests/2.21.0", "X-Client-Anonymous-Id": "**********"}, "method": "GET", "time": 1569336998.8964243, "url": "https://conan.bintray.com/v1/users/authenticate"}
lasote commented 5 years ago

I would need more context (commands you are running). Try to clean the user config with conan user --clean and try again but probably it shouldn't be firing that.

roycepipkins commented 5 years ago

The new version appears to work for me. Thanks!

ghorbanzade commented 5 years ago

@lasote, I also like to report that using the new version has resolved the issue in my environment. Thank you again for working on this.

Talkless commented 5 years ago

Yep, it works for me too. Can we close this now?

lasote commented 5 years ago

Yes. Thanks all for your help and support.

uilianries commented 5 years ago

@lasote I think we can unpin this issue now.