espressif / idf-component-manager

Tool for installing ESP-IDF components
https://components.espressif.com/
Apache License 2.0
42 stars 15 forks source link

Compote doesn't login to registry in Windows (PACMAN-929) #66

Open mateustoin opened 4 days ago

mateustoin commented 4 days ago

The Component Manager version

v1.5.3

ESP-IDF Version

v5.2

python Version

3.11.2

Operating System

Windows 11

Browser (for https://components.espressif.com Issues)

No response

Description

I'm having trouble with the following command:

compote registry login

When I try this command, this error appears:

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Espressif\python_env\idf5.2_py3.11_env\Scripts\compote.exe__main.py", line 7, in File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\idf_component_manager\cli\core.py", line 74, in safe_cli cli() File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\click\core.py", line 1157, in call return self.main(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\click\core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\click\core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\click\core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\click\core.py", line 783, in invoke return callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\idf_component_manager\cli\registry.py", line 101, in login auth_request = requests.Request('GET', auth_url, params=auth_params).prepare() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\requests\models.py", line 299, in prepare p.prepare( File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\requests\models.py", line 368, in prepare self.prepare_url(url, params) File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\requests\models.py", line 439, in prepare_url raise MissingSchema( requests.exceptions.MissingSchema: Invalid URL 'settings/tokens': No scheme supplied. Perhaps you meant https://settings/tokens?

I was just following the tutorial on the documentation. When I try the same thing on Linux, everything works perfectly.

To Reproduce

Just using the command ´compote registry login´

Expected behaviour

I expected that the login page appears on the browser to complete the auth process.

Additional info

No response

I have checked existing issues and online Documentation