Hi Graham, Graham Mills <[email protected]> writes: > I looked back about a year in the archives and couldn't find anything on > this. I just downloaded and built cgen 2013.1.2 and codepy 2013.1.2 today. > When using thrust as in the example at > http://wiki.tiker.net/PyCuda/Examples/ThrustInterop , several python > version-related errors crop up in cgen and codepy modules, such as > > File > "/usr/local/lib/python3.2/dist-packages/codepy-2013.1.2-py3.2.egg/codepy/toolchain.py", > line 153, in get_dependencies > lines = join_continued_lines(stdout.split("\n")) > TypeError: Type str doesn't support the buffer API > > and > > File > "/usr/local/lib/python3.2/dist-packages/cgen-2013.1.2-py3.2.egg/cgen/__init__.py", > line 893, in get_namespace_name > checksum.update(line) > TypeError: Unicode-objects must be encoded before hashing > > for instance. I manually fixed a few of the issues in my installation, but > there are a few I cannot figure out. Retracing my steps back to building the > installation, when build_py_2to3 gets called in setup.py it misses these > lines (and others). Manually calling 2to3 doesn't catch them, either. > > Is there another release of codepy or cgen I should be using with python 3.2?
you're probably the first to try this with Py3. :) Python 3 support in PyCUDA is fairly recent after all. If you could post/pull-request your fixes as well as tests for the stuff you're stuck on, I'd be happy to take a look and help get this fixed. Andreas
pgpGJ_XICeM1S.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
