Skip to content
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

Mako for Python 3 does not support disabling Unicode #7

Closed
likr opened this issue Jul 24, 2012 · 2 comments
Closed

Mako for Python 3 does not support disabling Unicode #7

likr opened this issue Jul 24, 2012 · 2 comments

Comments

@likr
Copy link
Contributor

likr commented Jul 24, 2012

Hi, I'm trying current git version (30a83a7) in Python3.2.
When executing following small program,

import numpy as np
import pyopencl as cl
from pyopencl.scan import InclusiveScanKernel

ctx = cl.create_some_context()
knl = InclusiveScanKernel(ctx, np.int32, 'a + b', neutral='0')

following error is occured.

Traceback (most recent call last):
  File "scan.py", line 6, in <module>
    knl = InclusiveScanKernel(ctx, np.int32, 'a + b', neutral='0')
  File "/Users/likr/local/python32/lib/python3.2/site-packages/pyopencl-2012.1-py3.2-macosx-10.7-x86_64.egg/pyopencl/scan.py", line 1170, in __init__
    options=options, preamble=preamble, devices=devices)
  File "/Users/likr/local/python32/lib/python3.2/site-packages/pyopencl-2012.1-py3.2-macosx-10.7-x86_64.egg/pyopencl/scan.py", line 894, in __init__
    store_segment_start_flags=self.store_segment_start_flags)
  File "/Users/likr/local/python32/lib/python3.2/site-packages/pyopencl-2012.1-py3.2-macosx-10.7-x86_64.egg/pyopencl/scan.py", line 1008, in build_scan_kernel
    scan_tpl = _make_template(SCAN_INTERVALS_SOURCE)
  File "/Users/likr/local/python32/lib/python3.2/site-packages/pyopencl-2012.1-py3.2-macosx-10.7-x86_64.egg/pyopencl/scan.py", line 760, in _make_template
    return mako.template.Template(s, strict_undefined=True, disable_unicode=True)
  File "/Users/likr/local/python32/lib/python3.2/site-packages/mako/template.py", line 253, in __init__
    "Mako for Python 3 does not "
mako.exceptions.UnsupportedError: Mako for Python 3 does not support disabling Unicode
@inducer
Copy link
Owner

inducer commented Jul 24, 2012

Should be fixed in 1ac7603.

@inducer inducer closed this as completed Jul 24, 2012
@likr
Copy link
Contributor Author

likr commented Jul 24, 2012

Thanks, it works fine.
New scan features are very nice.

inducer pushed a commit that referenced this issue Jan 19, 2018
inducer added a commit that referenced this issue Jan 19, 2018
Fix list builder bug. See #5, #7

See merge request inducer/pyopencl!31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants