-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
SystemError: <class 'astropy.io.ascii.cparser.FastWriter'> returned NULL without setting an error #7744
Comments
It didn't say what Cython version you have. |
Cython is not installed in that environment. |
Does the problem go away if you install Cython? Just curious because you mentioned a Cython issue in your report above but you don't have Cython. |
It does not.
|
I also tried removing and re-installing |
Thanks for checking! |
have you tried to turn off the fast writer, with the |
I can reproduce this bug with Python 3.7 and Astropy 3.0.4 . Minimal test case to reproduce:
Note how the error is only triggered on the second write call. I also tried with Astropy master (e9dee2e) and the issue seems to be resolved; so possibly just making a new Astropy release would resolve it. But maybe it's worth adding a regression test for this? Note that if you try to run Astropy tests with Python 3.7 you might run into this pytest bug at the moment: pytest-dev/pytest#3854 (comment) @taldcroft or anyone - thoughts? |
I'm sorry @bsipocz for some reason I never got a notification of your comment. Disabling |
Something to check maybe: it could be that you are installing a wheel or conda package that was built with a problematic cython version, not including the fix on their side? |
Not sure if it helps, but here's the error in a Gammapy CI build: For now I'll skip that one test on Python 3.7 in Gammapy |
Since this was addressed at cython/cython#2043 , which was fixed back in Dec 2017, why is this still an issue now? Given the Cython timeline, the fix should be in Cython Hmm, @cdeil 's log shows |
I don't think this is a problem anymore in 2024? 👀 |
Hi humans 👋 - this issue was labeled as Close? approximately 12 hours ago. If you think this issue should not be closed, a maintainer should remove the Close? label - otherwise, I will close this issue in 7 days. If you believe I commented on this issue incorrectly, please report this here |
I'm going to close this issue as per my previous message, but if you feel that this issue should stay open, then feel free to re-open and remove the Close? label. If this is the first time I am commenting on this issue, or if you believe I closed this issue incorrectly, please report this here |
I'm getting this error when trying to write a file out using:
It appears to be related to this
cython
closed issue. Removingformat='csv'
makes the issue go away.Here's what's in my
conda
environment:Trace:
The text was updated successfully, but these errors were encountered: