-
Notifications
You must be signed in to change notification settings - Fork 285
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
Shipped Boost.Python is incompatible with Python 3.11 #359
Comments
Thanks for the report! My read on this is that the (quite old, quite long in the tooth version of Boost.Python that ships with PyCUDA is incompatible with Python 3.11. You should be able to switch to Boost.Python from an up-to-date version of Boost for an immediate remedy. In the medium-to-short term, we should either update the shipped Boost.Python or migrate to Pybind11 or nanobind. I'm leaning towards one of the latter. |
Hello, i installed boost python 1.78 but i get the same issue. Alain |
I saw you filed boostorg/python#388. If you're sure you disabled the shipped boost and the updated Boost.Python was used instead, then it may just be that Boost.Python itself still needs to be updated. |
Hello, Alain |
Hello, any good or bad news about this problem ? Alain |
We could try simply applying this patch if that works: boostorg/python@a218bab. |
This means you will release a new pycuda version for Python 3.11 ? If so, i will test it. Alain |
No, that means I'm hoping you can apply that patch to the source under |
I am really honoured you think i can do such thing. But to be honest, i don't understand a single word about the solution to this issue. Alain |
Fair enough. I've included the patch in 697139f. It would be helpful if you could try and build that. |
(and report back) |
Hello Andreas, Many thanks. As i am one of the worst software writer, i must say you still use Chinese language (for example, my best level is to type "py -m pip install pycuda-XXX-XXX-XXX.whl"). So i will study the build of a modified boost (i guess ?). For now, my holidays are coming and my software works fine on my laptop. As i plan to make many deep sky observations and videos using my software (it's ok with Python 3.10 and Pycuda 2022.1), i won't touch anything. If i make some experiments, as i don't really understand what i am supposed to do, i think i am able to destroy everything (and i would like to avoid this). I am sorry Andreas to be such noob. This does not help me when i try to solve some issues with my system and i am my main and first victim ! Anyway, i really appreciate your help. I'll be back. Alain |
Make sure that PyCUDA is not currently installed, then try
|
I made a test. So, i first tried this with Python3.10. I was able to install pycuda and everything was fine. I removed everything and i tried with Python 3.11 RC1. Compilation failed. I get many warnings and finally errors : The last lines of the compilation :
note: This error originates from a subprocess, and is likely not a problem with pip. |
Hmm, OK. So there might not be an easy win here. |
Nevermind, things are ok with Python 3.10. I have a working system to make some interesting videos of the deep sky. That's because of your great work ! Alain |
Hello, any news (good or bad) about this issue ? Alain |
Sorry trying to get caught up here and am likely still missing context, it sounds like the vendored Boost has been updated and maybe works? If that's true, does this come down to making a new release? Or if I'm misunderstanding things (quite likely), what is still needed here (and are there things others can do to help)? |
The Debian pycuda package started failing to build when python 3.11 was added as a supported version a few days ago. https://salsa.debian.org/nvidia-team/python-pycuda/-/jobs/3525934#L4023
I see the same when building from the pycuda main branch. |
This latter failure is independent of Boost. It should be addressed by #395. With that PR merged, PyCUDA |
pycuda 2022.2 still does not work for me with Python 3.11. I get an error when loading pycuda with Python. Anyway, i give up and stay with Python 3.10 Alain |
What's the error message? |
Nothing special or clear. Python just says there is an error here : It can't import pycuda.driver A bit strange. It seems am the only one who have an issue with Python 3.11 As long as Python 3.10 is ok, it is not a big problem for me. Have a nice day. Alain |
Is it possible that there's some cached files that are lingering? Maybe it is worth purging everything and starting again fresh? |
I will uninstall everything and make a new clean install to see if things are better. Alain |
Hello, i removed everything for Python 3.10 and Python 3.11 I made a clean install with Python 3.11 and al the libraries i need. I installed Pycuda 2022.2 without error. When i run my program with Python 3.11, here is the result : ========= RESTART: D:\Alain\Astro\Soft\PC\Treatment_V17_01d_VPI_Cupy.py ======== This makes me crazy. Really. Alain |
My suspicion in your case would be numpy headers being found that don't match the installed numpy binary. |
So |
Well guys, good news : it works (at least). It seems i had some problems with libraries i get there : https://www.lfd.uci.edu/~gohlke/pythonlibs/ So, i removed everything one more time and i directly get the libs from the web using pip. Many many thanks guys for your help ! Now, i will try to not bother you any more ! You rock guys. Thx ! Alain |
Hello,
in order to test Python 3.11 with pycuda, i have just installed latest pycuda version : 2022.1
I use CUDA 11.6.2 with a windows 11 laptop.
When i try my program (using pycuda), i get this error message :
Any help will be appreciate.
Alain
The text was updated successfully, but these errors were encountered: