[MacPorts] #63444: pyopencl crashes for all python versions from 3.7 to 3.10. (was: pyopencl for python 3.8 and 3.9 + bug fix)
MacPorts
noreply at macports.org
Mon Oct 2 07:57:57 UTC 2023
#63444: pyopencl crashes for all python versions from 3.7 to 3.10.
----------------------------+--------------------
Reporter: lpagani91 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py37-pyopencl |
----------------------------+--------------------
Description changed by lpagani91:
Old description:
> Hello,
>
> Presently pyopencl is included in the python3.6 and python3.7 packages.
> Not in 3.8 and 3.9.
> Could it be ported ?
> On top of that, the py37-pyopencl package crashes with the following
> message :
>
> {{{
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pyopencl/__init__.py", line 821, in
> kernel_set_scalar_arg_dtypes
> work_around_arg_count_bug=work_around_arg_count_bug)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pyopencl/invoker.py", line 371, in
> generate_enqueue_and_set_args
> result = invoker_cache[cache_key]
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pytools/persistent_dict.py", line 506, in __getitem__
> return self.fetch(key, _stacklevel=1)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pytools/persistent_dict.py", line 600, in fetch
> hexdigest_key = self.key_builder(key)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pytools/persistent_dict.py", line 233, in __call__
> self.rec(key_hash, key)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pytools/persistent_dict.py", line 214, in rec
> method(inner_key_hash, key)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pytools/persistent_dict.py", line 268, in update_for_tuple
> self.rec(key_hash, obj_i)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
> /site-packages/pytools/persistent_dict.py", line 219, in rec
> % type(key))
> TypeError: unsupported type for persistent hash keying: <class
> 'numpy.dtype[void]'>
> }}}
>
> the same code does not crash with py36-opencl
New description:
Hello,
Two years ago pyopencl was included in the python3.6 and python3.7
packages only.
While the 3.6 version works fine, the py37-pyopencl package crashes with
the following message :
{{{
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pyopencl/__init__.py", line 821, in
kernel_set_scalar_arg_dtypes
work_around_arg_count_bug=work_around_arg_count_bug)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pyopencl/invoker.py", line 371, in
generate_enqueue_and_set_args
result = invoker_cache[cache_key]
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pytools/persistent_dict.py", line 506, in __getitem__
return self.fetch(key, _stacklevel=1)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pytools/persistent_dict.py", line 600, in fetch
hexdigest_key = self.key_builder(key)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pytools/persistent_dict.py", line 233, in __call__
self.rec(key_hash, key)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pytools/persistent_dict.py", line 214, in rec
method(inner_key_hash, key)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pytools/persistent_dict.py", line 268, in update_for_tuple
self.rec(key_hash, obj_i)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/pytools/persistent_dict.py", line 219, in rec
% type(key))
TypeError: unsupported type for persistent hash keying: <class
'numpy.dtype[void]'>
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/63444#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list