Skip to content

Problem with pycuda and python 3.11 #388

Open

Description

@easybob95

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 :

Traceback (most recent call last):
File "D:\Alain\Astro\Soft\PC\PC_Traitement_Video_V7_51g.py", line 19, in
import pycuda.driver as drv
File "C:\Users\apail\AppData\Local\Programs\Python\Python311\Lib\site-packages\pycuda\driver.py", line 65, in
from pycuda._driver import * # noqa
SystemError: type Boost.Python.enum has the Py_TPFLAGS_HAVE_GC flag but has no traverse function

I also tried with boost.python 1.78 but i get the same issue.

Any help will be appreciate.

Alain

Activity

  1. inducer commented on Jun 30, 2022

    @inducer

    There is some possible context for the error here, particular in regard to changed requirements in Py 3.11: wjakob/nanobind#22 (comment)

  2. berolinux commented on Sep 12, 2022

    @berolinux
    Contributor
  3. AlainPaillou commented on Oct 26, 2022

    @AlainPaillou

    Hello,

    to tell the truth, i am not able to understand a single word in your responses. I am a very basic user ao Python and Pycuda.

    Does your answers mean this issue will be solved in near future ?

    Alain

  4. jakirkham commented on Oct 28, 2022

    @jakirkham
    Contributor

    It means there is a fix in the develop branch, but IIUC not in a release yet. So should be fixed in the next release.

  5. AlainPaillou commented on Oct 28, 2022

    @AlainPaillou

    Hello jakirkham,

    many thx for your response. Quite a good news !

    Alain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions