taosdata / taosdata/taos-connector-python
报错, main分支和release版 我都试过了
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 61
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
In [1]: import taos
Traceback (most recent call last):
File "/home/jdyu/.source/taos-connector-python/taos/cinterface.py", line 35, in _load_taos_linux
return ctypes.CDLL("libtaos.so")
~~~~~~~~~~~^^^^^^^^^^^^^^
File "/home/jdyu/miniforge3/lib/python3.14/ctypes/__init__.py", line 433, in __init__
self._handle = self._load_library(name, mode, handle, winmode)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jdyu/miniforge3/lib/python3.14/ctypes/__init__.py", line 473, in _load_library
return _dlopen(name, mode)
OSError: libtaos.so: cannot enable executable stack as shared object requires: Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jdyu/.source/taos-connector-python/taos/cinterface.py", line 72, in _load_taos
return load_func[pf]()
~~~~~~~~~~~~~^^
File "/home/jdyu/.source/taos-connector-python/taos/cinterface.py", line 37, in _load_taos_linux
raise InterfaceError("unable to load taos client library: %s" % e)
taos.error.InterfaceError: [0xffff]: unable to load taos client library: libtaos.so: cannot enable executable stack as shared object requires: Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jdyu/.source/taos-connector-python/taos/__init__.py", line 2, in <module>
from taos.bind import *
File "/home/jdyu/.source/taos-connector-python/taos/bind.py", line 7, in <module>
from taos.cinterface import IS_V3
File "/home/jdyu/.source/taos-connector-python/taos/cinterface.py", line 77, in <module>
_libtaos = _load_taos()
File "/home/jdyu/.source/taos-connector-python/taos/cinterface.py", line 74, in _load_taos
raise InterfaceError("unable to load taos client library: %s" % err)
taos.error.InterfaceError: [0xffff]: unable to load taos client library: [0xffff]: unable to load taos client library: libtaos.so: cannot enable executable stack as shared object requires: Invalid argument
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
Start with taos/cinterface.py, especially _load_taos_linux and the module import path shown in the traceback. Reproduce import taos on the reported Python 3.14 Linux environment and inspect why libtaos.so requires an executable stack. Done means the client library loads without the reported executable-stack error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100