taosdata / taosdata/taos-connector-python

python源码无法从环境变量中加载dll库的问题

Open Beginner friendly
#333 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.