Giter Club home page Giter Club logo

anacondamover's People

Contributors

xeboris avatar

Watchers

 avatar  avatar

anacondamover's Issues

Jupyter notebook start but try to use a python kernel from the old installation path

Starting a jupyter notebook environment works but when it comes to start the kernel during the notebook session the error is:

[I 07:02:41.836 NotebookApp] Serving notebooks from local directory: /home/bauermeister/Notebooks
[I 07:02:41.836 NotebookApp] 0 active kernels 
[I 07:02:41.836 NotebookApp] The Jupyter Notebook is running at: https://128.135.112.89:13232/
[I 07:02:41.836 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 07:02:50.344 NotebookApp] Failed to run command:
    ['/project/lgrandi/anaconda3/envs/pax_v6.8.0/bin/python', '-m', 'ipykernel', '-f', '/home/bauermeister/.local/share/jupyter/runtime/kernel-34c61760-8367-479b-afc8-8b17aa8308b5.json']
        PATH='/project2/lgrandi/anaconda3/envs/pax_v6.8.0/bin:/project2/lgrandi/anaconda3/envs/pax_v6.8.0/bin:/project2/lgrandi/anaconda3/envs/pax_v6.8.0/bin:/project2/lgrandi/anaconda3/bin:/bin:/software/slurm-current-el7-x86_64/bin:/software/git-2.10-el7-x86_64/bin:/software/subversion-1.9.4-el7-x86_64/bin:/software/bin:/srv/adm/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/lpp/mmfs/bin:/home/bauermeister/bin'
        with kwargs:
    {'stderr': None, 'cwd': '/home/bauermeister/Notebooks/Untitled Folder', 'start_new_session': True, 'stdin': -1, 'stdout': None}
    
[E 07:02:50.345 NotebookApp] Unhandled error in API request
    Traceback (most recent call last):
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/notebook/base/handlers.py", line 503, in wrapper
        result = yield gen.maybe_future(method(self, *args, **kwargs))
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 1015, in run
        value = future.result()
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/concurrent.py", line 237, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 1021, in run
        yielded = self.gen.throw(*exc_info)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/notebook/services/sessions/handlers.py", line 75, in post
        type=mtype))
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 1015, in run
        value = future.result()
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/concurrent.py", line 237, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 1021, in run
        yielded = self.gen.throw(*exc_info)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/notebook/services/sessions/sessionmanager.py", line 79, in create_session
        kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 1015, in run
        value = future.result()
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/concurrent.py", line 237, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 1021, in run
        yielded = self.gen.throw(*exc_info)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/notebook/services/sessions/sessionmanager.py", line 92, in start_kernel_for_session
        self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 1015, in run
        value = future.result()
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/concurrent.py", line 237, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 3, in raise_exc_info
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/tornado/gen.py", line 285, in wrapper
        yielded = next(result)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/notebook/services/kernels/kernelmanager.py", line 87, in start_kernel
        super(MappingKernelManager, self).start_kernel(**kwargs)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
        km.start_kernel(**kwargs)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/jupyter_client/manager.py", line 243, in start_kernel
        **kw)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/jupyter_client/manager.py", line 189, in _launch_kernel
        return launch_kernel(kernel_cmd, **kw)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/site-packages/jupyter_client/launcher.py", line 123, in launch_kernel
        proc = Popen(cmd, **kwargs)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/subprocess.py", line 859, in __init__
        restore_signals, start_new_session)
      File "/project2/lgrandi/anaconda3/envs/pax_v6.8.0/lib/python3.4/subprocess.py", line 1463, in _execute_child
        raise child_exception_type(errno_num, err_msg)
    FileNotFoundError: [Errno 2] No such file or directory: '/project/lgrandi/anaconda3/envs/pax_v6.8.0/bin/python'
[E 07:02:50.359 NotebookApp] {
      "Content-Type": "application/json",
      "Accept-Encoding": "gzip, deflate, br",
      "Connection": "keep-alive",
      "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0",
      "X-Requested-With": "XMLHttpRequest",
      "Referer": "https://128.135.112.89:13232/notebooks/Untitled%20Folder/Untitled.ipynb",
      "Accept": "application/json, text/javascript, */*; q=0.01",
      "Dnt": "1",
      "Host": "128.135.112.89:13232",
      "X-Xsrftoken": "2|ecf27338|2f00a95d786990c8a6648b766454de42|1568287877",
      "Accept-Language": "en-US,en;q=0.5",
      "Cookie": "_xsrf=2|ecf27338|2f00a95d786990c8a6648b766454de42|1568287877; username-128-135-112-89-13232=\"2|1:0|10:1568287885|29:username-128-135-112-89-13232|44:OTA4YWVlMmJjYzUzNDI0ZjhiYzZiNzhjNDI4YWE3MmI=|f42b9b403a12dde5ad889870b9f18384e87e3ca2f8dfea3d29c2a0b8a647f8f1\"",
      "Content-Length": "107"
    }

Re-installation of ipython-notebook is not successful.

Problem:
The python kernel overview for each environment has the old path information!
See: /path/to/new/installation/anaconda3/envs/<environment_name>/share/jupyter/kernels/python3/

Implement routine in AnacondaMover to change this too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.