-
Notifications
You must be signed in to change notification settings - Fork 507
nbdev_test
fails with concurrent.futures.process.BrokenProcessPool exception
#693
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
Comments
Try 2.0.5, and also upgrade your fastcore to 1.5.11. |
I was able to get the tests to run post the upgrades. Thank you @jph00 $ nbdev_test
Success. The one change I had to make to make the tests pass was remove the following two lines which I use to get higher resolution %matplotlib inline
%config InlineBackend.figure_format = 'retina' Error message of While Executing Cell #6:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-0eb3525f3a9a> in <module>
----> 1 get_ipython().run_line_magic('matplotlib', 'inline')
2 get_ipython().run_line_magic('config', "InlineBackend.figure_format = 'retina'")
3
4 import pandas as pd
~/Library/Python/3.7/lib/python/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2334 kwargs['local_ns'] = self.get_local_scope(stack_depth)
2335 with self.builtin_trap:
-> 2336 result = fn(*args, **kwargs)
2337 return result
2338
<decorator-gen-101> in matplotlib(self, line)
~/Library/Python/3.7/lib/python/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):
~/Library/Python/3.7/lib/python/site-packages/IPython/core/magics/pylab.py in matplotlib(self, line)
97 print("Available matplotlib backends: %s" % backends_list)
98 else:
---> 99 gui, backend = self.shell.enable_matplotlib(args.gui.lower() if isinstance(args.gui, str) else args.gui)
100 self._show_matplotlib_backend(args.gui, backend)
101
/usr/local/lib/python3.7/site-packages/execnb/shell.py in enable_matplotlib(self, gui)
91 def enable_matplotlib(self, gui=None):
92 "Enable `matplotlib` in a nested shell"
---> 93 from matplotlib_inline.backend_inline import configure_inline_support
94 configure_inline_support.current_backend = 'unset'
95 return super().enable_matplotlib(gui)
ModuleNotFoundError: No module named 'matplotlib_inline' I looked at example notebooks on |
OK thanks for letting us know - tracking that in #702 |
@bkowshik have you tried |
Following the tutorial. I also get this issue on
I tried downgrading |
@larsyencken could you please try upgrading to the latest Python 3.9 version? There’s a known macOS parallelism bug in earlier versions. Also try using latest versions of execnb, fastcore, and nbdev. |
Thanks! Upgrading from Python 3.9.7 to 3.9.13 fixed it, works fine now. |
Similar to: #673
Error
Was going through the tutorial using
nbdev==2.0.4
on macOS.The text was updated successfully, but these errors were encountered: