Comments (6)
Fixed (I believe) in 2bb0d72 by renaming to ipython_ext
. Can you please verify and report back? I'll release 2014.1.1 with the fix once you confirm.
Thx,
Andreas
from pyopencl.
This is a Windows specific issue in lib2to3
that has not been fixed yet (http://bugs.python.org/issue18477).
Rather than deprecating pyopencl.ipython
one could try import ipython_ext as ipython
in __init__.py
or (ugly) monkey patch FixImport.probably_a_local_import
in setup.py, e.g.:
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
# 2.x
from distutils.command.build_py import build_py
else:
# Monkey patch FixImport.probably_a_local_import
# to work around http://bugs.python.org/issue18477
from os.path import dirname, join, exists, sep, split, isdir
from os import listdir
def probably_a_local_import(self, imp_name):
if imp_name.startswith("."):
return False
imp_name = imp_name.split(".", 1)[0]
base_path = dirname(self.filename)
base_path = join(base_path, imp_name)
if not exists(join(dirname(base_path), "__init__.py")):
return False
path, filename = split(base_path)
if isdir(base_path) and filename in listdir(path):
return True
for ext in [".py", sep, ".pyc", ".so", ".sl", ".pyd"]:
if (filename + ext) in listdir(path):
return True
return False
from lib2to3.fixes.fix_import import FixImport
FixImport.probably_a_local_import = probably_a_local_import
from pyopencl.
I see that the renaming to ipython_ext
was done already. Never mind the monkey patch then. The monkey patch also breaks building on Python 2.
from pyopencl.
2bb0d72 does not work for me because the ipython.py
file is still present.
from pyopencl.
Too bad. Deleted in d3f3184. If this works (please let me know), I'll release 2014.1.1 soon so that as few people as possible start relying on pyopencl.ipython
.
from pyopencl.
The IPython extension has been called ipython_ext
for a while now, which should address this. Closing.
from pyopencl.
Related Issues (20)
- Warn when using SVM whose deallocation synchronizes on different queue
- enqueue_copy does not support IMAGE2D_ARRAY HOT 4
- Possible memory leak when collecting events for profiling HOT 5
- Allow None in wait_for lists HOT 2
- Memory issue on cauculations of pyopencl.array.Array HOT 4
- Crash in test_slice on Intel CL HOT 7
- abrupt in code HOT 3
- SVM `bind_to_queue` and `unbind_queue` cannot be safely used
- Array allocation failure HOT 2
- TypeError: __class__ assignment: 'KernelWithCustomEnqueue' object layout differs from 'pyopencl._cl.Kernel' HOT 2
- New np.isscalar checks in array arithmetic break operations with unit-length arrays HOT 1
- Array: check that queues match
- source tarball contains binary artefact _skbuild/linux-x86_64-3.11/cmake-install/pyopencl/_cl.cpython-311-x86_64-linux-gnu.so HOT 1
- test_clmath.py::test_fmod fails on i386 using pocl 3.1 built with llvm 15 HOT 2
- Disable kernel caching from within pyopencl code HOT 1
- Expose create_buffer_gc in a header HOT 4
- Binary operations with Arrays of different memory layout HOT 2
- Windows Intel CL Github CI fails HOT 2
- Fails to build with OpenCL 3.0 headers HOT 3
- UHD Graphics 600 | Calling kernel + enqueue_copy more than once, results in OUT_OF_RESOURCES error or freeze HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyopencl.