AI-Friends icon indicating copy to clipboard operation
AI-Friends copied to clipboard

Unable to start Colab pro once I "Restart session and Run All again."

Open elBlacksmith opened this issue 1 year ago • 1 comments

Hi,

I have Google Colab Pro, and I am trying to run the notebook.

After the first message requesting to "Restart session and Run All again." I go to to the Runtime tab, I select that option, but I am getting this error:


Settings file not found, starting with defaults...
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/content/sdd_colab.py in <module>
  45444 elif tunnel_type == "localtunnel":
  45445     import re
> 45446     localtunnel = subprocess.Popen(['lt', '--port', port, 'http'], stdout=subprocess.PIPE)
  45447     url = str(localtunnel.stdout.readline())
  45448     public_url = (re.search("(?P<url>https?:\/\/[^\s]+loca.lt)", url).group("url"))

1 frames
[/usr/lib/python3.10/subprocess.py](https://localhost:8080/#) 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, gid, gids, uid, umask, start_new_session)
   1794                     fds_to_keep = set(pass_fds)
   1795                     fds_to_keep.add(errpipe_write)
-> 1796                     self.pid = _posixsubprocess.fork_exec(
   1797                             args, executable_list,
   1798                             close_fds, tuple(sorted(map(int, fds_to_keep))),

TypeError: expected str, bytes or os.PathLike object, not int

elBlacksmith avatar Jan 14 '24 12:01 elBlacksmith

Thanks for pointing out, was an easy fix. I have been refactoring the launching, and changed some things there, but my last few tests were with the ngrok service instead of Localtunnel, so I didn't notice that error.. Try again.

Skquark avatar Jan 14 '24 21:01 Skquark