FS#47605 - [python2-pycuda] Error after update to 2015.1.3-6

Attached to Project: Community Packages
Opened by Robert Zimmermann (aSoaked) - Sunday, 03 January 2016, 14:03 GMT
Last edited by Morten Linderud (Foxboron) - Saturday, 06 June 2020, 14:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
After updating to pycuda 2015.1.3-6 and boost-libs 1.60 following error occurs:

Traceback (most recent call last):
File "test.py", line 1, in <module>
import pycuda.autoinit
File "/usr/lib/python2.7/site-packages/pycuda/autoinit.py", line 9,
in <module>
context = make_default_context()
File "/usr/lib/python2.7/site-packages/pycuda/tools.py", line 199, in
make_default_context
return ctx_maker(dev)
File "/usr/lib/python2.7/site-packages/pycuda/tools.py", line 162, in
ctx_maker
return dev.make_context()
TypeError: No to_python (by-value) converter found for C++ type:
boost::shared_ptr<pycuda::context>
-------------------------------------------------------------------
PyCUDA ERROR: The context stack was not empty upon module cleanup.
-------------------------------------------------------------------
A context was still active when the context stack was being
cleaned up. At this point in our execution, CUDA may already
have been deinitialized, so there is no way we can finish
cleanly. The program will be aborted now.
Use Context.pop() to avoid this problem.
-------------------------------------------------------------------
Abgebrochen (Speicherabzug geschrieben)

test.py contains only:
import pycuda.autoinit


Downgrading to previous pycuda version and to boost-libs 1.59 resolves this.

Additional info:
python2-pycuda 2015.1.3-6
boost-libs 1.60.0-1


Steps to reproduce:
update to newest version of boost-libs and pycuda
This task depends upon

Closed by  Morten Linderud (Foxboron)
Saturday, 06 June 2020, 14:42 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Package has been removed
Comment by Joseph Martinot-Lagarde (contrebasse) - Tuesday, 26 January 2016, 10:53 GMT
I have the same error.

Here is a relevant discussion with the package author, if it can help: http://blog.gmane.org/gmane.comp.python.cuda/month=20160101

EDIT: Note that there is the same problem with python-pycuda.
Comment by Paolo Zaffino (paozaf) - Thursday, 11 February 2016, 18:40 GMT
The same problem here.
Comment by pavan yalamanchili (pavanky) - Sunday, 20 March 2016, 03:18 GMT
Installing from pip seems to work. Could it be because of the version of boost shipped on Archlinux ?
Comment by Quyet Nguyen Duc (quyetnd) - Tuesday, 31 May 2016, 04:38 GMT
Problem still persist with python-pycuda-2016.1.1-1 and boost 1.60.0-5
pip install pycuda works
Comment by Hao (qft) - Wednesday, 15 June 2016, 16:43 GMT
A temporary workaround is to remove the line "--no-use-shipped-boost" from the PKGBUILD file.
Comment by Ivy Foster (escondida) - Thursday, 10 October 2019, 04:13 GMT
Does this issue still apply with the current versions? I don't have an nvidia device on which to test this.

Loading...