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
missing files for install & module loading error at runtime #6
Comments
@bertrandrigaud Thank you for trying this out and making an issue. When you installed from GitHub, did you follow all the steps for a developer installation? The .js files in the static directory are generated by compiling the Javascript with npm. So they are excluded from GitHub in the .gitignore. When installing via pip, did you use "pip install" or did you unpack the tarfile and use the contents? I tested "pip install" once into a conda environment, and it worked then, but perhaps the Jupyter setup steps are putting information outside the conda environments. |
Whoops ! I did'nt went that far in the github procedure... my fault. |
The version on pip was developed with ipywidgets 6.0.0. I am also running with notebook version 5.0.0 and widgetsnbextension 2.0.0, but python 3.5. I don't think the difference between python 3.5 and 3.6 will make a difference but I am checking on that. I have seen the "Could not create model" message when something went wrong in the code. I think helpful information may be contained in the Javascript console (right-click Inspect in Chrome, right-click Inspect Element in Safari and Firefox, then select Console tab). You might see |
I have made a new python=3.6 conda environment and pip-installed firefly_client into it. I am able to reproduce your problem with the "Could not create model" message. I am seeing an error Also, after the initial pip installation, the |
Update: the above error was caused by incorrectly typing |
work in progress... Today I tried to run a simple notebook server on my machine and I ran it sucessfully with py3.5 and py3.6. from firefly_widgets import connect here is the console log: Couldn't process kernel message Object { fileName: "https://ccosvm1009/user/bertrand/st…", lineNumber: 13198, columnNumber: 19, message: "Could not open comm", error_stack: Array[2], stack: "" } main.min.js:24481:34 Could not open comm -- Error: Class jupyter.widget not found in registry Couldn't process kernel message Object { fileName: "https://ccosvm1009/user/bertrand/st…", lineNumber: 13198, columnNumber: 19, message: "Could not open comm", error_stack: Array[2], stack: "" } main.min.js:24481:34 Couldn't process kernel message Object { fileName: "https://ccosvm1009/user/bertrand/st…", lineNumber: 13198, columnNumber: 19, message: "Could not open comm", error_stack: Array[2], stack: "" } main.min.js:24481:34 Error: firefly has not been bootstrapped Couldn't process kernel message Object { fileName: "https://ccosvm1009/user/bertrand/st…", lineNumber: 13198, columnNumber: 19, message: "Could not open comm", error_stack: Array[2], stack: "" } main.min.js:24481:34 Could not open comm -- Error: Class jupyter.widget not found in registry Couldn't process kernel message Object { fileName: "https://ccosvm1009/user/bertrand/st…", lineNumber: 13198, columnNumber: 19, message: "Could not open comm", error_stack: Array[2], stack: "" } main.min.js:24481:34 Couldn't process kernel message Object { fileName: "https://ccosvm1009/user/bertrand/st…", lineNumber: 13198, columnNumber: 19, message: "Could not open comm", error_stack: Array[2], stack: "" } main.min.js:24481:34 Error: firefly has not been bootstrapped I'm still investigating. |
Reinstalled from scratch using only conda install command (not pip, except firefly_widgets of course). Works like a charm! Just a comment on the sample code: AttributeError: 'ImageViewer' object has no attribute 'x_pan' |
Great that it works with conda installs of the other packages! x_pan and y_pan, along with zoom, were added from a branch that was merged to master on May 31. It's not on pip yet. I'll increment the version and update the pip package. |
Alright! Thanks for the help ;)
|
I tried to install firefly_widgets from the git repo without success. It seems files are missing:
rebuilding js and css failed
missing files: ['/PATH/firefly_widgets/firefly_widgets/static/extension.js', '/PATH/firefly_widgets/firefly_widgets/static/index.js']
Then I tried to install it from the pip repo, and it worked fine (files are in the tar.gz of the pip repo)
but when I tried to run a sample code:
Any idea ?
The text was updated successfully, but these errors were encountered: