0 Replies Latest reply on Dec 12, 2017 1:48 AM by bjornreuvers

    ThinApp - Python kernel points to wrong directory

    bjornreuvers Lurker

      Hello,

       

      I'm new to this forum en fairly new to ThinApp and I have a question. I've built a ThinApp for Anaconda3 (Python 3.6.3 -64bit) and I can start the program but the Python Kernel gives an error:

       

      Traceback (most recent call last):

        File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\base\handlers.py", line 516, in wrapper

          result = yield gen.maybe_future(method(self, *args, **kwargs))

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1055, in run

          value = future.result()

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\concurrent.py", line 238, in result

          raise_exc_info(self._exc_info)

        File "<string>", line 4, in raise_exc_info

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1063, in run

          yielded = self.gen.throw(*exc_info)

        File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 75, in post

          type=mtype))

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1055, in run

          value = future.result()

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\concurrent.py", line 238, in result

          raise_exc_info(self._exc_info)

        File "<string>", line 4, in raise_exc_info

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1063, in run

          yielded = self.gen.throw(*exc_info)

        File "C:\ProgramData\Anaconda3\lib\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 "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1055, in run

          value = future.result()

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\concurrent.py", line 238, in result

          raise_exc_info(self._exc_info)

        File "<string>", line 4, in raise_exc_info

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1063, in run

          yielded = self.gen.throw(*exc_info)

        File "C:\ProgramData\Anaconda3\lib\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 "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 1055, in run

          value = future.result()

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\concurrent.py", line 238, in result

          raise_exc_info(self._exc_info)

        File "<string>", line 4, in raise_exc_info

        File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\gen.py", line 307, in wrapper

          yielded = next(result)

        File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 94, in start_kernel

          super(MappingKernelManager, self).start_kernel(**kwargs)

        File "C:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel

          km.start_kernel(**kwargs)

        File "C:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 238, in start_kernel

          self.write_connection_file()

        File "C:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 431, in write_connection_file

          kernel_name=self.kernel_name

        File "C:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 147, in write_connection_file

          permissions = os.stat(path).st_mode

      OSError: [WinError 87] The parameter is incorrect: '\\\\VFILER\\HOME$\\Username\\AppData\\Roaming\\jupyter\\runtime\\kernel-b22493cb-ec11-4ce9-afa6-25a5e9c7832a.json'

       

      The correct path should be: \\VFILER\HOME$:\USERNAME\AppData\Roaming\thinstall\Python 3.6.3 (Anaconda3 5.0.1 64-bit)\%AppData%\jupyter\runtime

       

      Instead of '\\\\VFILER\\HOME$\\USERNAME\\AppData\\Roaming\\jupyter\\runtime\\

       

      Am I doing something wrong or can I change the kernel path?