Hello Couchbase community,
I’m encountering an issue while using the Couchbase Python SDK (specifically acouchbase
) version 3.2.7 in my Flask application. The application uses asynchronous code and integrates with Couchbase as its database.
I’ve come across an error that I’m having trouble resolving. Below is the stack trace of the error:
Traceback (most recent call last):
File “D:\NX Env.venv\lib\site-packages\acouchbase\asyncio_iops.py”, line 96, in update_event
self.loop.remove_reader(event.fd)
…
SystemError: PyEval_EvalFrameEx returned a result with an error set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
…
SystemError: <built-in method _connect of ACluster object at 0x000001AE6EFBBE40> returned a result with an error set
It seems that the issue is related to an InternalSDKException
originating from the Couchbase SDK, specifically in the asynchronous part of the code. This is leading to a subsequent SystemError
during the evaluation of frames.
I’ve reviewed my code and the Couchbase SDK integration, but I’m unable to identify the exact cause of this issue. I’m using the acouchbase
version 3.2.7, and my application is built on Python 3.8.3.
Could someone provide insights into what might be causing this error and how I can go about resolving it? Are there any known compatibility issues between acouchbase
3.2.7 and certain versions of Couchbase or Python?
Any help or guidance would be greatly appreciated. Thank you in advance for your assistance!