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

cannot import 'moldesign' after seems to be successful installation #128

Open
sintemalen opened this issue Jan 13, 2017 · 1 comment
Open
Assignees
Labels

Comments

@sintemalen
Copy link

sintemalen commented Jan 13, 2017

on Fedora 21 Linux (Python 2.7.8), I installed with: pip install -U moldesign
than tried: >>> import moldesign as mdt , which lead to:

/usr/lib/python2.7/site-packages/nbmolviz/init.py:123: UserWarning: Exception while trying to enable nbmolviz extensions: [Errno 13] Permission denied: '/usr/local/share/jupyter'
warnings.warn('Exception while trying to enable nbmolviz extensions: %s' % e)
Installing Jupyter nbmolviz-js extension...
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/moldesign/init.py", line 29, in
from . import widgets
File "/usr/lib/python2.7/site-packages/moldesign/widgets/init.py", line 9, in
from .computeconfig import *
File "/usr/lib/python2.7/site-packages/moldesign/widgets/computeconfig.py", line 20, in
from pip._vendor.packaging import version
ImportError: No module named packaging

Strangely, "sudo pip install packaging" does not help: >>> import moldesign as mdt, now leads to:

Traceback (most recent call last):
File "/bin/jupyter-nbextension", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/lib/python2.7/site-packages/notebook/nbextensions.py", line 969, in start
super(NBExtensionApp, self).start()
File "/usr/lib/python2.7/site-packages/jupyter_core/application.py", line 256, in start
self.subapp.start()
File "/usr/lib/python2.7/site-packages/notebook/nbextensions.py", line 877, in start
self.toggle_nbextension_python(self.extra_args[0])
File "/usr/lib/python2.7/site-packages/notebook/nbextensions.py", line 853, in toggle_nbextension_python
logger=self.log)
File "/usr/lib/python2.7/site-packages/notebook/nbextensions.py", line 459, in enable_nbextension_python
logger=logger)
File "/usr/lib/python2.7/site-packages/notebook/nbextensions.py", line 374, in _set_nbextension_state_python
m, nbexts = _get_nbextension_metadata(module)
File "/usr/lib/python2.7/site-packages/notebook/nbextensions.py", line 1140, in _get_nbextension_metadata
m = import_item(module)
File "/usr/lib/python2.7/site-packages/traitlets/utils/importstring.py", line 42, in import_item
return import(parts[0])
ImportError: No module named nbwidgetsextension

There's no 'nbextensions' available via: pip install nbextensions !
It is also not documented, how to install those missing extensions.

Completely stuck !

Frank

Completely stuck !

@singletS
Copy link

Any solution to this? The same problem arises with the moldesign channel conda package version 2016.10.19.0522 (using a clean conda python 2.7 environment on ubuntu). Tried to manually install to "activated" environment with jupyter nbextension install nbmolviz --py --sys-prefix no joy...tries to install to /usr/local/share/jupyter.

@avirshup avirshup added the bug label Feb 25, 2017
@avirshup avirshup self-assigned this Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants