Comment 3 for bug 1797258

Revision history for this message
Éric Piel (Delmic) (piel) wrote :

Hi Gudjon,

I came across the same issue. That's not the intended way that comedi module should be loaded in Python. You should be able to write just "import comedi as c". Right now, this works fine in Python 2, but not in Python 3.

I think that the problem is that comedi.py (and the .so) should be directly placed in /usr/lib/python3/dist-packages/, not in a subdirectory "comedi/". Was there a specific reason that it was done this way in Python 3?