Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: in method 'PV_startAsyncWrite', argument 2 of type 'casCtx const &' #95

Closed
hinxx opened this issue Feb 17, 2024 · 2 comments
Closed
Labels

Comments

@hinxx
Copy link

hinxx commented Feb 17, 2024

I was trying out the asyn option on the PV and ran into this issue when doing caput -c MTEST:RAND 12:

python pcaspy/example/dummy.py

Traceback (most recent call last):
  File "/home/hinxx/ess/python/scan/.venv/lib/python3.10/site-packages/pcaspy/driver.py", line 578, in writeNotify
    self.startAsyncWrite(context)
  File "/home/hinxx/ess/python/scan/.venv/lib/python3.10/site-packages/pcaspy/cas.py", line 632, in startAsyncWrite
    return _cas.PV_startAsyncWrite(self, ctx)
TypeError: in method 'PV_startAsyncWrite', argument 2 of type 'casCtx const &'
python: ../Objects/typeobject.c:3818: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed.
Aborted (core dumped)

I modified the dummy.py as follows:

pvdb = {
    'RAND' : {
        'prec' : 3,
        'asyn' : True
    },
}

I used the latest release.

xiaoqiangwang added a commit that referenced this issue Feb 19, 2024
It was a bug introduced when adding the log of client info in
write access (a7d196e)
@hinxx
Copy link
Author

hinxx commented Feb 19, 2024

That solves it for me. Thanks!

@xiaoqiangwang
Copy link
Collaborator

0.8.1 is released with this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants