nacos-group / nacos-group/nacos-sdk-python
TypeError: __init__() got an unexpected keyword argument 'username'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 471
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
编译安装的 python3.6.8,pip3 21.0.1
Traceback (most recent call last):
File "run.py", line 47, in
client = nacos.NacosClient(SERVER_ADDRESSES, namespace=NAMESPACE,username=USER,password=PASS)
TypeError: init() got an unexpected keyword argument 'username'
#部分代码如下:
import requests
import nacos
SERVER_ADDRESSES = "nacos-hello.nacos-demo.com:80
NAMESPACE="test"
data_id = "conf-tab.md"
group = "test"
USER=nacos
PASS=nacos
no auth mode
client = nacos.NacosClient(SERVER_ADDRESSES, namespace=NAMESPACE,username=USER,password=PASS)
auth mode
#client = nacos.NacosClient(SERVER_ADDRESSES, namespace=NAMESPACE, username="nacos", password="nacos")
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the NacosClient constructor used by run.py and compare it with the SDK's documented authentication examples. Reproduce the traceback with the reported Python 3.6.8 and pip 21.0.1 setup, then verify that the no-auth and auth initialization paths use supported arguments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100