Closed JuanCab closed 6 years ago
We recently identified the issue to be that a new dependency was not yet on conda. We're working on getting that up as of yesterday, so hopefully it will be solved by the end of the week!
Got this through just now. Feel free to test it and let me know if there are any issues!
Tried pip uninstalling pythreejs and then installing via conda and got
Downloading and Extracting Packages
pythreejs-1.0.0 | 627 KB | ####################################### | 100%
ipyscales-0.2.2 | 77 KB | ####################################### | 100%
ipydatawidgets-3.1.0 | 37 KB | ####################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: - + /Users/juan/anaconda3/bin/jupyter-nbextension enable pythreejs --py --sys-prefix
Enabling notebook extension jupyter-threejs/extension...
- Validating: problems found:
- require? X jupyter-threejs/extension
Any idea why it can't find the pythreejs notebook extension?
If you uninstall both with pip and conda, and call jupyter nbextension list
, does pythreejs show up? There might be some configuration conflict.
Note: Locally (Windows) I'm getting
pythreejs-1.0. 100% |###############################| Time: 0:00:02 858.93 kB/s
Enabling notebook extension jupyter-threejs/extension...
- Validating: ok
so it might be platform dependent. Which platform are you on?
I am doing all this on a macOS 11.3.5 installation.
I had uninstalled the pip version before calling for the conda install.
Uninstalling the conda version and reinstalling leads to the same problem, in fact, uninstalling (with conda) it reports
Executing transaction: | + /Users/juan/anaconda3/bin/jupyter-nbextension disable pythreejs --py --sys-prefix
Disabling notebook extension jupyter-threejs/extension...
- Validating: problems found:
- require? X jupyter-threejs/extension
at which point jupyter nbextension list
says
jupyter-threejs/extension disabled
tree section
Looks like either pip uninstall pythreejs
didn't clean up after itself or conda install
is missing the extension.
I was able to reinstall pip install pythreejs
and get the extension reactivated... I then explicitly jupyter nbextension uninstall jupyter-threejs
and pip uninstall pythreejs
before the conda install. Still getting the same error with the conda package.
Thanks for helping debug this!
If you run
conda uninstall pythreejs
pip uninstall pythreejs
pip uninstall pythreejs
pip uninstall pythreejs
# yes, pip uninstall multiple times, it some times matter
Then:
/Users/juan/anaconda3/share/jupyter/nbextensions
, and delete any folder called jupyter-threejs
./Users/juan/anaconda3/etc/jupyter/nbconfig
, and:
notebook.json
to remove any line with jupyter-threejs/extension
.notebook.d
, and delete any file jupyter-threejs.json
.These steps above you should also repeat for any directory returned by the command jupyter --paths
.
These are the steps I personally follow when I want to make absolutely sure I clean out any old configuration.
Before reinstalling, confirm also that it is gone from jupyter nbextension list
. At this point, updating conda could be nice to preclude some old issues (conda update conda
). If the issue is still there when reinstalling pythreejs, please check the content of /Users/juan/anaconda3/share/jupyter/nbextensions
if jupyter-threejs
folder is there and report which files are in it.
I went through and
Skipping pythreejs as it is not installed.
.jupyter-pythreejs
existed in /Users/juan/anaconda3/share/jupyter/nbextensions
notebook.json
has no mention of jupyter-pythreejs
jupyter-threejs.json
in the notebook.d
subdirectory.jupyter --paths
(there were quite a few) Nothing obvious in terms of pythreejs
or jupyter-threejs
filenames and grep threejs *
revealed no hidden mentions in files.jupyter nbextension list
does NOT show it in the list any more (disabled or otherwise).conda update conda
but I was already up to date. 👍 After all that, did a conda install pythreejs
...
Downloading and Extracting Packages
pythreejs-1.1.0 | 631 KB | ####################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: | + /Users/juan/anaconda3/bin/jupyter-nbextension enable pythreejs --py --sys-prefix
Enabling notebook extension jupyter-threejs/extension...
- Validating: problems found:
- require? X jupyter-threejs/extension
Still failed! So I went to the /Users/juan/anaconda3/share/jupyter/nbextensions
directory, there is no jupyter-threejs
directory (which I suspect is the problem). Oh, and just in case, I checked, I have write permission to the directory (I suspected as much, since pip install pythreejs
does work).
On a positive note, it picked up version 1.1.0 of pythreejs
. 😄
Confirmed locally on OSX. Are you on OSX or linux?
macOS 10.13.5 (the most current release version) and Python 3.6.5 :: Anaconda custom (64-bit)
.
Fix (workaround) added to feedstock in https://github.com/conda-forge/pythreejs-feedstock/pull/18 . Proper fix should be to setupbase.py to ensure that an exception in the npm install command to not prevent the handle_files command from running:
The next build should be done in less than half an hour. If you could please retry then and confirm that the issue is fixed, I would be much obliged!
Tried it again, still failed with same error. Any way to know if I waited long enough to get the current conda-forge package? It was pythreejs: 1.1.0-py36_0
When it becomes _1
at the end it should be the new one.
On Thu, Jun 7, 2018, 17:46 Juan Cabanela notifications@github.com wrote:
Tried it again, still failed with same error. Any way to know if I waited long enough to get the current conda-forge package? It was pythreejs: 1.1.0-py36_0
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jupyter-widgets/pythreejs/issues/183#issuecomment-395469699, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfLKIJEoCzMjg8m7V92uPDqiou_JsPTks5t6UrQgaJpZM4UboPe .
It should be out now: https://anaconda.org/conda-forge/pythreejs/files
When I look at it, that directory is NOT showing osx files version py36_1...
OS X builds typically take a longer time to build.
The OSX version has NOT posted on https://anaconda.org/conda-forge/pythreejs/files yet, I suspect something has interfered with its posting.
I've traced it to the build failing. There is a very obscure error on Travis, where I'm currently trying to check with conda-forge about where the issue is. Very strange considering the OSX tests passed on the PR...
Cross-linking the issue on the feedstock, this has now been fixed with 1.1.0_2!
Confirmed it works, thanks!
🎉
Since you mention it in the installation instructions, I thought I would let you know
conda install -c conda-forge pythreejs
installs version 0.4.1, not the current 1.0.0. Someone needs to update the condo-forge package.