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

Can't enable the extension #4

Open
grgeorgiev opened this issue Jan 30, 2020 · 3 comments
Open

Can't enable the extension #4

grgeorgiev opened this issue Jan 30, 2020 · 3 comments

Comments

@grgeorgiev
Copy link

OS: Win 10

After trying : jupyter bundlerextension enable --py wordexport.wordexport --sys-prefix
I got :
Traceback (most recent call last):
File "C:\Users\ggeorgiev\Anaconda2\Scripts\jupyter-bundlerextension-script.py", line 10, in
sys.exit(main())
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\notebook\bundler\bundlerextensions.py", line 297, in start
super(BundlerExtensionApp, self).start()
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\jupyter_core\application.py", line 255, in start
self.subapp.start()
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\notebook\bundler\bundlerextensions.py", line 211, in start
self.toggle_bundler_python(self.extra_args[0])
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\notebook\bundler\bundlerextensions.py", line 203, in toggle_bundler_python
logger=self.log)
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\notebook\bundler\bundlerextensions.py", line 149, in enable_bundler_python
logger=logger)
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\notebook\bundler\bundlerextensions.py", line 120, in _set_bundler_state_python
m, bundlers = _get_bundler_metadata(module)
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\notebook\bundler\bundlerextensions.py", line 35, in _get_bundler_metadata
m = import_item(module)
File "C:\Users\ggeorgiev\Anaconda2\lib\site-packages\traitlets\utils\importstring.py", line 34, in import_item
module = import(package, fromlist=[obj])
ImportError: No module named wordexport

@psychemedia
Copy link
Contributor

Did you install the package first? (You need to use the correct pip... i.e. the one that installs to the Python environment you use to run the jupyter command.

pip install --upgrade --no-deps git+https://github.com/innovationOUtside/nb_extension_wordexport.git

@grgeorgiev
Copy link
Author

Yes, I did that first.

@psychemedia
Copy link
Contributor

Try installing with --user rather than --sys-prefix:

jupyter bundlerextension enable --py wordexport.wordexport --user

This extension was also created a long time ago...

A better bet may be jupyter-docx-bundler although it's been some time since I last tested it (looks like it's maintained though...)

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