alibaba / alibaba/acm-sdk-python
ModuleNotFoundError: No module named 'fcntl'
- Dominant language
- Python
- Stars
- 59
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
python 3.6 使用
import acm
ENDPOINT = "acm.aliyun.com:8080"
NAMESPACE = "base-dev"
AK = "××××××××××"
SK = "×××××××××××××××××"
# get config
client = acm.ACMClient(ENDPOINT, NAMESPACE, AK, SK)
data_id = "cn.jfhealthcare.devops:opssampler.ini"
group = "DEFAULT_GROUP"
# add watch
#import time
#client.add_watcher(data_id, group, lambda x:print("config change detected: " + x))
#time.sleep(5) # wait for config changes
if(__name__=='__main__'):
print(client.get(data_id, group))
#client.list_all()
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the reported Python 3.6 example with `import acm` and `ACMClient`, then inspect the package entry point and the dependency that imports `fcntl`. Confirm the supported environment and define done as importing the SDK and reaching the configuration lookup without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100