Skip to content

Conversation

@bcwu
Copy link
Contributor

@bcwu bcwu commented Dec 6, 2022

Description

fixes #295

@kgartland-rstudio
Copy link
Contributor

Verified.

Confirmed the error with click 7.1.2.

> pip install click==7.1.2

results in:

> rsconnect add -n yeti-ldap ...
...
  File "/Users/kgartland/.pyenv/versions/3.8.2/envs/rsconnect-tag/lib/python3.8/site-packages/rsconnect/main.py", line 422, in add
    click.echo("    {}: {}".format(k, ctx.get_parameter_source(k).name))

I then uninstall rsconnect-python and re-install with this branch:

> pip install git+https://github.com/rstudio/rsconnect-python.git@bcwu-update-setupcfg
...
Installing collected packages: click, rsconnect-python
  Attempting uninstall: click
    Found existing installation: click 7.1.2
    Uninstalling click-7.1.2:
      Successfully uninstalled click-7.1.2
Successfully installed click-8.1.3 rsconnect-python-1.13.1.dev14+g2be1a71

Now the same command succeeds because click was updated via the rsconnect-python package.

> rsconnect add -n yeti-ldap ...
...
Added Connect server "yeti-ldap" with URL https://connect.localtest.me/rsc/dev-ldap-local-groups/

@bcwu bcwu merged commit 650d9f3 into master Jan 5, 2023
@bcwu bcwu deleted the bcwu-update-setupcfg branch January 5, 2023 16:36
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

Successfully merging this pull request may close these issues.

Adding server doesn't work with click 7.1.2

4 participants