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 install: No module named 'graph_notebook' #41
Comments
Usually I see this issue if jupyter is referencing a different environment than the virtualenv you have activated, you can please check the following commands:
My guess it that the version of jupyter referenced in the commands:
Is using a different version of python than what you have in your activated virtual environment. This can happen if you already had jupyter installed to your user when you install the |
Thanks for the reply. Yes. I think your right. See my output from
My output using your commands:
|
Well actually it looks like the jupyter installable is in your can we also check that this package is in the virtual environment?
Are there any repro steps that I can try to replicate your setup? What version of python are you on currently? |
Here's the info:
I'm running |
Update: I was able to install by explicitly using the jupyter in my venv. E.g.:
I still need to test the notebook ... |
So the original thought might be right, then. Is jupyter installed outside of the virtual environment? Could you run
without the activated environment? If jupyter is indeed also installed on the user level, then uninstalling it might fix the issue. |
I just tried to connect to a local blazegraph instance using: %%graph_notebook_config
{
"host": "localhost",
"port": 9999,
"auth_mode": "DEFAULT",
"iam_credentials_provider_type": "ROLE",
"load_from_s3_arn": "",
"ssl": false,
"aws_region": "us-east-1"
} I received the error:
Perhaps I need to use |
Without running the venv, jupyter runs out of my anaconda install:
|
3.7.x versions have not been fully tested, but they have worked for myself and others. Looks like we have a good hint to this issue, though. Jupyter is also installed at Could be that the system is confused on which one to use. Is it possible to uninstall it for now and see if a fresh install afterwards would fix the issue? We could also confirm this mismatch if we check for the installed packages from inside of the running jupyter server. Run the following cell:
|
I ran the command
Without the venv I get an error. But that is what I expected since I only installed graph-notebook in the venv.
|
Ok ... I think I might have fixed the source of my error. I did not run the commands:
from within my venv. Not this command executes:
Sorry for the confusion!!! User error :( I still need to test against the triple store :) |
It is working if you want to close the ticket. |
Thanks @wdduncan. Let us know how it goes with your triple store! :-) |
Describe the bug
I cannot install your graph notebook. I receive the error
No module named 'graph_notebook'
when following your installation steps.To Reproduce
Steps to reproduce the behavior:
python -m venv .env
source .env/bin/activate
).pip install -U pip
)pip install -r requirements.txt
jupyter nbextension install --py --sys-prefix graph_notebook.widgets
I receive the ERROR:
ModuleNotFoundError: No module named 'graph_notebook'
I have tried running the
jupyter nbextension install --py --sys-prefix graph_notebook.widgets
command from thesrc
directory and I received the same error.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: