You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initializing Julia runtime. This may take some time...
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-c388f9fa0702> in <module>
----> 1 get_ipython().run_line_magic('load_ext', 'ipyjulia_hacks.ipy.magic')
~/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2305 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2306 with self.builtin_trap:
-> 2307 result = fn(*args, **kwargs)
2308 return result
2309
</home/sd/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-64> in load_ext(self, module_str)
~/.local/lib/python3.6/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
~/.local/lib/python3.6/site-packages/IPython/core/magics/extension.py in load_ext(self, module_str)
31 if not module_str:
32 raise UsageError('Missing module name.')
---> 33 res = self.shell.extension_manager.load_extension(module_str)
34
35 if res == 'already loaded':
~/.local/lib/python3.6/site-packages/IPython/core/extensions.py in load_extension(self, module_str)
85 dir=compress_user(self.ipython_extension_dir)))
86 mod = sys.modules[module_str]
---> 87 if self._call_load_ipython_extension(mod):
88 self.loaded.add(module_str)
89 else:
~/.local/lib/python3.6/site-packages/IPython/core/extensions.py in _call_load_ipython_extension(self, mod)
132 def _call_load_ipython_extension(self, mod):
133 if hasattr(mod, 'load_ipython_extension'):
--> 134 mod.load_ipython_extension(self.shell)
135 return True
136
~/.julia/conda/3/lib/python3.6/site-packages/ipyjulia_hacks/ipy/magic.py in load_ipython_extension(ip)
74 config = IPyJuliaHacks.instance()
75
---> 76 ip.register_magics(JuliaMagicsEnhanced)
77
78 maybe_start_polling_julia()
~/.local/lib/python3.6/site-packages/IPython/core/magic.py in register(self, *magic_objects)
403 if isinstance(m, type):
404 # If we're given an uninstantiated class
--> 405 m = m(shell=self.shell)
406
407 # Now that we have an instance, we can register it and update the
~/.julia/conda/3/lib/python3.6/site-packages/ipyjulia_hacks/ipy/magic.py in __init__(self, shell)
17
18 # Replace core.Julia with JuliaAPI:
---> 19 self._julia = get_api()
20 banner(self._julia)
21
~/.julia/conda/3/lib/python3.6/site-packages/ipyjulia_hacks/core/initializer.py in get_api(*args, **kwargs)
41 """
42 return get_cached_api() or \
---> 43 APIInitializer.with_pyjulia(*args, **kwargs).api
44
45
~/.julia/conda/3/lib/python3.6/site-packages/ipyjulia_hacks/core/initializer.py in with_pyjulia(cls, *args, **kwargs)
26 (m.JuliaAPI, m.JuliaAPI.eval_str)
27 end
---> 28 """)(julia_api_path)
29 return cls.instance(eval_str, api)
30
ImportError: Julia exception: LoadError: UndefVarError: npy_typestrs not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
[2] top-level scope at none:0
[3] include at ./boot.jl:326 [inlined]
[4] include_relative(::Module, ::String) at ./loading.jl:1038
[5] include at ./sysimg.jl:29 [inlined]
[6] (::getfield(Main, Symbol("##3#4")))(::String) at ./none:3
[7] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:742
[8] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:741
[9] _pyjlwrap_call(::Function, ::Ptr{PyCall.PyObject_struct}, ::Ptr{PyCall.PyObject_struct}) at /home/sd/.julia/packages/PyCall/ttONZ/src/callback.jl:28
[10] pyjlwrap_call(::Ptr{PyCall.PyObject_struct}, ::Ptr{PyCall.PyObject_struct}, ::Ptr{PyCall.PyObject_struct}) at /home/sd/.julia/packages/PyCall/ttONZ/src/callback.jl:49
in expression starting at /home/sd/.julia/conda/3/lib/python3.6/site-packages/ipyjulia_hacks/core/julia_api.jl:29
When executing:
The text was updated successfully, but these errors were encountered:
I brought this up in JuliaPy/pyjulia#323 because this is a POC for me to experimenting with Python-Julia interop. I haven't tested it for a while so I guess there is no surprise it's broken now...
When executing:

The text was updated successfully, but these errors were encountered: