Closed bergwerf closed 7 years ago
It looks like new and old versions of chemview got mixed up. The version in conda is out of date, I'll work on a new version this week.
Try these new instructions to setup a clean environment:
conda create -n issue-37 python=3
source activate issue-37
git clone git@github.com:gabrielelanaro/chemview.git
conda install notebook numpy numba jupyter
pip install vapory
cd chemview
pip install .
# This basically reloads the environment so that it picks up the new "jupyter" executable
source deactivate
source activate issue-37
jupyter nbextension enable widgetsnbextension --user --py
jupyter nbextension install --user --py --symlink chemview
jupyter nbextension enable --py --user chemview
jupyter notebook
Now you should be able to test the QuickStart notebook.py
Unfortunately I get the same error (ValueError: Missing file: /tmp/pip-xxxxxxxx-build/chemview/static/extension.js
)
I think the problem could be that it fails to compile the JS extensions:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
rebuilding js and css failed
And since it fails, pip can't find the compiled JS file extensions.js. I'll make a conda package so that the js extensions come precompiled. Hopefully that'll solve the issue.
In the meantime I attach a .whl file maybe that'll work. Change the extension from .zip to .whl (Github won't let me upload files with .whl extension but only .zip) chemview-0.1.0.dev0-py2.py3-none-any.zip
Also you won't need the --symlink option in this command:
jupyter nbextension install --user --py --symlink chemview
I made the conda package for chemview. You can now test:
conda install -c gabrielelanaro chemview
@gabrielelanaro your new conda update works for me. May be you should remove 'enable_notebook' in your files too?
@hainm Absolutely
I think it works for me now. Although many examples in the /notebooks directory don't work because they rely on other modules that are not present.
@hermanbergwerf great! chemview only handles the graphics part, other functionalities (like parsing, simulating etc) are better handled by other software. Examples are meant to show how to integrate these other packages with chemview.
I am unable to install chemview.
When I follow the conda instructions:
conda install -c http://conda.binstar.org/gabrielelanaro
doesn't work (Error: too few arguments, must supply command line package specs or --file
)conda install -c gabrielelanaro chemview=0.3
does workThe notebook is not quite working after this installation:
I don't know if this is exclusively related to Python 3.
When I clone the repo and install the package locally, I get this error:
I'm on Ubuntu 16.10. The only python thing that is probably non-standard is that I have python and pip as alias for python3 and pip3.