abhishekkrthakur / colabcode

Run VSCode (codeserver) on Google Colab or Kaggle Notebooks
MIT License
2.07k stars 276 forks source link

[BUG] PermissionError at Initialisation #107

Open Gruftgrabbler opened 2 years ago

Gruftgrabbler commented 2 years ago

Hello. I am trying to setup the the ColabCode Server by following the Readme. Unfortunately I get a PermissionError and have no idea wether it is even possible to solve this issue since on Colab I can not even open a terminal.

The Traceback is:

---------------------------------------------------------------------------
PermissionError                           Traceback (most recent call last)
[<ipython-input-3-9c5ec4fb81b5>](https://pqb4vzehmyi-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20220426-060050-RC00_444516321#) in <module>()
----> 1 ColabCode(port=10000, password="abhishek", mount_drive=True)

7 frames
[/usr/lib/python3.7/subprocess.py](https://pqb4vzehmyi-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20220426-060050-RC00_444516321#) in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
<img width="1440" alt="Screenshot 2022-04-27 at 23 12 06" src="https://user-images.githubusercontent.com/24829851/165632065-4f9e8f2d-03e6-4592-820c-6b26c182860c.png">

   1549                         if errno_num == errno.ENOENT:
   1550                             err_msg += ': ' + repr(err_filename)
-> 1551                     raise child_exception_type(errno_num, err_msg, err_filename)
   1552                 raise child_exception_type(err_msg)
   1553 

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/dist-packages/pyngrok/bin/ngrok'
``
<img width="1440" alt="Screenshot 2022-04-27 at 23 12 06" src="https://user-images.githubusercontent.com/24829851/165632029-8966cb53-b40a-4637-be9a-bea7695976ac.png">

For Reference my Notebook looks like:

!pip install -q colabcode

from colabcode import ColabCode

ColabCode(port=10000, password="abhishek", mount_drive=True)

Just calling ColabCode()yields the same error.