Skip to content
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

Closed
naamahoresh opened this issue Nov 26, 2017 · 24 comments
Closed

Error: module 'gmaps' has no attribute ' ' #208

naamahoresh opened this issue Nov 26, 2017 · 24 comments

Comments

@naamahoresh
Copy link

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 information
location 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:

https://github.com/conda/conda/issues

Current conda install:

           platform : linux-64
      conda version : 4.3.29
   conda is private : False
  conda-env version : 4.3.29
conda-build version : 3.0.30
     python version : 3.5.4.final.0
   requests version : 2.18.4
   root environment : /home/naamah/anaconda3  (writable)
default environment : /home/naamah/anaconda3
   envs directories : /home/naamah/anaconda3/envs
                      /home/naamah/.conda/envs
      package cache : /home/naamah/anaconda3/pkgs
                      /home/naamah/.conda/pkgs
       channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                      https://conda.anaconda.org/conda-forge/noarch
                      https://repo.continuum.io/pkgs/main/linux-64
                      https://repo.continuum.io/pkgs/main/noarch
                      https://repo.continuum.io/pkgs/free/linux-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/linux-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/linux-64
                      https://repo.continuum.io/pkgs/pro/noarch
        config file : None
         netrc file : None
       offline mode : False
         user-agent : conda/4.3.29 requests/2.18.4 CPython/3.5.4 Linux/4.4.0-97-generic debian/stretch/sid glibc/2.23    
            UID:GID : 1001:1001

$ /home/naamah/anaconda3/bin/conda install -c conda-forge gmaps -v

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 497, in run_script
    subprocess_call(command_args, env=env, path=dirname(path))
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/gateways/subprocess.py", line 56, in subprocess_call
    output=_format_output(command_str, path, rc, stdout, stderr))
subprocess.CalledProcessError: Command '['/bin/bash', '-x', '/home/naamah/anaconda3/bin/.gmaps-post-link.sh']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 327, in _execute_actions
    run_script(target_prefix, Dist(pkg_data), 'post-unlink' if is_unlink else 'post-link')
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 513, in run_script
    raise LinkError(message)
conda.exceptions.LinkError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with `-v` will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==
<None>


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 281, in execute
    pkg_data, actions)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 344, in _execute_actions
    reverse_excs,
conda.CondaMultiError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with `-v` will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==
<None>



During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/exceptions.py", line 640, in conda_exception_handler
    return_value = func(*args, **kwargs)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/cli/main.py", line 140, in _main
    exit_code = args.func(args, p)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/cli/main_install.py", line 80, in execute
    install(args, parser, 'install')
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/cli/install.py", line 326, in install
    execute_actions(actions, index, verbose=not context.quiet)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/plan.py", line 830, in execute_actions
    execute_instructions(plan, index, verbose)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/instructions.py", line 247, in execute_instructions
    cmd(state, arg)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/instructions.py", line 108, in UNLINKLINKTRANSACTION_CMD
    txn.execute()
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 297, in execute
    rollback_excs,
conda.CondaMultiError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with `-v` will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==
<None>
@pbugnion
Copy link
Owner

pbugnion commented Nov 26, 2017

Interesting -- thanks for raising this.

What's the full output of jupyter nbextension enable gmaps --py --sys-prefix (this is what the post-link script that is failing actually does)? Make sure you are in the same conda environment as the one you installed gmaps in.

@naamahoresh
Copy link
Author

Hi, thank you for the quick response!
this is the output of "jupyter nbextension enable gmaps --py --sys-prefix":

Traceback (most recent call last):
File "/home/naamah/anaconda3/bin/jupyter-nbextension", line 11, in
sys.exit(main())
File "/home/naamah/anaconda3/lib/python3.5/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "/home/naamah/anaconda3/lib/python3.5/site-packages/jupyter_core/application.py", line 255, in start
self.subapp.start()
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 896, in start
self.toggle_nbextension_python(self.extra_args[0])
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 872, in toggle_nbextension_python
logger=self.log)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 483, in enable_nbextension_python
logger=logger)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 380, in _set_nbextension_state_python
m, nbexts = _get_nbextension_metadata(module)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 1125, in _get_nbextension_metadata
'it is missing the _jupyter_nbextension_paths() method.'.format(module))
KeyError: 'The Python module gmaps is not a valid nbextension, it is missing the _jupyter_nbextension_paths() method.'

@pbugnion
Copy link
Owner

pbugnion commented Nov 26, 2017

Thanks. It looks like something went wrong with the initial installation. What's the outut of

$ pip list | grep maps

?

The output of which pip and which jupyter might also be useful, to check if you have conflicting virtual environments.

@naamahoresh
Copy link
Author

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.
gmaps (0.7.0)
python-gmaps (0.3.1)

@pbugnion
Copy link
Owner

pbugnion commented Nov 26, 2017

I think that's it. The first line, gmaps, is this package. I have no idea what the second line (python-gmaps) is, but it looks like they are using the same namespace (ie. when you write import gmaps, it tries to import the second or the first line. This python-gmaps is not a widget, hence why the jupyter nbextension command fails.

I recommend removing both gmaps and python-gmaps:

conda uninstall gmaps
pip uninstall python-gmaps # or conda? try both

and then trying to install gmaps again by running conda install -c conda-forge gmaps.

@pbugnion pbugnion changed the title problem using gmaps on jupyter notebook Error: module 'gmaps' has no attribute ' ' Nov 26, 2017
@pbugnion
Copy link
Owner

I changed the title of the issue so other people with the same problem will find it more easily.

@naamahoresh
Copy link
Author

Thank you very much!
I don't know way, but I cant success to remove the: ** gmaps (0.7.0)**

I am using both commend you wrote:
conda uninstall gmaps
pip uninstall python-gmaps

also:
conda uninstall python-gmaps
conda uninstall -c conda-forge gmaps

and I get the output:
PackageNotFoundError: Package(s) is missing from the environment:
gmaps

but when I check if the package were delete using: pip list | grep maps
i get this output:
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.
gmaps (0.7.0)

@naamahoresh
Copy link
Author

naamahoresh commented Nov 26, 2017

I am not sure if it will help, but when I checked the package under conda using:
$ conda list

I see also the gmaps in this list, show like this:
gmaps 0.7.0 pip

@pbugnion
Copy link
Owner

Ah -- that helps.

What about conda list --no-pip?

If you remember, when you first installed gmaps, did you try with pip or conda first?

@naamahoresh
Copy link
Author

I think I tried first with pip.
also, with the conda list --no-pip commend I don't see the gmaps package.

@pbugnion
Copy link
Owner

pbugnion commented Nov 26, 2017

That makes sense -- Conda refuses to uninstall gmaps because it thinks you installed it with pip. You have to use pip to uninstall gmaps:

pip uninstall gmaps

I would then recommend installing it again with conda.

@naamahoresh
Copy link
Author

you are right! it worked and I success to install the gmaps.
but now the first bug show again when I am using conda install -c conda-forge gmaps

but when I check (like you said before) the:
jupyter nbextension enable gmaps --py --sys-prefix

i get different error:
File "/home/naamah/anaconda3/bin/jupyter-nbextension", line 11, in
sys.exit(main())
File "/home/naamah/anaconda3/lib/python3.5/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "/home/naamah/anaconda3/lib/python3.5/site-packages/jupyter_core/application.py", line 255, in start
self.subapp.start()
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 896, in start
self.toggle_nbextension_python(self.extra_args[0])
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 872, in toggle_nbextension_python
logger=self.log)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 483, in enable_nbextension_python
logger=logger)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 380, in _set_nbextension_state_python
m, nbexts = _get_nbextension_metadata(module)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/notebook/nbextensions.py", line 1122, in _get_nbextension_metadata
m = import_item(module)
File "/home/naamah/anaconda3/lib/python3.5/site-packages/traitlets/utils/importstring.py", line 42, in import_item
return import(parts[0])
ImportError: No module named 'gmaps'

@pbugnion
Copy link
Owner

What's the output of which jupyter, which conda and which python?

@naamahoresh
Copy link
Author

naamah@MINERVA:~$ which jupyter
/home/naamah/anaconda3/bin/jupyter

naamah@MINERVA:~$ which conda
/home/naamah/anaconda3/bin/conda

naamah@MINERVA:~$ which python
/home/naamah/anaconda3/bin/python

@pbugnion
Copy link
Owner

pbugnion commented Nov 26, 2017

That looks fairly normal. What about conda list | grep gmaps?

@naamahoresh
Copy link
Author

I got nothing when I write:
conda list | grep gmaps

@pbugnion
Copy link
Owner

That's strange. Can you just try running conda install -c conda-forge gmaps again?

@naamahoresh
Copy link
Author

naamahoresh commented Nov 26, 2017

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'.
LinkError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with -v will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==

Attempting to roll back.

LinkError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with -v will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==

and when I run conda install -c conda-forge gmaps -v I get again:

===> 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 1122, in _get_nbextension_metadata\n m = import_item(module)\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/traitlets/utils/importstring.py", line 42, in import_item\n return import(parts[0])\n File "/home/naamah/anaconda3/lib/python3.5/site-packages/gmaps/init.py", line 6, in \n from gmaps.geocoding import Geocoding\nImportError: No module named 'gmaps.geocoding'\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 information
location 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:

https://github.com/conda/conda/issues

Current conda install:

           platform : linux-64
      conda version : 4.3.29
   conda is private : False
  conda-env version : 4.3.29
conda-build version : 3.0.30
     python version : 3.5.4.final.0
   requests version : 2.18.4
   root environment : /home/naamah/anaconda3  (writable)
default environment : /home/naamah/anaconda3
   envs directories : /home/naamah/anaconda3/envs
                      /home/naamah/.conda/envs
      package cache : /home/naamah/anaconda3/pkgs
                      /home/naamah/.conda/pkgs
       channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                      https://conda.anaconda.org/conda-forge/noarch
                      https://repo.continuum.io/pkgs/main/linux-64
                      https://repo.continuum.io/pkgs/main/noarch
                      https://repo.continuum.io/pkgs/free/linux-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/linux-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/linux-64
                      https://repo.continuum.io/pkgs/pro/noarch
        config file : /home/naamah/.condarc
         netrc file : None
       offline mode : False
         user-agent : conda/4.3.29 requests/2.18.4 CPython/3.5.4 Linux/4.4.0-97-generic debian/stretch/sid glibc/2.23    
            UID:GID : 1001:1001

$ /home/naamah/anaconda3/bin/conda install -c conda-forge gmaps -v

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 497, in run_script
    subprocess_call(command_args, env=env, path=dirname(path))
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/gateways/subprocess.py", line 56, in subprocess_call
    output=_format_output(command_str, path, rc, stdout, stderr))
subprocess.CalledProcessError: Command '['/bin/bash', '-x', '/home/naamah/anaconda3/bin/.gmaps-post-link.sh']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 327, in _execute_actions
    run_script(target_prefix, Dist(pkg_data), 'post-unlink' if is_unlink else 'post-link')
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 513, in run_script
    raise LinkError(message)
conda.exceptions.LinkError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with `-v` will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==
<None>


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 281, in execute
    pkg_data, actions)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 344, in _execute_actions
    reverse_excs,
conda.CondaMultiError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with `-v` will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==
<None>



During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/exceptions.py", line 640, in conda_exception_handler
    return_value = func(*args, **kwargs)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/cli/main.py", line 140, in _main
    exit_code = args.func(args, p)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/cli/main_install.py", line 80, in execute
    install(args, parser, 'install')
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/cli/install.py", line 326, in install
    execute_actions(actions, index, verbose=not context.quiet)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/plan.py", line 830, in execute_actions
    execute_instructions(plan, index, verbose)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/instructions.py", line 247, in execute_instructions
    cmd(state, arg)
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/instructions.py", line 108, in UNLINKLINKTRANSACTION_CMD
    txn.execute()
  File "/home/naamah/anaconda3/lib/python3.5/site-packages/conda/core/link.py", line 297, in execute
    rollback_excs,
conda.CondaMultiError: post-link script failed for package conda-forge::gmaps-0.7.0-py35_0
running your command again with `-v` will provide additional information
location of failed script: /home/naamah/anaconda3/bin/.gmaps-post-link.sh
==> script messages <==
<None>

@pbugnion
Copy link
Owner

I don't think the other module python-gmaps uninstalled correctly: the error that you're getting (from gmaps.geocoding import Geocoding) implies there are some leftover files (there is no geocoding module in this repo).

When you run pip list | grep maps, what does it show?

@naamahoresh
Copy link
Author

it is show nothing..

also when I run pip list - the gmaps don't show in the list.

  • i do have gmap package (not gmaps package) in the conda list. but it is different package so I don't think that this is the issue

@pbugnion
Copy link
Owner

What happens when you try and install with pip?

pip install gmaps
jupyter nbextension enable --py --sys-prefix gmaps

@naamahoresh
Copy link
Author

it is work!
I checked also in the jupyter notebook and I success to run my code :)

thank you very much! it was so helpful!

@pbugnion
Copy link
Owner

Great -- thanks for working through this.

I would definitely recommend looking into python virtual environments -- they make resolving these issues much easier.

@Harish7nov
Copy link

Harish7nov commented Dec 5, 2020

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 :
https://jupyter-gmaps.readthedocs.io/en/latest/install.html#installing-jupyter-gmaps-with-pip

For installing with conda :
https://jupyter-gmaps.readthedocs.io/en/latest/install.html#installing-jupyter-gmaps-with-conda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants