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

"Ghost" arguments are being passed to method calls! #137

Closed
mrigankpawagi opened this issue May 18, 2024 · 6 comments
Closed

"Ghost" arguments are being passed to method calls! #137

mrigankpawagi opened this issue May 18, 2024 · 6 comments

Comments

@mrigankpawagi
Copy link

I am working with the latest commit in cinder/3.10. I am running some scripts that depend on the aiohttp, aiosignal and lxml packages (among others). However, for many (though not all) method calls inside these packages, I am getting TypeErrors of the following nature.

TypeError: feed_data() takes exactly 1 positional argument (1152921504606846977 given)

Notice the arbitrarily large number. I am however able to fix this error by changing method calls from self.method(args) to self.method.__call__(args). I have seen this issue with both methods without arguments and methods with (a few) arguments.

Is this issue known? Is there some other way to get around this problem? I am working on a minimal example.

@tekknolagi
Copy link
Contributor

See also #131

@tekknolagi
Copy link
Contributor

and #129

@tekknolagi
Copy link
Contributor

And cython/cython#5880

@mrigankpawagi
Copy link
Author

mrigankpawagi commented May 20, 2024

Thanks for directing me to those links, @tekknolagi. I suppose there is no solution from Cinder at the moment --should I just stick to __call__ for now?

@tekknolagi
Copy link
Contributor

I don't know, I'm afraid. I've since left the Cinder team and all I can contribute to this discussion is that it seems vectorcall/nargsf related. I would recommend trying to rebuild your C extensions for Cinder and see if that fixes things.

@mrigankpawagi
Copy link
Author

Okay, I will try that. Thanks for your time! I will close this issue for now.

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

No branches or pull requests

2 participants