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
Error: module 'gmaps' has no attribute ' ' #208
Comments
Interesting -- thanks for raising this. What's the full output of |
Hi, thank you for the quick response! Traceback (most recent call last): |
Thanks. It looks like something went wrong with the initial installation. What's the outut of
? The output of |
thanks! the output is this: DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. |
I think that's it. The first line, I recommend removing both
and then trying to install |
I changed the title of the issue so other people with the same problem will find it more easily. |
Thank you very much! I am using both commend you wrote: also: and I get the output: but when I check if the package were delete using: pip list | grep maps |
I am not sure if it will help, but when I checked the package under conda using: I see also the gmaps in this list, show like this: |
Ah -- that helps. What about If you remember, when you first installed |
I think I tried first with pip. |
That makes sense -- Conda refuses to uninstall gmaps because it thinks you installed it with pip. You have to use
I would then recommend installing it again with conda. |
you are right! it worked and I success to install the gmaps. but when I check (like you said before) the: i get different error: |
What's the output of |
naamah@MINERVA:~$ which jupyter naamah@MINERVA:~$ which conda naamah@MINERVA:~$ which python |
That looks fairly normal. What about |
I got nothing when I write: |
That's strange. Can you just try running |
I get the some bug like the original one: ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'conda-forge::gmaps-0.7.0-py35_0'. Attempting to roll back. LinkError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0 and when I run conda install -c conda-forge gmaps -v I get again: ===> LINKING PACKAGE: conda-forge::gmaps-0.7.0-py35_0 <=== $ /bin/bash -x /home/naamah/anaconda3/bin/.gmaps-post-link.sh An error occurred while installing package 'conda-forge::gmaps-0.7.0-py35_0'. Attempting to roll back. ===> REVERSING PACKAGE LINK: conda-forge::gmaps-0.7.0-py35_0 <=== An unexpected error has occurred.
Current conda install:
|
I don't think the other module When you run |
it is show nothing.. also when I run pip list - the gmaps don't show in the list.
|
What happens when you try and install with pip?
|
it is work! thank you very much! it was so helpful! |
Great -- thanks for working through this. I would definitely recommend looking into python virtual environments -- they make resolving these issues much easier. |
You can follow the steps mentioned in the below given links, they have worked for me. I know its late but still I though that its best that I share this piece of information. For installing with pip : For installing with conda : |
Hallo,
I am trying to use the gmaps package on jupyter notebook.
my python version is: 3.5
my jupyter version is: 5.2.1
my gmaps: 7.0
i started to install using pip but I get the error "module 'gmaps' has no attribute ' ' " for every method i am trying to use (i dont get error for the line "import gmaps").
than, i tried to install using conda, using this command:
conda install -c conda-forge gmaps -v
and I get the attached error.
is someone know what I am doing wrong?
===> LINKING PACKAGE: conda-forge::gmaps-0.7.0-py35_0 <===
prefix=/home/naamah/anaconda3
source=/home/naamah/anaconda3/pkgs/gmaps-0.7.0-py35_0
$ /bin/bash -x /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> cwd: /home/naamah/anaconda3/bin <==
==> exit code: 1 <==
==> stdout <==
b''
==> stderr <==
b'+ /home/naamah/anaconda3/bin/jupyter-nbextension enable gmaps --py --sys-prefix\nTraceback (most recent call last):\n File "/home/naamah/anaconda3/bin/jupyter-nbextension", line 11, in \n sys.exit(main())\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/jupyter_core/application.py", line 266, in launch_instance\n return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/traitlets/config/application.py", line 658, in launch_instance\n app.start()\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 988, in start\n super(NBExtensionApp, self).start()\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/jupyter_core/application.py", line 255, in start\n self.subapp.start()\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 896, in start\n self.toggle_nbextension_python(self.extra_args[0])\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 872, in toggle_nbextension_python\n logger=self.log)\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 483, in enable_nbextension_python\n logger=logger)\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 380, in _set_nbextension_state_python\n m, nbexts = _get_nbextension_metadata(module)\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 1125, in _get_nbextension_metadata\n 'it is missing the
_jupyter_nbextension_paths()
method.'.format(module))\nKeyError: 'The Python module gmaps is not a valid nbextension, it is missing the_jupyter_nbextension_paths()
method.'\n'An error occurred while installing package 'conda-forge::gmaps-0.7.0-py35_0'.
LinkError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with
-v
will provide additional informationlocation of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==
Attempting to roll back.
===> REVERSING PACKAGE LINK: conda-forge::gmaps-0.7.0-py35_0 <===
prefix=/home/naamah/anaconda3
An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
Current conda install:
$ /home/naamah/anaconda3/bin/conda install -c conda-forge gmaps -v
The text was updated successfully, but these errors were encountered: