taosdata / taosdata/taos-connector-python
python源码无法从环境变量中加载dll库的问题
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 61
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
taos-connector-python/tree/main/taos/cinterface.py源码中第55行代码没有return 导致无法从环境变量中加载taos.dll文件
由于我的开发电脑无法直接安装taos客户端,所以采用环境变量的方式调用taos客户端,在cmd命令行测试可以正常使用,但使用python代码连接taos时报错: NontType object has no attribute 'taos_get_client_info'
经调试定位到该问题,在添加上return后问题解决。希望可以更正!
Contributor guide
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
Open taos-connector-python/taos/cinterface.py and inspect the DLL-loading code around line 55. Reproduce the connection using the client path supplied through an environment variable, then verify the loader result reaches the taos client-info call without the reported AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100